RFR: 8138614: (spec str) StringBuffer and StringBuilder methods improperly require "new" String to be returned [v2]
Stuart Marks
smarks at openjdk.org
Wed Feb 19 02:05:58 UTC 2025
On Fri, 14 Feb 2025 15:30:16 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Stuart Marks has updated the pull request incrementally with one additional commit since the last revision:
>>
>> A tiny bit of wordsmithing.
>
> It should be pointed out (in the CSR) that this is aligning the spec with the current implementation, there no compatibility risk to existing programs.
> Except for the empty string, neither StringBuilder or StringBuffer is holding a string, but a sequence of characters, so a String is created.
@RogerRiggs See updated CSR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23599#issuecomment-2667335678
More information about the core-libs-dev
mailing list