JDK-6326153 : JCK14a api.java_awt.Color.ICC* tests throw exception for j2sdk1.4.2_10 build02
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2_10
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-20
  • Updated: 2013-02-20
  • Resolved: 2005-09-21
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.2_10Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
JAVA VERSION
------------
java version "1.4.2_10" (build 1.4.2_10-b02)

OS TESTED
---------
Win XPHome SP2
Solaris Sparc 8, 10

The following failures are JCK regressions from 142_10b1 to b2
------------------------------------------------------------
api/java_awt/Color/ICC_ColorSpace/serial/index.html#Constructor
api/java_awt/Color/ICC_Profile/serial/index.html#Input
api/java_awt/Color/ICC_ProfileGray/serial/index.html#Input
api/java_awt/Color/ICC_ProfileRGB/serial/index.html#Input

To reproduce: Use attached script ICC_ColorFail.sh
OR, for your convenience remote host UR test machine: 

hostname: sb2500-1.ireland
login: 
password: 

#cd /export/home/JQA/ts142/JCK/142_10b2
#sh ICC_ColorFail

There are two JDK PATH's in this script to 142_10b1 and b2 for your convenience.
 
Result of run ICC_ColorFail.sh

bash-3.00# sh ICC_ColorFail 
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b02)
Java HotSpot(TM) Client VM (build 1.4.2_10-b02, mixed mode)

java.lang.IllegalArgumentException: Invalid field: java.awt.color.ICC_Profile thisProfile
	at javasoft.sqe.serial.StreamObject.getObjectField(StreamObject.java:556)
	at javasoft.sqe.tests.api.java.awt.Color.ICC_ColorSpace.serial.ConstructorTests.serial2001(ConstructorTests.java:89)
	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:324)
	at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
	at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
	at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
	at javasoft.sqe.tests.api.java.awt.Color.ICC_ColorSpace.serial.ConstructorTests.main(ConstructorTests.java:30)
serial2001: Failed. Test case throws exception: java.lang.IllegalArgumentException: Invalid field: java.awt.color.ICC_Profile thisProfile
Creating StreamObject from Object
Checking for JDK Version : 1.2
Creating spec class.
STATUS:Failed.test cases: 1; all failed; first test case failure: serial2001
------------------------------------------------------------------------------
java version "1.4.2_10-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.2_10-ea-b01, mixed mode)

serial2001: Passed. OKAY
Creating StreamObject from Object
Checking for JDK Version : 1.2
Creating spec class.
Verifying the constraints on the serial fields
Checking for JDK Version : 1.21
Creating spec class.
Verifying the constraints on the serial fields
Checking for JDK Version : 1.22
Creating spec class.
Verifying the constraints on the serial fields
Checking for JDK Version : 1.3
Creating spec class.
Verifying the constraints on the serial fields
Checking for JDK Version : 1.4
Creating spec class.
Verifying the constraints on the serial fields
serial2001 passed.
STATUS:Passed.test cases: 1; all passed

Using up-to-date exclude file "jdk14a.jtx" /net/carlow.ireland/export/home4/jck/exclude-files/jdk14a.jtx

Comments
EVALUATION defining a serialVersionUID for the ICC_Profile class solves this problem. This has already been added to tiger. A backport of CR 4909781 is required.
21-09-2005

EVALUATION This failure was caused by change in the generation of the serialVersionUIDs for the ICC* classes. Here is the testcase showing the problem ------------ t.java --------------- import java.io.*; import java.awt.color.*; public class t { public static void main(String[] args) { System.out.println( ObjectStreamClass.lookup(ICC_Profile.class).getSerialVersionUID()); } } ----------------------------------- #java -version java version "1.4.2_10-ea" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-ea-b01) Java HotSpot(TM) Client VM (build 1.4.2_10-ea-b01, mixed mode) #java -cp . t -3938515861990936766 #java -version java version "1.4.2_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b02) Java HotSpot(TM) Client VM (build 1.4.2_10-b02, mixed mode) #java -cp . t 7428190221951740246 This problem could be fixed by adding explicit initialization of the serialVersionUID in the ICC* classes. But I'm not sure that this problem should be fixed at this level.
20-09-2005