JDK-8246791 : Release Note: Lookup::defineClass Links the Class
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-06-09
  • Updated: 2021-05-14
  • Resolved: 2020-07-14
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 15
15Resolved
Description
`Lookup::defineClass` is specified to throw `LinkageError` if a linkage error occurs, but the implementation was not actually linking the class.  In this release, the implementation has been changed to link the class before returning, so conforming to the specification.   If `Lookup::defineClass` is called to define a class that fails linking, `LinkageError` will be thrown.
Comments
Fixing grammar and marking Delivered.
14-07-2020