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

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: