JDK-8182409 : Release Note: Deprecate sun.misc.Unsafe.defineClass
  • Type: Sub-task
  • Component: core-libs
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2017-06-16
  • Updated: 2017-09-22
  • Resolved: 2017-06-16
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 9
9Resolved
Description
The method `sun.misc.Unsafe.defineClass` is deprecated for removal. Use the method `java.lang.invoke.MethodHandles.Lookup.defineClass` to define a class to the same class loader and in the same runtime package and protection domain of a given `Lookup`'s lookup class.