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

Move private interface check to linktime

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b120

      Description

      When invoking private interface methods with invokeinterface we throw ICCE. The check for that happens in the runtime part of resolution, however, doing it at linktime seems like a better place, since the check doesn't depend on the receiver type. It also allows compiler interfaces that rely on linktime resolution to detect inconsistencies during parsing (see ciEnv::lookup_method() (CI) and ConstantPool.lookupMethod() (JVMCI) that are affected)

        Attachments

          Activity

            People

            • Assignee:
              iveresov Igor Veresov
              Reporter:
              iveresov Igor Veresov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: