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

InterfaceMethodref for invokespecial must name a direct superinterface

XMLWordPrintable

    • b61

        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.

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

                Created:
                Updated:
                Resolved: