fast-serialization icon indicating copy to clipboard operation
fast-serialization copied to clipboard

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called (java versions 24 - 25 )

Open istinnstudio opened this issue 3 months ago • 0 comments

It seems that java 25 LTS will be the last version to support sun.misc.Unsafe. There has to be a replacement for this dependency in order for the library to be able to work in later versions.

WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by org.nustaq.serialization.util.FSTUtil (file:....jar) WARNING: Please consider reporting this to the maintainers of class org.nustaq.serialization.util.FSTUtil WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release

https://openjdk.org/jeps/471

As to timing, we plan to implement

Phase 1, via this JEP, in JDK 23; Phase 2, issuing run-time warnings, in or before JDK 25; Phase 3, throwing exceptions by default, in JDK 26 or later; and Phases 4 and 5, which will remove the methods, in releases following JDK 26.

istinnstudio avatar Sep 24 '25 23:09 istinnstudio