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

Andrew John Hughes andrew at openjdk.org
Fri Apr 11 15:37:51 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 applied, `java/util/Currency/ValidateISO4217.java` passes again.

This pull request has now been integrated.

Changeset: 5b97474a
Author:    Andrew John Hughes <andrew at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/5b97474a9ec27e0d56715d90f3b20cdedbeaad43
Stats:     2 lines in 1 file changed: 0 ins; 0 del; 2 mod

8353433: XCG currency code not recognized in JDK 8u

Reviewed-by: mbalao, syan

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

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


More information about the jdk8u-dev mailing list