RFR: 8368328: CompactNumberFormat.clone does not produce independent instances [v4]

Raffaello Giulietti rgiulietti at openjdk.org
Thu Sep 25 18:20:34 UTC 2025


On Thu, 25 Sep 2025 16:53:18 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> Fixing `CompactNumberFormat.clone()` to clone mutable reference objects. The bug was caused by accessing the shared objects concurrently which resulted in an illegal state on parsing. There are other reference fields that are shared, but the contents of those fields (such as prefix/suffix) are constants/read-only, so they may be shared.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Make explicit "read-only" comment to each constant field

LGTM

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

Marked as reviewed by rgiulietti (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27475#pullrequestreview-3268948630


More information about the core-libs-dev mailing list