ArchUnit icon indicating copy to clipboard operation
ArchUnit copied to clipboard

Add support for sealed classes (Java 17)

Open rweisleder opened this issue 4 years ago • 2 comments

Java 15 will bring us JEP 360 (preview feature) which introduces sealed classes and permitted subclasses.

Currently, we are using ASM 8.0.1 which already contains experimental support for permitted subtypes. This merge request for ASM 9 contains the official support for this feature.

To do: Which API methods should be added? And should the permitted subclasses be considered as dependencies (if so, in which direction)?

rweisleder avatar Jul 03 '20 13:07 rweisleder

Sealed classes will be part of Java 17, see JEP 409.

rweisleder avatar May 21 '21 13:05 rweisleder