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

[Nestmates] Restore private Lookup check in VerifyAccess.isMemberAccessible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: core-libs
    • Labels:

      Description

      In JDK-8195826 I mistakenly "optimised" the self-check in VerifyAccess.isMemberAccessible by removing the check for "private Lookup" - thinking class A can access any member of class A. But I missed the point that this is a Lookup instance that might have restricted Lookup capability - ie public only - in which case access to private members must be rejected. The check for "private Lookup" capability is critically important.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dholmes David Holmes
              Reporter:
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: