-
Bug
-
Resolution: Fixed
-
P4
-
8
When a default method is invoked, the static fields of the declaring interface should be initialized. This condition should be added to the list of circumstances in which initialization can occur.
This condition should _not_ trigger initialization of any superinterfaces or subinterfaces -- only the interface that declares the method.
Note that default methods can be accessed through a variety of paths -- invokevirtual, invokeinterface, invokespecial, and MethodHandles.
This condition should _not_ trigger initialization of any superinterfaces or subinterfaces -- only the interface that declares the method.
Note that default methods can be accessed through a variety of paths -- invokevirtual, invokeinterface, invokespecial, and MethodHandles.
- relates to
-
JDK-8043275 interface initialization for default methods
- Closed
-
JDK-8058318 compiler changes for eager interface initialization
- Closed
-
JDK-8043188 12.4.1: Trigger interface initialization on default/static method invocation
- Closed
-
JDK-8087356 5.5: Do not guard superinterface initialization on state of superclass
- Closed