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

Unify access checks or make lookup mode available to VM

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • None
    • core-libs
    • None


      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.

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

              Created:
              Updated: