I am trying to migrate to java 19 from java 18. Here is the code I run:
NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(Locale.CANADA_FRENCH);
currencyFormatter.setMaximumFractionDigits(2);
currencyFormatter.setCurrency(Currency.getInstance(Locale.CANADA_FRENCH));
var result = currencyFormatter.format(100);
System.out.println(result);
It gives different results for those 2 java versions.
Java 18:
100,00 $ CA
Java 19:
100,00 $
I cannot find any details in release notes regarding that change. Am I doing something wrong, or this is expected ?