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

Martin Balao mbalao at openjdk.org
Fri Apr 11 03:59:31 UTC 2025


On Fri, 11 Apr 2025 01:33:41 GMT, Andrew John Hughes <andrew at openjdk.org> wrote:

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

Thanks for contributing this fix. It looks good to me and aligned to what has been discussed in the 8353433 comments. I've not found any other special entries in the file.

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

Marked as reviewed by mbalao (Reviewer).

PR Review: https://git.openjdk.org/jdk8u-dev/pull/646#pullrequestreview-2759085438


More information about the jdk8u-dev mailing list