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

findClass / accessClass throw unexpected exceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      There are several issues with MethodHandles.Lookup.findClass() and accessClass() after JEP 274 was integrated:

      1. accessClass() doesn't throw IAE on lookup object when a private static nested class of the other class is passed as an argument;

      2. the same problem with findClass();

      3. findClass() throws ClassNotFoundException on publicLookup object when a private static nested class of the other class is passed as an argument.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mhaupt Michael Haupt
                Reporter:
                mhaupt Michael Haupt
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: