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

findClass / accessClass throw unexpected exceptions

    XMLWordPrintable

Details

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

    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

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

              Dates

                Created:
                Updated:
                Resolved: