jdk/test/java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
changeset 5167 dbd299f8fdae
parent 4817 67f425ac409b
child 5506 202f599c92aa
equal deleted inserted replaced
5166:81f798aa5765 5167:dbd299f8fdae
    21  * have any questions.
    21  * have any questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 4777124 6920545
    26  * @bug 4777124 6920545 6911753
    27  * @summary Verify that all Charset subclasses are available through the API
    27  * @summary Verify that all Charset subclasses are available through the API
    28  */
    28  */
    29 
    29 
    30 import java.io.File;
    30 import java.io.File;
    31 import java.io.FileInputStream;
    31 import java.io.FileInputStream;
    63         }
    63         }
    64 
    64 
    65         // remove the known pseudo-charsets that serve only to implement
    65         // remove the known pseudo-charsets that serve only to implement
    66         // other charsets, but shouldn't be known to the public
    66         // other charsets, but shouldn't be known to the public
    67         charsets.remove(Class.forName("sun.nio.cs.Unicode"));
    67         charsets.remove(Class.forName("sun.nio.cs.Unicode"));
    68         charsets.remove(Class.forName("sun.nio.cs.ext.HKSCS"));
       
    69         charsets.remove(Class.forName("sun.nio.cs.ext.HKSCS_2001"));
       
    70         charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022"));
    68         charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022"));
    71         charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022_CN_GB"));
    69         charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022_CN_GB"));
    72         charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022_CN_CNS"));
    70         charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022_CN_CNS"));
    73 
    71 
    74         // report the charsets that are implemented but not available
    72         // report the charsets that are implemented but not available