filed for Oliver Deakin
Ahh I see. I don't open the file directly. I work on the Apache Harmony
project and have been looking at what it would take to update to 3.8
(we're on 3.4.4 at the moment). Im seeing a failure in our test code
when running with 3.8 which can be demonstrated by the following test case:
If I run this class with Java 5.0 (J9) with icu4j_3_6_1.jar and
icu4j-charsets_3_6_1.jar added to the classpath it completes printing:
Currency symbol=YUM Currency=YUM
However if I run again with icu4j_3_8.jar and icu4j_charsets_3_8.jar
added to the classpath instead I get the following stack trace:
It appears that we are carrying out a currency lookup for "YU" and
failing to find it. I thought this might have been caused by the missing
CurrencyData.res file, but perhaps it is because the data for this
locale has been left out of supplementalData.res?
Thanks,
Oliver
Steven R. Loomis wrote:
http://bugs.icu-project.org/trac/ticket/5714 (J)
http://bugs.icu-project.org/trac/ticket/5715 (C)
CurrencyData is not used anymore and has been removed, instead
supplementalData is used.
Hm. I attempted to fix this code. But then it returns EUR due to the following:
map of YU to CS (serbia and montenegro
following in CLDR currency map:
issue:
CS is also obsolete, should be RS (serbia) or ME (montenegro)
by population RSD (serbia) is probably a better return for default currency than EUR (montenegro)
No longer fails. If EUR is an incorrect return type, please file a new bug.
Some of these comments people are saying here on this issue really seem to make me look at this in a whole new way. I do enjoy the responses though.
get a