JDK-8238458 : Release Note: Lookup::in Throws IllegalArgumentException If requestedLookupClass Is a Primitive Type or an Array Class
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 14
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-02-04
  • Updated: 2020-04-27
  • Resolved: 2020-02-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14Resolved
Description
`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.