-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for sealed classes #167
Comments
Note to self: https://docs.oracle.com/javase/specs/jvms/se17/html/jvms-4.html#jvms-4.7.31 We need to read (and remember) the /**
* Returns the set of permitted subclasses of this {@code sealed} class (or interface).
* Returns an empty set if this class is not {@code sealed}.
*
* @return immutable set of names of this class's permitted subclasses, never {@code null}
*/
public Set<DotName> permittedSubclasses() {
...
} and a helper method /**
* @return {@code true} if this class object represents a sealed class (or interface)
*/
public boolean isSealed() {
return !permittedSubclasses().isEmpty();
} We don't need an |
I'm not aware of any prospective user, so filing this just for tracking. I'm thinking 3.x only, unless someone actually asks for a backport to 2.x.
The text was updated successfully, but these errors were encountered: