Description
The `Class` class should have a boolean-valued method `isSealed()` to reflect whether a type is sealed. There should also be some means of finding out the _names_ of the permitted subclasses; this is probably a method like
String[] getPermittedSubclasses()
String[] getPermittedSubclasses()
Attachments
Issue Links
- csr for
-
JDK-8244556 Preview APIs support for sealed classes
-
- Closed
-
- relates to
-
JDK-8244762 (sealed-types) [primitive].class.isSealed()/getPermittedSubclasses() crash VM
-
- Resolved
-
-
JDK-8246278 Refine API for sealing in java.lang.Class
-
- Resolved
-