RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned

Stuart Marks smarks at openjdk.org
Thu Feb 13 19:44:13 UTC 2025


On Wed, 12 Feb 2025 19:55:29 GMT, Stuart Marks <smarks at openjdk.org> wrote:

> A couple adjustments to the specs for four methods of StringBuilder and StringBuffer so that they no longer require new Strings to be created, just a String with the right contents. No implementation changes. Note that the actual specs (and implementations) are actually in AbstractStringBuilder, and they're inherited by StringBuilder and StringBuffer.

Thanks. Will add CSR and release note next.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23599#issuecomment-2657554852


More information about the core-libs-dev mailing list