Results for “java stringbuffer to string function example python error site:bugs.java.com”
bugs.java.com
JDK-4310930 : Need memory-saving conversion from StringBuffer ...
The way I understand your code, a call to StringBuffer.toString () calls the String constructor that passes the StringBuffer as the argument. That constructor, to save memory & unnecessary copying, doesn't copy the array of characters from StringBuffer.
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
bugs.java.com
Bug ID: JDK-6304514 StringBuilder and StringBuffer need ...
These are some examples (not sure that they're all valid, but seem worth considering): a) The two constructors for String taking StringBuffer and StringBuilder respectively, could be collapsing into a single constructor taking a StringAssembler. b) There is a request to add a StringBuilder equivalent of StringWriter.
bugs.java.com
JDK-4834695 : RFE: StringBuffer and String.substring ...
This would enhance a lot of places where StringBuffers should be kept at the estimated initial storage size: because conversion of StringBuffer to String currently makes the buffer to shared state, the StringBuffer needs to be reallocated while it could stay allocated; the String.setLength () method will not create a new char [] array because ...
bugs.java.com
Bug ID: JDK-8218227 StringBuilder/StringBuffer constructor ...
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release. To download the current JDK release, click here.
bugs.java.com
Bug ID: JDK-6686791 Side effect in NumberFormat tests with ...
Failed Method format (Object, StringBuffer, FieldPosition) incorrect StringBuffer passed to format (Long, StringBuffer, FieldPosition) method expected value of StringBuffer = passed value = STATUS:Failed.test cases: 2; passed: 1; failed: 1; first test case failure: NumberFormat0010 Test does nothing except assigning one StringBuffer instance to ...