New candidate JEP: 409: Sealed Classes


Enhance the Java programming language with sealed classes and interfaces. Sealed classes and interfaces restrict which other classes or interfaces may extend or implement them…

More at https://mail.openjdk.java.net/pipermail/jdk-dev/2021-April/005292.html