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

Naoto Sato naoto at openjdk.org
Wed Sep 24 23:07:54 UTC 2025


> 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:

  Fixing test comment

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27475/files
  - new: https://git.openjdk.org/jdk/pull/27475/files/207fed5b..be9e9adb

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27475&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27475&range=01-02

  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27475.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27475/head:pull/27475

PR: https://git.openjdk.org/jdk/pull/27475


More information about the core-libs-dev mailing list