-
Bug
-
Resolution: Fixed
-
P4
-
8
If a static method of an interface is invoked, the interface's static fields should be initialized. "T is a class and a static method declared by T is invoked" should no longer be restricted to classes.
If a default method of an interface is invoked, it should also cause the static fields of the interface to be initialized. This is probably best handled with a new rule.
If a default method of an interface is invoked, it should also cause the static fields of the interface to be initialized. This is probably best handled with a new rule.
- duplicates
-
JDK-8043578 Initialization of interface with default method is missing from JLS8
-
- Closed
-
- relates to
-
JDK-8043190 5.5: Trigger interface initialization on default method invocation
-
- Closed
-
-
JDK-8087356 5.5: Do not guard superinterface initialization on state of superclass
-
- Closed
-