-
Bug
-
Resolution: Fixed
-
P2
-
6u171
-
b11
-
b01
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8187749 | 6u171 | Robert Mckenna | P2 | Closed | Fixed | b13 |
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.
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.
- backported by
-
JDK-8187749 JCK 6b: Serialization JCK tests failures in the 'AggressiveOpt' mode
- Closed