Draft JEP: Sealed Classes

Gavin Bierman gavin.bierman at oracle.com
Mon Mar 22 12:03:31 UTC 2021

Dear all,

Now JDK 16 is out (yay!) it’s time for us to focus on finalizing Sealed Classes in JDK 17.

I have written a draft JEP, which is unchanged (other than some superficial editorial changes) from JEP 397.


(I think Brian’s proposal to consider extending the language in some way to support assignment and switch statements being total over sealed hierarchies is something that can be considered as a JEP in itself.)

If you have any comments on the draft JEP, please let me know!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20210322/fd6fd023/attachment.htm>

More information about the amber-spec-experts mailing list