JDK-6964217 : sun/nio/cs/TestIBM1364.java fails with SE bundle
  • Type: Bug
  • Component: other-libs
  • Sub-Component: other
  • Affected Version: 6u22
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: x86
  • Submitted: 2010-06-25
  • Updated: 2012-08-17
  • Resolved: 2010-07-26
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 JDK 6
5.0u26Fixed 6u21-revFixed
Related Reports
Relates :  
Description
Testsuite name: regression

test: sun/nio/cs/TestIBM1364.java

JDK/JRE tested: jdk6u22b90 (2010-06-17) - test failed, but passed on 6u21b06

OS/architecture: x64-solaris10

Reproducible: Always

Reproducible on machine: stt-93.russia


Is it a platform specific regression: N

Is it a Regression: Y

Regression introduced in release/build: 6u22b90

Test run log location:

[stt-robot@stt-93]$ pwd 
/export/JQA/6u22b90
[stt-robot@stt-93]$ cat current/work/sun/nio/cs/TestIBM1364.jtr 
#Test Results (version 2)
#Fri Jun 25 12:37:20 MSD 2010
#checksum:7f83343c6b8ea16a
#-----testdescription-----
$file=/net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_21b06/j2se/test/sun/nio/cs/TestIBM1364.java
$root=/net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_21b06/j2se/test
keywords=bug6803681
run=ASSUMED_ACTION main TestIBM1364\n
source=TestIBM1364.java
title=Test IBM1364

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

#-----testresult-----
description=file:///net/vice/export/stt/newroot/regression/workspaces/160/1.6.0_21b06/j2se/test/sun/nio/cs/TestIBM1364.java
end=Fri Jun 25 12:37:20 MSD 2010
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.io.UnsupportedEncodingException: cp1364
javatestOS=SunOS 5.10 (x86)
javatestVersion=3.2.2_03
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build main
start=Fri Jun 25 12:37:18 MSD 2010
test=sun/nio/cs/TestIBM1364.java
work=/export/JQA/6u22b90/current/work/sun/nio/cs

#section:script_messages
----------messages:(4/189)----------
JDK under test: (/export/jdk/6u22b90/jdk1.6.0_22)
java version "1.6.0_22-ea"
Java(TM) SE Runtime Environment (build 1.6.0_22-ea-b90)
Java HotSpot(TM) Client VM (build 17.0-b15, mixed mode)

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

#section:main
----------messages:(3/121)----------
command: main TestIBM1364
reason: Assumed action based on file name: run main TestIBM1364 
elapsed time (seconds): 1.155
----------System.out:(0/0)----------
----------System.err:(15/806)----------
java.io.UnsupportedEncodingException: cp1364
        at java.lang.StringCoding.encode(StringCoding.java:269)
        at java.lang.String.getBytes(String.java:946)
        at TestIBM1364.main(TestIBM1364.java:99)
        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.io.UnsupportedEncodingException: cp1364
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.io.UnsupportedEncodingException: cp1364
result: Failed. Execution failed: `main' threw exception: java.io.UnsupportedEncodingException: cp1364


test result: Failed. Execution failed: `main' threw exception: java.io.UnsupportedEncodingException: cp1364


Steps to reproduce: 

[stt-robot@stt-93]$ /export/jdk/6u22b90/jdk1.6.0_22/bin/javac TestIBM1364.java 
[stt-robot@stt-93]$ /export/jdk/6u22b90/jdk1.6.0_22/bin/java TestIBM1364      
Exception in thread "main" java.io.UnsupportedEncodingException: cp1364
        at java.lang.StringCoding.encode(StringCoding.java:269)
        at java.lang.String.getBytes(String.java:946)
        at TestIBM1364.main(TestIBM1364.java:99)
[stt-robot@stt-93]$ /export/jdk/6u21b06/jdk1.6.0_21/bin/javac TestIBM1364.java 
[stt-robot@stt-93]$ /export/jdk/6u21b06/jdk1.6.0_21/bin/java TestIBM1364

Comments
EVALUATION IBM cp1364 was added for JFB only in 6ux. So the testcase test/sun/nio/cs/TestIBM1364.java must fail SE bundle while pass with JFB bundle.
06-07-2010