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

JCK 6b: Serialization JCK tests failures in the 'AggressiveOpt' mode

XMLWordPrintable

        Some of the tests mentioned below failing with the reason of
        java.lang.NoSuchMethodError: java.util.HashMap.roundUpToPowerOf2
        AND
        java.lang.IllegalStateException: unread block data

        Tests failing
        -----------------
        api/java_util/serialization/descriptions.html#HashSet
        api/javax_print/attribute/standard/JobStateReasons/serial/index.html#Input
        api/javax_management/jmx_serial/openmbean/OpenMBeanParameterInfoSupport/serial/index.html#Input
        api/java_awt/TextArea/AccessibleAWTTextArea/serial/index.html#Constructor
        api/java_awt/TextComponent/AccessibleAWTTextComponent/serial/index.html#Constructor
        api/java_awt/TextArea/AccessibleAWTTextArea/serial/index.html#Input
        api/java_awt/TextComponent/AccessibleAWTTextComponent/serial/index.html#Input
        api/java_awt/serialization/descriptions.html#Component
        api/java_awt/serialization/descriptions.html#Container
        api/java_awt/serialization/descriptions.html#TextArea
        api/java_awt/serialization/descriptions.html#TextComponent
        api/javax_management/remote/security/index.html#RmiIiopMBeanServerForwarderTest
        api/javax_management/remote/security/index.html#RmiJrmpMBeanServerForwarderTest
        api/javax_management/remote/protocol/RmiMBeanServerRequestTest.html#RmiMBeanServerRequestTest
        api/javax_management/remote/security/index.html#RmiIiopMBeanServerConnectionTest
        api/javax_management/remote/security/index.html#RmiJrmpMBeanServerConnectionTest
        api/javax_management/remote/loading/index.html#RmiIiopServerDefaultClassLoaderTest
        api/javax_management/remote/loading/index.html#RmiJrmpServerDefaultClassLoaderTest
        api/javax_management/remote/security/index.html#RmiIiopSubjectDelegationTest
        api/javax_management/remote/security/index.html#RmiJrmpSubjectDelegationTest
        api/javax_management/remote/rmi/RMIConnection/index.html#RMIConnectionTest

        Reproduced with the below piece of code:
        -------------------------------------------------------

        HashSet hashSet = new HashSet();
                hashSet.add("krishna");

                ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
                try {
                    ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream);
                    objectOutputStream.writeObject(hashSet);
                    ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(byteArrayOutputStream.toByteArray());
                    ObjectInputStream objin = new ObjectInputStream(byteArrayInputStream);
                    System.out.println("the objin "+objin);
                    try {
                        objin.readObject();
                        System.out.println("After readObject");

                    } catch (ClassNotFoundException e) {
                        e.printStackTrace();
                    }
                } catch (IOException e) {
                    e.printStackTrace();
                }

        NOTE : The tests are failing only in "AggressiveOpt" mode.

              robm Robert Mckenna
              kganapureddy Krushnareddy Ganapureddy
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: