currency for sr_YU fails
Deleted Component: formatting
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?
CurrencyData is not used anymore and has been removed, instead
supplementalData is used.
Trac Comment 5 by anonymous—2010-10-26T06:22:53.218Z
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.
Trac Comment 2 by —2007-09-20T16:15:11.000Z
No longer fails. If EUR is an incorrect return type, please file a new bug.
Trac Comment 1 by —2007-09-20T15:56:55.000Z
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:
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)