--- old/src/java.base/share/classes/java/nio/charset/Charset.java 2017-07-01 03:08:18.313183371 +0900 +++ new/src/java.base/share/classes/java/nio/charset/Charset.java 2017-07-01 03:08:18.145183329 +0900 @@ -281,19 +281,6 @@ /* -- Static methods -- */ - private static volatile String bugLevel; - - static boolean atBugLevel(String bl) { // package-private - String level = bugLevel; - if (level == null) { - if (!VM.isBooted()) - return false; - bugLevel = level = GetPropertyAction - .privilegedGetProperty("sun.nio.cs.bugLevel", ""); - } - return level.equals(bl); - } - /** * Checks that the given string is a legal charset name.

* @@ -305,7 +292,7 @@ */ private static void checkName(String s) { int n = s.length(); - if (n == 0 && !atBugLevel("1.4")) { + if (n == 0) { throw new IllegalCharsetNameException(s); } for (int i = 0; i < n; i++) {