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

Unify access checks or make lookup mode available to VM

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd_major
    • Component/s: core-libs
    • Labels:
      None

      Description


      The introduction of Lookup.UNCONDITIONAL means that access checking in the VM is no longer 100% aligned with the access checking in java.lang.invoke. This arises because the VM doesn't have the lookup mode and so can't distinguish a caller/accessor that is java.lang.Object from an access check creating a method handle with publicLookup().

      This issue is created to re-examine this area, maybe to see if the access checking should be unified or else provide the lookup mode to the VM so that it can be used by the LinkResolver.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: