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

Stuart Marks smarks at openjdk.org
Thu Feb 13 21:11:10 UTC 2025


On Thu, 13 Feb 2025 20:51:26 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.
>
> Stuart Marks has updated the pull request incrementally with one additional commit since the last revision:
> 
>   A tiny bit of wordsmithing.

Please review CSR [JDK-8350031](https://bugs.openjdk.org/browse/JDK-8350031) and release note [JDK-8350042](https://bugs.openjdk.org/browse/JDK-8350042). Also, this PR probably needs to be re-reviewed because I pushed a commit that contains some changed wording. (This change is already reflected in the CSR.)

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

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


More information about the core-libs-dev mailing list