[PATCH] Backport currency updates

Andrew Hughes gnu.andrew at redhat.com
Fri Jan 2 19:18:13 UTC 2015


As of Wednesday, there's a build failure with OpenJDK 6 & 7 [0].
During the build, the JDK generates currency data from a text file.
For some currencies, this includes changeover dates. The parser includes
a sanity check on these dates which fails if the date is over ten years ago.

The file doesn't seem to be very well maintained, as, on 2014-12-31,
one of the dates become over ten years ago (TR=TRL;2004-12-31-22-00-00;TRY).
The fix is this currency update [1]. In looking to add this to 6, I
discovered that there's a whole bunch of outdated currency issues, so I
brought in other updates as well. There are just very minor code changes.
Pretty much all changes are to property files used in build and the jtreg
test cases for them.

The webrev is:

http://cr.openjdk.java.net/~andrew/openjdk6/currency/webrev.01/

The full list of backported bugs is:

6608572: Currency change for Malta and Cyprus
6627549: ISO 3166 code addition: Saint Barthelemy and Saint Martin
6868106: Ukrainian currency has wrong format
6610748: Dateformat - AM-PM indicator in Finnish appears to be from English
6645271: Wrong date format for Croatian (hr) locale
6507067: TimeZone country/area message error
6873931: New Turkish currency since 2009
6646611: Incorrect spelling of month name in locale for Belarusian language ("be", "BY")
6910489: Slovenia Locale, wrong firstDayOfWeek number
6870908: reopen bug 4244752: month names in Estonian should be lowercase
6585666: Spanish language names not compliant with CLDR
6716626: Integrate contributed language and country names for NL
6914413: abbreviation name for November is not correct in be_BY
6916787: Ukrainian currency name needs to be fixed
6919624: minimalDaysInFirstWeek ressource for hungarian is wrong
7019267: Currency Display Names are not localized into pt_BR.
7020960: CurrencyNames_sr_RS.properties is missing.
7025837: fix plural currency display names in sr_Latn_(BA|ME|RS).properties
7020583: Some currency names are missing in some locales
7036905: [de] dem - the german mark display name is incorrect
7066203: Update currency data to the latest ISO 4217 standard
7189611: Venezuela current Currency should be Bs.F.
7171028: dots are missed in the datetime for Slovanian
8013836: getFirstDayOfWeek reports wrong day for pt-BR locale
7085757: Currency Data: ISO 4217 Amendment 152
6931564: Incorrect display name of Locale for south africa

Some of the bug descriptions are a little deceptive, as it seems that the
solution in some cases is to do an update of the currency file, presumably
from some internal data, which also brings in other changes. The sr_Latn
change is of particular note, as OpenJDK 6 doesn't contain scripts like
sr_Latn, but that change did include other fixes worth having, so the
necessary parts of the changeset were backported. Likewise, 8013836 was
already present, but a jtreg test case update was skipped when it was
originally added, so I included it here.

The result built fine, which is more than can be said for current OpenJDK 6,
in a post-2014-12-31 world ;)

Ok to push?

[0] https://bugs.gentoo.org/show_bug.cgi?id=534118
[1] http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/rev/74a70385c21d

Thanks,
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07



More information about the jdk6-dev mailing list