Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6345452

JCK14a api/java_util HashMap serial constructor test throws IllegalArgumentException for 1.4.2_11 b1

    Details

    • Subcomponent:
    • Introduced In Build:
      b01
    • Introduced In Version:
    • Resolved In Build:
      b02
    • CPU:
      generic, x86, sparc
    • OS:
      generic, linux_redhat_3.0, solaris_8, solaris_10, windows_2003
    • Verification:
      Verified

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hdongorcl Hao Dong (Inactive)
                Reporter:
                amckeownsunw Annemarie Mckeown (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: