Enum constant | Description |
---|---|
AUTO |
Produce native sealed classes when compiling for a suitable target bytecode (JDK17+) and automatically emulate the concept on earlier JDKs. |
EMULATE |
Indicate the sealed nature using annotations. |
NATIVE |
Produce Java-like code with sealed nature indicated by "native" bytecode information (JEP 360/397/409). |
Produce native sealed classes when compiling for a suitable target bytecode (JDK17+) and automatically emulate the concept on earlier JDKs.
Indicate the sealed nature using annotations. This allows sealed hierarchies in earlier JDKs but for integration purposes won't be recognised by Java.
Produce Java-like code with sealed nature indicated by "native" bytecode information (JEP 360/397/409). Produces a compile-time error when used on earlier JDKs.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.