RFR 8196215: sun/security/util/Resources/customSysClassLoader/MessageFormatting.java failed on ar_SA locale.
Adam Petcher
adam.petcher at oracle.com
Wed Feb 7 20:01:00 UTC 2018
On 2/7/2018 2:37 PM, Xuelei Fan wrote:
> Looks fine to me.
>
> Maybe, you can use the constructor of:
> MessageFormat(String pattern, Locale locale)
> // Locale.ENGLISH
I use that constructor of MessageFormat, but I don't use one of the
constants because there doesn't appear to be a constant for en_US. As
far as I know, I can't use Locale.ENGLISH because it doesn't necessarily
specify US English. I suppose I could use constants like this:
Locale loc = new Locale(Locale.ENGLISH.getLanguage(),
Locale.US.getCountry());
MessageFormat format = new MessageFormat(str, loc)
But that doesn't seem like much of an improvement.
>
> Xuelei
>
More information about the security-dev
mailing list