[jdk8u-dev] RFR: 8353433: XCG currency code not recognized in JDK 8u
SendaoYan
syan at openjdk.org
Fri Apr 11 06:48:32 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.
Before apply the patch, test run failed.
After git apply the patch and build the jdk, test run passed. Thanks for fix this issue.
-------------
Marked as reviewed by syan (no project role).
PR Review: https://git.openjdk.org/jdk8u-dev/pull/646#pullrequestreview-2759308498
More information about the jdk8u-dev
mailing list