JDK-8137134 : invokespecial on indirect super interface is generated by Java adapter generator
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-09-25
  • Updated: 2016-06-13
  • Resolved: 2015-09-25
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
8u72Fixed 9 b84Fixed
Related Reports
Relates :  
Description
See the containing bug for the description (first part) of the problem.

Issue:

When script implements an interface with default methods, generated adapter class introduces delegating methods to call super type (i.e. interface ) methods. But, when indirectly inherited interface has such a default method, generated adapter wrongly delegates to super type of the super type. Invokespecial instruction calling such indirect super type's method is not valid. The fix is to use the immediate super types only for such delegating methods.