JDK-6345452 : JCK14a api/java_util HashMap serial constructor test throws IllegalArgumentException for 1.4.2_11 b1
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 2.0,1.4.2_11
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS:
    generic,linux_redhat_3.0,solaris_8,solaris_10,windows_2003 generic,linux_redhat_3.0,solaris_8,solaris_10,windows_2003
  • CPU: generic,x86,sparc
  • Submitted: 2005-11-03
  • Updated: 2021-03-03
  • Resolved: 2005-12-09
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_11 b02Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
java version "1.4.2_11-ea"

JCK14a Test - api/java_util/HashMap/serial/index.html#ConstructorTests
fails for 1.4.2_11-ea-b01 but passes for 1.4.2_10-b3.

This is not specific to any platform - failure is observed on Solaris and Windows testing both 32bit and 64bit jvm.

STATUS for j2sdk1.4.2_10 shows all 6 test cases pass.
STATUS for j2sdk1.4.2_11 shows passed 5; failed 1 - first test cases failure: ConstructorTest 0001

See attached script HashMap_Const.sh to reproduce failure.
Output from running attached HashMap_Const.sh with java version 1.4.2_11-ea

java version "1.4.2_11-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-ea-b01)
Java HotSpot(TM) Client VM (build 1.4.2_11-ea-b01, mixed mode)

Chceking for assertion
Creating StreamObject from Object
Verifying for JDK version : 1.2
Creating from the spec class.
Verifying the constraints on the serial fields
java.lang.IllegalArgumentException: Invalid optional data: null
	at javasoft.sqe.serial.spec.java.util.HashMap.verify(HashMap.java:72)
	at javasoft.sqe.tests.api.java.util.HashMap.serial.ConstructorTests.Cons
tructorTest0001(ConstructorTests.java:119)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.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.tests.api.java.util.HashMap.serial.ConstructorTests.main
(ConstructorTests.java:48)
ConstructorTest0001: Failed. Test case throws exception: java.lang.IllegalArgume
ntException: Invalid optional data: null
Chceking for assertion
Creating StreamObject from Object
Verifying for JDK version : 1.2
Creating from the spec class.
Verifying the constraints on the serial fields
ConstructorTest0002 passed.
ConstructorTest0002: Passed. OK
Creating StreamObject from ObjectConstructorTest0003 passed.
ConstructorTest0003: Passed. OK
Creating StreamObject from Object
Verifying for JDK version : 1.2
Creating from the spec class.
Verifying the constraints on the serial fields
ConstructorTest0004 passed.
ConstructorTest0004: Passed. OK
Creating StreamObject from Object
Verifying for JDK version : 1.2
Creating from the spec class.
Verifying the constraints on the serial fields
ConstructorTest0005 passed.
ConstructorTest0005: Passed. OK
Creating StreamObject from Object
Verifying for JDK version : 1.2
Creating from the spec class.
Verifying the constraints on the serial fields
ConstructorTest0006 passed.
ConstructorTest0006: Passed. OK
STATUS:Failed.test cases: 6; passed: 5; failed: 1; first test case failure: Cons
tructorTest0001

Comments
EVALUATION root cause known. Will fix in b02
03-11-2005