<i18n dev> RFR: 4745837: Make grouping usage during parsing apparent in relevant NumberFormat methods

Justin Lu jlu at openjdk.org
Wed Feb 26 22:22:11 UTC 2025


Please review this PR which clarifies some behavior regarding NumberFormat grouping specifically in the grouping related methods.

Please see the corresponding CSR for further detail. Note that an alternative would be to specify this at the DecimalFormat level, allowing NumberFormat subclasses to define this behavior how they want. IMO, I would expect `setGroupingUsed(boolean)` to affect both; a subclass could define `(is|set)(Parsing|Formatting)GroupingUsed` if need be, thus the proposed solution.

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

Commit messages:
 - init

Changes: https://git.openjdk.org/jdk/pull/23813/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23813&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-4745837
  Stats: 7 lines in 1 file changed: 3 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/23813.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23813/head:pull/23813

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


More information about the i18n-dev mailing list