JDK-4433455 : Regression test:/sun/io/Conberter/ConverterTest.java failing
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_7,solaris_8
  • CPU: sparc
  • Submitted: 2001-04-03
  • Updated: 2001-11-27
  • Resolved: 2001-11-13
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
1.4.0 rc1Fixed
Related Reports
Relates :  
Relates :  
Description
Regression test:/sun/io/Converter/ConverterTest.java failed with jdk1.4 beta b58 on sol sparc 2.6 in ko. It failed on Solaris sparc 8 in C locale.


Below is a part of a message:

----------System.out:(4/119)----------
ConverterTest {
  test4159519 {
    Error in converter: Cp937
    Uncaught exception thrown in test method test4159519
----------System.err:(18/822)----------
java.lang.RuntimeException: Uncaught exception thrown in test method test4159519

        at TestFmwk.err(TestFmwk.java:165)
        at TestFmwk.errln(TestFmwk.java:170)
        at TestFmwk.run(TestFmwk.java:117)
        at ConverterTest.main(ConverterTest.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
        at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:47)
        at java.lang.reflect.Method.invoke(Method.java:306)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:579)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519

JavaTest Message: shutting down test

STATUS:Failed.
result: Failed. Execution failed

keiko.nakayama@Eng 2001-04-03

--------------------------
al.smith@eng 2001-04-19
Regression test sun/io/Converter/ConverterTest.java fails with Merlin build build60 on sol2.7, host tiggr.  The previous build this test passed with was b56.

For test hardware config's, see http://sqesvr.eng/st3/jdk1.4/docs/Merlin-hw.html
#Test Results (version 2)
#Mon Apr 16 22:10:10 PDT 2001
#checksum:4d0a6f1d8d665492
#-----testdescription-----
$file=/export1/regression/merlin/jdk1.4Tests/b60/sun/io/Converter/ConverterTest.java
$root=/export1/regression/merlin/jdk1.4Tests/b60
keywords=bug4199484 bug4199599 bug4199601 bug4199602 bug4159519 bug4201529 bug4199604 bug4201532
run=USER_SPECIFIED main ConverterTest\n
source=ConverterTest.java
title=test Bug 4199484

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

#-----testresult-----
description=file:///export1/regression/merlin/jdk1.4Tests/b60/sun/io/Converter/ConverterTest.java
end=Mon Apr 16 22:10:10 PDT 2001
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519
javatestOS=SunOS 5.7 (sparc)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile main
start=Mon Apr 16 22:10:02 PDT 2001
status=Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519
test=sun/io/Converter/ConverterTest.java
work=/export0/results/regression/merlin/b60/tiggr5.7-jthb60-jdk14b60.04-16.19.50-noAwt2-64/sun/io/Converter

#section:script_messages
----------messages:(4/201)----------
JDK under test: (/export1/java/jdk14b60)
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b60)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b60, mixed mode)

#section:build
----------messages:(3/98)----------
command: build ConverterTest 
reason: Named class compiled on demand
elapsed time (seconds): 3.22
result: Passed. Compilation successful

#section:compile
----------messages:(3/177)----------
command: compile /export1/regression/merlin/jdk1.4Tests/b60/sun/io/Converter/ConverterTest.java 
reason: .class file out of date or does not exist
elapsed time (seconds): 3.216
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/113)----------
command: main ConverterTest
reason: User specified action: run main ConverterTest 
elapsed time (seconds): 5.226
----------System.out:(4/119)----------
ConverterTest {
  test4159519 {
    Error in converter: Cp937
    Uncaught exception thrown in test method test4159519
----------System.err:(18/926)----------
java.lang.RuntimeException: Uncaught exception thrown in test method test4159519

	at TestFmwk.err(TestFmwk.java:165)
	at TestFmwk.errln(TestFmwk.java:170)
	at TestFmwk.run(TestFmwk.java:117)
	at ConverterTest.main(ConverterTest.java:36)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
	at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:48)
	at java.lang.reflect.Method.invoke(Method.java:306)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:579)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519

JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519

test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4159519


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-rc1 FIXED IN: merlin-rc1 INTEGRATED IN: merlin-rc1 VERIFIED IN: merlin-rc1
14-06-2004

EVALUATION Converter test data for Cp937 doesn't contain the requisite '#STATEFULL' tag required by this specific regression test. This fix will be brought forward from 1.3.1 workspace. Ian.Little@Ireland 4/4/2001. The Cp937.b2c golden data test file wasn't merged correctly in last putback. The version from 1.3.1 workspace has been brought over and merged and is now the appropriate version for 1.4 char converter regression tests. Ian.Little@Ireland 5/24/2001 -------- The test case still failed with b66. The message is the same in the description. Did you really integrated? keiko.nakayama@Eng 2001-06-07 ------------------------------------------------------------ This is integrated. I have just checked it on build 70: $ /usr/local/java/jdk1.4/s*c/bin/java -version java version "1.4.0-beta_refresh" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b70) Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b70, mixed mode) $ $ /usr/local/java/jdk1.4/s*c/bin/java ConverterTest ConverterTest { test4159519 Passed test4199604 Passed test4199602 Passed test4199484 Passed test4201532 Passed test4199601 Passed test4201529 Passed test4199599 Passed } Passed Ian.Little@Ireland 7/12/2001 -------------------------------------------------------------------------------- I tried to verify the fix. But the test case failed with jdk1.4 beta3 b80 on Solaris 8 C locale. Below is the message. Is there a bug on JDK now? ----------System.out:(5/140)---------- ConverterTest { test4159519 Passed test4199604 { Error in converter: Cp970 Uncaught exception thrown in test method test4199604 ----------System.err:(18/926)---------- java.lang.RuntimeException: Uncaught exception thrown in test method test4199604 at TestFmwk.err(TestFmwk.java:165) at TestFmwk.errln(TestFmwk.java:170) at TestFmwk.run(TestFmwk.java:117) at ConverterTest.main(ConverterTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:313) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:539) JavaTest Message: Test threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4199604 ###@###.### 2001-09-21 There are two issues remaining here. The ByteToCharCp970 converter has an incorrect mapping for {0xa2, 0xc1} --> U+25C9. However, in fixing 4429377 the char->byte mapping from U+25C9 -> {0xa2, 0xc1} was removed. The byte->char mapping ought to be, {0xa2, 0xc1} (Cp970) -> U+2299 The test data should also be updated and the mapping to U+25C9 ought to be removed. Then the regression test sun/io/Converter/ConverterTest will succeed and the Cp970 converter changes intended to have been delivered with fix to bug 4429377 will be realised. ###@###.### 2001-09-24 ------------------------------------------------------------------------------- failed with b81 solspac 8 Clocale. Used the test case: @test 1.13 01/03/29 Has the fix been integrated? ConverterTest { test4159519 Passed test4199604 Passed test4199602 Passed test4199484 Passed test4201532 { Error in converter: Cp1383 Uncaught exception thrown in test method test4201532 ----------System.err:(18/926)---------- java.lang.RuntimeException: Uncaught exception thrown in test method test4201532 at TestFmwk.err(TestFmwk.java:165) at TestFmwk.errln(TestFmwk.java:170) at TestFmwk.run(TestFmwk.java:117) at ConverterTest.main(ConverterTest.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) at java.lang.reflect.Method.invoke(Method.java:327) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:539) JavaTest Message: Test threw exception: java.lang.RuntimeException: Uncaught exception thrown in test method test4201532 ###@###.### 2001-10-03 -------------------------------------------------------------------------------- There are two remaining issues. Firstly, the Cp1381 test data contains an obsolete mapping [Cp1381]0xa1a4 <--> U+00B7. This should be removed from the test data. For Cp1383 bug 4201532 may need to be revisited as it introduces an additionally requested mapping namely, [Cp1383]0x1a --> U+00A3 (POUND SIGN) ConverterTest attempts to validate this bugfix by checking roundtrip property for this mapping. However, the single native char 0x1a is reserved in Cp1383 as the substitution character. The suitability of the fix applied in 1.3 for 4201532 will need to be re-evaluated. ###@###.### 2001-10-04 Confirmed with IBM Japan that Cp1381 mapping [Cp1381] 0x1a --> U+00A3 is incorrect and instead should be [Cp1381] 0x1a --> U+001A. --------------------------------------------------------------------------------verified the fix with jdk1.4 rc b86 on solaris sparc 8 ###@###.### 2001-11-23
23-11-2001

SUGGESTED FIX Will need to backout previously applied fix (1.3) for 4201532 remove test4201532() method from ConverterTest.java and remove the illegal mapping data in Cp1383.b2c. Also the Cp1381 test which attempts to validate roundtrip mapping for [Cp1381]0xa1a4 <--> U+00B7 needs to be removed from Cp1381.b2c since this is a char->byte fallback and instead test4201529() method in ConverterTest should be updated to just validate the one-way char->byte mapping U+00B7 --> 0xa1a4. ###@###.### 2001-10-05
05-10-2001