jdk/src/java.base/share/classes/java/util/PropertyResourceBundle.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 40985 69efd667068d
--- a/jdk/src/java.base/share/classes/java/util/PropertyResourceBundle.java	Tue May 03 11:45:56 2016 +0100
+++ b/jdk/src/java.base/share/classes/java/util/PropertyResourceBundle.java	Tue May 03 15:50:54 2016 +0200
@@ -140,9 +140,8 @@
 
     // Check whether the strict encoding is specified.
     // The possible encoding is either "ISO-8859-1" or "UTF-8".
-    private static final String encoding =
-        GetPropertyAction
-                .getProperty("java.util.PropertyResourceBundle.encoding", "")
+    private static final String encoding = GetPropertyAction
+        .privilegedGetProperty("java.util.PropertyResourceBundle.encoding", "")
         .toUpperCase(Locale.ROOT);
 
     /**