Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
16
-
b28
Description
Currently, if the number_of_classes field in the PermittedSubclasses attribute is zero then the JVM throws a ClassFormatError exception. Instead, no exception should be thrown and the class cannot be extended.
Attachments
Issue Links
- csr for
-
JDK-8257861 Class::getPermittedSubclasses returns null on non-sealed class or interface
-
- Closed
-
- relates to
-
JDK-8246777 JVMS changes for Sealed Classes (Second Preview)
-
- Resolved
-