Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233527 Update Lookup::hasPrivateAccess and Lookup::defineClass spec w.r.t. full power lookup
  3. JDK-8236696

Release Note: MethodHandles::privateLookupIn Might Not Produce a Lookup With Full Privilege Access

XMLWordPrintable

      The `Lookup` object produced by `MethodHandles::privateLookupIn` in this release might not have full privilege access. A `Lookup` that possesses both PRIVATE and MODULE access modes is said to possess full privilege access that can be tested with the `Lookup::hasFullPrivilegeAccess` method.
      In previous releases, a `Lookup` returned from `MethodHandles::privateLookupIn` could be used to look up caller-sensitive methods. In Java SE 14, if a `Lookup` does not have full privilege access (even though it has private access mode), it might fail to look up caller-sensitive methods.

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: