Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026065

InterfaceMethodref for invokespecial must name a direct superinterface

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b61

      Backports

        Description

        Given an invokespecial of the form:

        invokespecial I.m()V

        Where I is an interface, it must be the case that the calling class/interface has I as a direct superinterface. See Lambda Spec, 0.6.3, Part J, 4.9.2.

        I have been told that HotSpot currently allows a reference to an indirect superinterface. This should be prohibited, just like references to methods in classes unrelated to the calling class.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                lfoltan Lois Foltan
                Reporter:
                dlsmith Dan Smith
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: