microstream icon indicating copy to clipboard operation
microstream copied to clipboard

Deprecated method: Unsafe.enuseClassInitialized sice java 15

Open zdenek-jonas opened this issue 3 years ago • 0 comments

Method Unsafe.enuseClassInitialized is deprecated and also mark for removal...

    /**
     * Ensures the given class has been initialized. This is often
     * needed in conjunction with obtaining the static field base of a
     * class.
     *
     * @deprecated Use the {@link java.lang.invoke.MethodHandles.Lookup#ensureInitialized(Class)}
     * method instead.  This method is subject to removal in a future version of JDK.
     */

We use this method in class: base/src/main/java/one/microstream/memory/sun/JdkInternals.java:1014

The suggested method is exists from java 15

zdenek-jonas avatar Dec 10 '21 12:12 zdenek-jonas