JDK-8252497 : Incorrect numeric currency code for ROL
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-08-28
  • Updated: 2022-08-03
  • Resolved: 2020-08-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 15 JDK 16 JDK 7 JDK 8 Other
11.0.10-oracleFixed 13.0.5Fixed 15.0.3Fixed 16 b14Fixed 7u361Fixed 8u351Fixed openjdk8u282Fixed
Related Reports
Relates :  
Description
There was apparently a typo in CurrencyData.properties in time of switching of Romanian currency to the new lei on 7/1/2005 (it was JDK 6, no SCCS history): both old ROL and new RON were given the same numeric code  946. According to available internet sources about ISO-4217, ROL should have code 642.
Comments
Fix request (15u): applies without comments.
05-03-2021

Fix request (8u): I'd like to port it to jdk8u to keep LTS releases in sync. The patch requires path adjustment, as usual. The file to change is virtually the same across the releases.
28-10-2020

Fix request (11u): should be ported for parity with Oracle and just to keep active repositories in sync. The patch doesn't require changes.
16-09-2020

Fix request (13u): this is mostly data file, and it should be the same in all supported JDK versions.
02-09-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/db7afef8891c User: yan Date: 2020-08-31 09:26:38 +0000
31-08-2020

Currency number has been supported with JDK-4836629 (JDK7). Apparently there was an error incorporating the number for the obsolete ROL.
28-08-2020

This typo cannot be fixed by java.util.currency.data runtime property since it is not designed to handle historical currencies: the Currency.java code does use Properties (so Map) class with a country codes as keys for the external amendment file.
28-08-2020