Results for “java stringbuffer to string function example code site:bugs.java.com error”
bugs.java.com
JDK-4310930 : Need memory-saving conversion from StringBuffer ...
I started exploring my code and found (among other things) that conversion from a StringBuffer to a String can waste memory. The way I understand your code, a call to StringBuffer.toString () calls the String constructor that passes the StringBuffer as the argument.
bugs.java.com
JDK-6650179 : StringBuilder.toString () and StringBuffer ...
JDK-6650179 : StringBuilder.toString () and StringBuffer.toString () optimization
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.
bugs.java.com
JDK-4834695 : RFE: StringBuffer and String.substring ...
JUSTIFICATION : Dead char [] objects are the most prevalent in the VM, most of them are created for temporary copies while also freeing the source string from which they are extracted. This stresses the GC, grows unnecessarily the total VM space on the host system, and creates more disk I/O for swap.
bugs.java.com
JDK-6900249 : Use StringBuilder instead of StringBuffer to ...
Description The following methods can show up as having high lock times which are using StringBuffer in some xml workloads.