-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P2
-
None
-
Affects Version/s: 15
-
Component/s: tools
The below code declares a sealed class without any permits clause. It should throw a compilation error. However, the compilation goes through successfully.
final class Child extends Parent {
}
sealed class Parent {
public int check() { return 1; }
}
final class Child extends Parent {
}
sealed class Parent {
public int check() { return 1; }
}