jdk/src/java.base/share/classes/sun/nio/cs/StandardCharsets.java.template
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 37782 ad8fe7507ecc
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
   162             return;
   162             return;
   163         if (!jdk.internal.misc.VM.isBooted())
   163         if (!jdk.internal.misc.VM.isBooted())
   164             return;
   164             return;
   165         initialized = true;
   165         initialized = true;
   166 
   166 
   167         String map = getProperty("sun.nio.cs.map");
   167         String map = GetPropertyAction.privilegedGetProperty("sun.nio.cs.map");
   168         if (map != null) {
   168         if (map != null) {
   169             String[] maps = map.split(",");
   169             String[] maps = map.split(",");
   170             for (int i = 0; i < maps.length; i++) {
   170             for (int i = 0; i < maps.length; i++) {
   171                 if (maps[i].equalsIgnoreCase("Windows-31J/Shift_JIS")) {
   171                 if (maps[i].equalsIgnoreCase("Windows-31J/Shift_JIS")) {
   172                     // if we dont have both sjis and ms932, do nothing
   172                     // if we dont have both sjis and ms932, do nothing
   197                 }
   197                 }
   198             }
   198             }
   199         }
   199         }
   200     }
   200     }
   201 
   201 
   202     private static String getProperty(String key) {
       
   203         return GetPropertyAction.getProperty(key);
       
   204     }
       
   205 
       
   206 
       
   207 }
   202 }