JDK-8349913 : [BACKOUT] JDK-8325730 StringBuilder.toString allocation for the empty String
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 21.0.7-oracle
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-02-12
  • Updated: 2025-03-27
  • Resolved: 2025-02-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21
21.0.7-oracleFixed
Related Reports
Relates :  
Description
As changes in JDK-8325730 is non compliant with the specification in AbstractStringBuilder.toString , I am doing a backout of JDK-8325730 from 21.0.7-oracle 
Comments
[21u-na] Change backed out was not backported to OpenJDK jdk21u.
17-02-2025

Hi [~rreddy], I just thought it might be useful to have that marker in the title. But now it is pushed anyways...
17-02-2025

[~goetz] As per OpenJDK Developer guideline - https://openjdk.org/guide/#backing-out-a-backport , we just have to add [BACKOUT] , we don't need to mention the version in title. And we will not be backing out the fix from 24.
17-02-2025

Would you mind to include [21u] or [21u-oracle] in the title? Do you think about backing this our from 24 as well? Thanks!
15-02-2025