Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8173975 Lookup::in should not allow target class be primitive or array class
  3. JDK-8238458

Release Note: Lookup::in Throws IllegalArgumentException If requestedLookupClass Is a Primitive Type or an Array Class

XMLWordPrintable

      `java.lang.invoke.MethodHandles.Lookup::in` method throws `IllegalArgumentException` if the given `requestedLookupClass` is a primitive type, void, or an array class. A `Lookup` object never intends to allow a lookup class of primitive type, void, or array class. Consequently, the specification of `Lookup::in` has been fixed in Java SE 14.

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

              Created:
              Updated:
              Resolved: