JDK-8227045 : Preview APIs support for sealed classes
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-07-01
  • Updated: 2024-10-10
  • Resolved: 2020-06-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15 b26Fixed
Related Reports
CSR :  
Relates :  
Relates :  
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()
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/843695160574 User: vromero Date: 2020-06-01 21:01:06 +0000
01-06-2020