We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As reported in http://stackoverflow.com/questions/40244526/jsr-354-monetaryamountformat-not-working-two-way-for-other-currency-symbols-than?rq=1 the assumption of "$" has to be "USD" in https://github.com/JavaMoney/jsr354-ri/blob/master/moneta-core/src/main/java/org/javamoney/moneta/internal/format/CurrencyToken.java is wrong and a bug. There are at least 3 other countries (Australia, Canada, New Zealand) using the exact same "$" symbol for totally different currencies like "AUD", etc. Not to mention other cases like "HK$" which you may also find abbreviated. see https://coderanch.com/t/463940/java/show-countries-currency-symbols
The text was updated successfully, but these errors were encountered:
Actually this is very much a showstopper, too. As getting the wrong currency (e.g. USD instead of CAD) is worse than getting none at all.
USD
CAD
Sorry, something went wrong.
JavaMoney/jsr354-ri/issues/149 Parsing a '$' as currency (symbol) wil…
551764c
…l throw an exception, since the symbol is not unique. Pass the ISO currency code instead of.
/issues/149 Parsing a '$' as currency (symbol) will throw an exceptio…
783b03a
…n, since the symbol is not unique. Pass the ISO currency code instead of.
Will throw an exception, fixed in both RI and RI-BP.
No branches or pull requests
As reported in http://stackoverflow.com/questions/40244526/jsr-354-monetaryamountformat-not-working-two-way-for-other-currency-symbols-than?rq=1
the assumption of "$" has to be "USD" in
https://github.com/JavaMoney/jsr354-ri/blob/master/moneta-core/src/main/java/org/javamoney/moneta/internal/format/CurrencyToken.java
is wrong and a bug.
There are at least 3 other countries (Australia, Canada, New Zealand) using the exact same "$" symbol for totally different currencies like "AUD", etc. Not to mention other cases like "HK$" which you may also find abbreviated. see https://coderanch.com/t/463940/java/show-countries-currency-symbols
The text was updated successfully, but these errors were encountered: