Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b16
Description
Unsafe.{shouldBeInitialized,ensureClassInitialized} are deprecated for removal since JDK 15. It's time to remove them. Lookup.ensureInitialized(Class) was added in Java 15 as a standard API so no need to use these Unsafe.ensureClassInitialized anymore. Unsafe.shouldBeInitialized isn't reliable when multiple threads may initialise the class, users of that method should look at Lookup.ensureInitialized too.
Attachments
Issue Links
- csr for
-
JDK-8316284 Remove sun.misc.Unsafe.{shouldBeInitialized,ensureClassInitialized}
- Closed
- relates to
-
JDK-8321654 Degrade more of sun.misc.Unsafe
- Open
There are no Sub-Tasks for this issue.