JDK-8267178 : Release Note: Removal of sun.misc.Unsafe::defineAnonymousClass
  • Type: Sub-task
  • Component: core-libs
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-05-14
  • Updated: 2022-02-23
  • Resolved: 2022-02-23
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 17
17Resolved
Related Reports
Duplicate :  
Description
`sun.misc.Unsafe::defineAnonymousClass` API has been removed in JDK 17. 
The API replacement is `java.lang.invoke.MethodHandles.Lookup::defineHiddenClass` and `java.lang.invoke.MethodHandles.Lookup::defineHiddenClassWithClassData`.