[jdk17u-dev] RFR: 8368328: CompactNumberFormat.clone does not produce independent instances

Goetz Lindenmaier goetz at openjdk.org
Wed Dec 3 12:17:33 UTC 2025


On Wed, 26 Nov 2025 18:07:26 GMT, Roland Mesde <duke at openjdk.org> wrote:

>> Backporting JDK-8368328: CompactNumberFormat.clone does not produce independent instances. Fixes clone method logic and adds a new test. Ran GHA Sanity Checks (passed) and new test (passed). Patch is clean.
>
> Risk Level: LOW-MEDIUM
> 
> Mitigation Factors: 
> - Targeted fix - Only affects clone() method behavior
> - Defensive change - Improves thread safety without breaking existing functionality
> - Well-defined scope - Clear distinction between mutable/immutable objects
> - Backward compatible - No API signature changes
> - Addresses real bug - Fixes documented concurrency issues
> 
> Risk Factors:
> - Memory impact - Additional object allocation during cloning
> - Performance overhead - Cloning operations now more expensive
> - Behavioral change - Applications relying on previous behavior may break
> - Testing coverage - Older Java applications may have test scenarios dependent on behavior

Hi @rm-gh-8 
please requuest approval again after (and if) 21u has been approved.

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

PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4168#issuecomment-3606578759


More information about the jdk-updates-dev mailing list