[jdk8u-dev] RFR: 8353433: XCG currency code not recognized in JDK 8u

Andrew John Hughes andrew at openjdk.org
Fri Apr 11 01:38:21 UTC 2025


This patch fixes a regression which started to occur after 2025-04-01 04:00. This is when the following lines in `CurrencyData.properties`:

~~~
CW=ANG;2025-04-01-04-00-00;XCG
SX=ANG;2025-04-01-04-00-00;XCG
~~~

transitioned from using the first value, `ANG`, to the third, `XCG`. Unfortunately, this is believed to fail on 8u because it is not sourcing the data from the correct location and can't find `XCG`.

This patch follows Oracle's approach listed in the comments for this bug, which is already fixed in Oracle's 8u fork: "I agree that the best solution for now is to update XCG from a special entry to a simple one, and then further investigate a solution to the underlying cutover date issues in a separate issue."

With this patch applies, `java/util/Currency/ValidateISO4217.java` passes again.

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

Commit messages:
 - 8353433: XCG currency code not recognized in JDK 8u

Changes: https://git.openjdk.org/jdk8u-dev/pull/646/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=646&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8353433
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/646.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/646/head:pull/646

PR: https://git.openjdk.org/jdk8u-dev/pull/646


More information about the jdk8u-dev mailing list