Results for “java stringbuffer to string example problem code site:bugs.java.com”
bugs.java.com
Bug ID: JDK-6219959 StringBuffer.toString () innefficient in ...
One might consider reintroducing sharing only between String and StringBuffer and not between String and StringBuilder to avoid the correctness problems described above, but because StringBuffer and StringBuilder share most of their implementations, this would result in a large amount of code duplication and make maintenance much more difficult.
bugs.java.com
JDK-6650179 : StringBuilder.toString () and StringBuffer ...
JDK-6650179 : StringBuilder.toString () and StringBuffer.toString () optimization
bugs.java.com
Bug ID: JDK-6500646 Use Escape Analysis to optimize...
A common use of StringBuffer in Java programs is that a local StringBuffer object is used to build a character sequences which is then converted to a String. This conversion involves allocating a new char array and copying the StringBuffer's char array.
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
Bug ID: JDK-4634696 Add a method to KeyStroke to get a String that...
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Compile to sample program 2. Run java KeyReader 3. Press Control+x. EXPECTED VERSUS ACTUAL BEHAVIOR : The method should return a string that can be passed to KeyStroke.getKeyStroke.
bugs.java.com
JDK-4834695 : RFE: StringBuffer and String.substring ...
Name: rmT116609 Date: 03/19/2003 A DESCRIPTION OF THE REQUEST : The VM is stressed too much by unnecessary copies of strings and substrings: 1) StringBuffer is explicitly optimized to support String concatenation, but it excessively uses the String.setShared () in case where it should not: if the StringBuffer is not fully used (this appears if ...
bugs.java.com
Bug ID: JDK-8218227 StringBuilder/StringBuffer constructor ...
JDK-8218227 : StringBuilder/StringBuffer constructor throws confusing NegativeArraySizeException