You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The getCurrency() method in com.neovisionaries.i18n.CountryCode fails for CountryCode.EU. The currency cannot be resolved for the locale Locale("", "EU") and an exception gets thrown by the standard library.
Exception in thread "main" java.lang.IllegalArgumentException
at java.base/java.util.Currency.getInstance(Currency.java:410)
at Main.main(currency.java:7)
Due to the exception handling, the call CurrencyCode.EU.getCurrency() results with null.
The text was updated successfully, but these errors were encountered:
bkolarov
changed the title
CountryCodes.EU.getCurrency() crashes on newer versions of Java
CountryCodes.EU.getCurrency() returns null on newer versions of Java
Oct 28, 2021
The
getCurrency()
method incom.neovisionaries.i18n.CountryCode
fails forCountryCode.EU
. The currency cannot be resolved for the localeLocale("", "EU")
and an exception gets thrown by the standard library.Due to the exception handling, the call
CurrencyCode.EU.getCurrency()
results withnull
.The text was updated successfully, but these errors were encountered: