JDK-8043275 : interface initialization for default methods
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-05-15
  • Updated: 2016-08-15
  • Resolved: 2014-10-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u40Fixed 9 b40Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
JDK-8043190 is adding clarifications to the JVM specification on super interface initialization.
First, recursively initialize any super class, unchanged.
Then recursively initialize super interfaces that declare a non-abstract instance method in class file interface array order.

Example:
interface I
interface J extends I
class A implements J
interface K extends I
class B extends A implements K
class C implements L

order of initialization: I, J, A, K, B, L, C

In JDK8 this was accomplished by initializing any super interfaces that declare or inherit default methods when initializing all superclasses of a class being initialized.This surprises people by changing the order of superinterface initialization.
.