Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8243287 Removal of Unsafe::defineAnonymousClass
  3. JDK-8267178

Release Note: Removal of sun.misc.Unsafe::defineAnonymousClass

    XMLWordPrintable

    Details

      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`.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: