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

findClass / accessClass throw unexpected exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved: