Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8137093 Implementing Java interfaces with default methods has issues.
  3. JDK-8137134

invokespecial on indirect super interface is generated by Java adapter generator

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • core-libs
    • None

        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.

              sundar Sundararajan Athijegannathan
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: