JDK-6966725 : java/nio/charset/Charset/NIOCharsetAvailabilityTest.java regression with IBM833
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 6u20,6u20-rev
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_10
  • CPU: generic,x86
  • Submitted: 2010-07-05
  • Updated: 2011-02-23
  • Resolved: 2010-07-07
Related Reports
Duplicate :  
Description
Testsuite name: j2se (regression)

tests:  java/nio/charset/Charset/NIOCharsetAvailabilityTest.java 
	sun/nio/cs/Test4200310.sh 


JDK/JRE tested: failed 6u20b08, but passed on 6u20b07

OS/architecture: solaris10-x64

Reproducible: Always

Reproducible on machine: stt-41.russia

Is it a platform specific regression: N

Is it a Regression: Y

Regression introduced in release/build: 6u20b08

Test run log location:
[stt-robot@stt-41]$ pwd
/export/JQA/regression/6u20b08
[stt-robot@stt-41]$ cat cur/work/java/nio/charset/Charset/NIOCharsetAvailabilityTest.jtr 
#Test Results (version 2)
#Mon Jul 05 18:32:47 MSD 2010
#checksum:2fc202d5fa7bcbbd
#-----testdescription-----
$file=/net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_20b08/j2se/test/java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
$root=/net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_20b08/j2se/test
keywords=bug4777124 bug6832110
run=ASSUMED_ACTION main NIOCharsetAvailabilityTest\n
source=NIOCharsetAvailabilityTest.java
title=Verify that all Charset subclasses are available through the API

#-----environment-----

#-----testresult-----
description=file:///net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_20b08/j2se/test/java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
end=Mon Jul 05 18:32:47 MSD 2010
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException
javatestOS=SunOS 5.10 (x86)
javatestVersion=3.2.2_03
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build main
start=Mon Jul 05 18:32:42 MSD 2010
test=java/nio/charset/Charset/NIOCharsetAvailabilityTest.java
work=/export/JQA/regression/6u20b08/cur/work/java/nio/charset/Charset

#section:script_messages
----------messages:(4/208)----------
JDK under test: (/export/jdk/6u20b08/jdk1.6.0_20)
java version "1.6.0_20-rev"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_20-rev-b08)
Java HotSpot(TM) Server VM (build 16.3-b05, mixed mode)

#section:build
----------messages:(3/112)----------
command: build NIOCharsetAvailabilityTest
reason: Named class compiled on demand
elapsed time (seconds): 0.0010
result: Passed. All files up to date

#section:main
----------messages:(3/151)----------
command: main NIOCharsetAvailabilityTest
reason: Assumed action based on file name: run main NIOCharsetAvailabilityTest 
elapsed time (seconds): 4.685
----------System.out:(1/47)----------
Unused Charset subclass: sun.nio.cs.ext.IBM833
----------System.err:(13/678)----------
java.lang.RuntimeException
        at NIOCharsetAvailabilityTest.main(NIOCharsetAvailabilityTest.java:59)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
        at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException
[stt-robot@stt-41]$ cat cur/work/sun/nio/cs/Test4200310.jtr                              
#Test Results (version 2)
#Mon Jul 05 18:32:50 MSD 2010
#checksum:1c11bf7e9336756e
#-----testdescription-----
$file=/net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_20b08/j2se/test/sun/nio/cs/Test4200310.sh
$root=/net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_20b08/j2se/test
author=Norbert Lindenberg
keywords=bug4200310 shell
run=USER_SPECIFIED shell Test4200310.sh\n
source=Test4200310.sh
title=make sure class files are not duplicated between rt.jar, charsets.jar, and localedata.jar

#-----environment-----

#-----testresult-----
description=file:///net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_20b08/j2se/test/sun/nio/cs/Test4200310.sh
end=Mon Jul 05 18:32:50 MSD 2010
environment=regtest
execStatus=Failed. Execution failed: exit code 1
javatestOS=SunOS 5.10 (x86)
javatestVersion=3.2.2_03
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages shell
start=Mon Jul 05 18:32:49 MSD 2010
test=sun/nio/cs/Test4200310.sh
work=/export/JQA/regression/6u20b08/cur/work/sun/nio/cs

#section:script_messages
----------messages:(4/208)----------
JDK under test: (/export/jdk/6u20b08/jdk1.6.0_20)
java version "1.6.0_20-rev"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_20-rev-b08)
Java HotSpot(TM) Server VM (build 16.3-b05, mixed mode)

#section:shell
----------messages:(3/120)----------
command: shell Test4200310.sh []
reason: User specified action: run shell Test4200310.sh 
elapsed time (seconds): 1.177
----------System.out:(1/172)----------
FAILED: sun/nio/cs/ext/IBM833$Decoder.class sun/nio/cs/ext/IBM833$Encoder.class sun/nio/cs/ext/IBM833.class are duplicated between rt.jar, charsets.jar, and localedata.jar
----------System.err:(0/0)----------
result: Failed. Execution failed: exit code 1


test result: Failed. Execution failed: exit code 1

Steps to reproduce: 

[stt-robot@stt-41]$ /export/jdk/6u20b08/jdk1.6.0_20/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:70: 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:73: 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:91: 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-41]$ /export/jdk/6u20b08/jdk1.6.0_20/bin/java NIOCharsetAvailabilityTest      
Unused Charset subclass: sun.nio.cs.ext.IBM833
Exception in thread "main" java.lang.RuntimeException
        at NIOCharsetAvailabilityTest.main(NIOCharsetAvailabilityTest.java:59)
Isn't it duplicate of 6966678/ 6966706