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

    • Verified

    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

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: