--- a/jdk/src/java.base/share/classes/java/util/Locale.java Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/java/util/Locale.java Tue May 03 15:50:54 2016 +0200
@@ -858,7 +858,7 @@
private static Locale initDefault() {
String language, region, script, country, variant;
- Properties props = GetPropertyAction.getProperties();
+ Properties props = GetPropertyAction.privilegedGetProperties();
language = props.getProperty("user.language", "en");
// for compatibility, check for old user.region property
region = props.getProperty("user.region");
@@ -883,7 +883,7 @@
}
private static Locale initDefault(Locale.Category category) {
- Properties props = GetPropertyAction.getProperties();
+ Properties props = GetPropertyAction.privilegedGetProperties();
return getInstance(
props.getProperty(category.languageKey,
defaultLocale.getLanguage()),