-
Bug
-
Resolution: Fixed
-
P4
-
repo-valhalla
-
generic
-
generic
As of LW2, an inline class declaration may not have an extends clause (not even extends Object).
Per http://cr.openjdk.java.net/~briangoetz/valhalla/sov/02-object-model.html, this is changing so that:
Supertypes
Inline classes can implement interfaces. They cannot extend arbitrary classes, but they can extend a limited category of abstract classes – those with no fields, empty no-arg constructor bodies, no other constructors, no instance initializers, no synchronized methods, and whose superclasses all meet this same set of conditions (Object and Number are examples of such classes.)
We should allow this.
Per http://cr.openjdk.java.net/~briangoetz/valhalla/sov/02-object-model.html, this is changing so that:
Supertypes
Inline classes can implement interfaces. They cannot extend arbitrary classes, but they can extend a limited category of abstract classes – those with no fields, empty no-arg constructor bodies, no other constructors, no instance initializers, no synchronized methods, and whose superclasses all meet this same set of conditions (Object and Number are examples of such classes.)
We should allow this.
- is blocked by
-
JDK-8242912 [lworld] Abstract classes should not implement IdentityObject
-
- Resolved
-
- relates to
-
JDK-8237952 [lworld] Examine Class::getAnnotatedInterfaces and other annotation-related API
-
- Resolved
-