src/java.base/share/classes/sun/util/locale/provider/LocaleProviderAdapter.java
Print this page
rev 12979 : imported patch 8062006
*** 122,131 ****
--- 122,135 ----
// Check user specified adapter preference
if (order != null && order.length() != 0) {
String[] types = order.split(",");
for (String type : types) {
+ type = type.trim().toUpperCase(Locale.ROOT);
+ if (type.equals("COMPAT")) {
+ type = "JRE";
+ }
try {
Type aType = Type.valueOf(type.trim().toUpperCase(Locale.ROOT));
if (!typeList.contains(aType)) {
typeList.add(aType);
}