Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8316160 Remove sun.misc.Unsafe.{shouldBeInitialized,ensureClassInitialized}
  3. JDK-8316343

Release Note: `sun.misc.Unsafe.shouldBeInitialized` and `ensureClassInitialized` Are Removed

    XMLWordPrintable

Details

    Description

      The `shouldBeInitialized(Class)` and `ensureClassInitialized(Class)` methods have been removed from `sun.misc.Unsafe`. These methods have been deprecated for removal since JDK 15. `java.lang.invoke.MethodHandles.Lookup.ensureInitialized(Class)` was added in Java 15 as a standard API to ensure that an accessible class is initialized.

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: