JDK-6832110 : regression java/nio/charset/Charset/NIOCharsetAvailabilityTest.java fails on 6u14b04
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 5.0u22,6u14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_10
  • CPU: generic,x86
  • Submitted: 2009-04-20
  • Updated: 2012-08-06
  • Resolved: 2009-05-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other Other JDK 6
5.0u21-revFixed 5.0u22-revFixed 5.0u23Fixed 6u14 b06Fixed
Related Reports
Relates :  
Relates :  
Description
regression test suite
test: java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
platform: x86
os:	solaris10
test fails on 6u14b04 and passed on 6u14b03, so it's build to build regression
test fails with:

Unused Charset subclass: sun.nio.cs.ext.IBM1364
Exception in thread "main" java.lang.RuntimeException
        at NIOCharsetAvailabilityTest.main(NIOCharsetAvailabilityTest.java:58)

test has header:

/*
 * @test 1.4 02/17/05
 * @bug 4777124
 * @summary Verify that all Charset subclasses are available through the API
 */


for reproduce login at stt-12.russia as stt-robot

[stt-robot@stt-12]$ pwd
/export/JQA/regression/6u14b04
[stt-robot@stt-12]$ /export/jdk/jdk1.6.0_14b04/bin/java -version                  
java version "1.6.0_14-ea"
Java(TM) SE Runtime Environment (build 1.6.0_14-ea-b04)
Java HotSpot(TM) Server VM (build 14.0-b13, mixed mode)
[stt-robot@stt-12]$ /export/jdk/jdk1.6.0_14b04/bin/javac NIOCharsetAvailabilityTest.java 
NIOCharsetAvailabilityTest.java:23: warning: sun.misc.Launcher is Sun proprietary API and may be removed in a future release
import sun.misc.Launcher;
               ^
NIOCharsetAvailabilityTest.java:69: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
             new sun.security.action.GetPropertyAction("sun.boot.class.path"));
                                    ^
NIOCharsetAvailabilityTest.java:72: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
             new sun.security.action.GetPropertyAction("java.class.path"));
                                    ^
NIOCharsetAvailabilityTest.java:90: warning: sun.misc.Launcher is Sun proprietary API and may be removed in a future release
        ClassLoader appLoader = Launcher.getLauncher().getClassLoader();
                                ^
Note: NIOCharsetAvailabilityTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
[stt-robot@stt-12]$ /export/jdk/jdk1.6.0_14b04/bin/java NIOCharsetAvailabilityTest      
Unused Charset subclass: sun.nio.cs.ext.IBM1364
Exception in thread "main" java.lang.RuntimeException
        at NIOCharsetAvailabilityTest.main(NIOCharsetAvailabilityTest.java:58)
[stt-robot@stt-12]$ /export/jdk/jdk1.6.0_14b03/bin/javac NIOCharsetAvailabilityTest.java 
NIOCharsetAvailabilityTest.java:23: warning: sun.misc.Launcher is Sun proprietary API and may be removed in a future release
import sun.misc.Launcher;
               ^
NIOCharsetAvailabilityTest.java:69: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
             new sun.security.action.GetPropertyAction("sun.boot.class.path"));
                                    ^
NIOCharsetAvailabilityTest.java:72: warning: sun.security.action.GetPropertyAction is Sun proprietary API and may be removed in a future release
             new sun.security.action.GetPropertyAction("java.class.path"));
                                    ^
NIOCharsetAvailabilityTest.java:90: warning: sun.misc.Launcher is Sun proprietary API and may be removed in a future release
        ClassLoader appLoader = Launcher.getLauncher().getClassLoader();
                                ^
Note: NIOCharsetAvailabilityTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
[stt-robot@stt-12]$ /export/jdk/jdk1.6.0_14b03/bin/java NIOCharsetAvailabilityTest      
[stt-robot@stt-12]$ /export/jdk/jdk1.6.0_14b03/bin/java -version                  
java version "1.6.0_14-ea"
Java(TM) SE Runtime Environment (build 1.6.0_14-ea-b03)
Java HotSpot(TM) Server VM (build 14.0-b12, mixed mode)
[stt-robot@stt-12]$

Comments
SUGGESTED FIX This is not a regression and not a P1 bug as we've fixed # 6803681 in b04 and testcase need the appropriate modification.
22-04-2009

SUGGESTED FIX --- NIOCharsetAvailabilityTest.java Mon Apr 20 16:34:09 2009 *************** *** 49,54 **** --- 49,57 ---- charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022_CN_GB")); charsets.remove(Class.forName("sun.nio.cs.ext.ISO2022_CN_CNS")); + // j4b + charsets.remove(Class.forName("sun.nio.cs.ext.IBM1364")); + // report the charsets that are implemented but not available iter = charsets.iterator(); while (iter.hasNext()) {
20-04-2009

EVALUATION IBM1364 is "purposely" not exposed to the public access, only for j4b. The test case should be modifed to exclude this one from the list.
20-04-2009