JDK-4902607 : REGRESSION: JCK1.5-runtime api/java_awt/Container/serial/index.html#Constructor
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 2003-08-07
  • Updated: 2021-12-07
  • Resolved: 2003-09-05
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
5.0 tigerFixed
Related Reports
Duplicate :  
Description

Name: mmR10223			Date: 08/07/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b13
JCK            : JCK1.5-runtime (b02)
Platform[s]    : all
switch/Mode    : default
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]: api/java_awt/Container/serial/index.html#Constructor [serial2001, result]

The test passes using JDK1.5.0-b12, JDK1.4.2-b28 on all platforms

Test source location:
=====================
/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_awt/Container/serial/ConstructorTests.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b13/jck15/sparc/sol10_sparc_gnome_client_batch_debug_linux-8/workDir/api/java_awt/Container/serial/index_Constructor.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)
 
--- script start ---
#!/bin/bash

JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/solaris-sparc"
CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"

$JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.java.awt.Container.serial.ConstructorTests -TestCaseID serial2001

--- script end ---

Test output:
============
ava.lang.IllegalArgumentException: Field not found: maxSize
	at javasoft.sqe.serial.StreamObjectClass.getField(StreamObjectClass.java:292)
	at javasoft.sqe.serial.spec.java.awt.Container.verify(Container.java:79)
	at javasoft.sqe.tests.api.java.awt.Container.serial.ConstructorTests.serial2001(ConstructorTests.java:127)
	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.Container.serial.ConstructorTests.main(ConstructorTests.java:30)
serial2001: Failed. Test case throws exception: java.lang.IllegalArgumentException: Field not found: maxSize
STATUS:Failed.test cases: 1; all failed; first test case failure: serial2001
result: Failed. test cases: 1; all failed; first test case failure: serial2001

Specific machine info:
======================
Hostname: linux-18
OS: Solaris 10 (x86) (GNOME)
Hostname: linux-8
OS: Solaris 10 (sparc) (GNOME)
Hostname: linux-24
OS: Linux RedHat



======================================================================

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

EVALUATION Name: rpR10076 Date: 08/11/2003 It was introduced with the fix for 4864304. As far as I can tell, there exists actual serialization incompatibility: if we serialize a Container with 1.4 and deserialize it with 1.5, it is likely to have incorrect maximum size. I suggest to return maxSize field to Container, and rename that field in Component. ###@###.### ====================================================================== Name: rpR10076 Date: 08/14/2003 Perhaps explicit setting of serialized form would be a better solution. ======================================================================
11-06-2004