You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::getLong has been called by com.kenai.jffi.UnsafeMemoryIO$UnsafeMemoryIO64 (file:.../jffi.jar)
WARNING: Please consider reporting this to the maintainers of class com.kenai.jffi.UnsafeMemoryIO$UnsafeMemoryIO64
WARNING: sun.misc.Unsafe::getLong will be removed in a future release
If I look into the source of Unsafe you should use the class VarHandle which exists since Java 9.
The text was updated successfully, but these errors were encountered:
Thanks for the issue! Yes, we know we should move to Java 9 VarHandle, but since this library still supports 8 we need to be able to work both ways. Perhaps you can help with a VarHandle patch?
@headius Thanks for the very fast feedback. If you want support the out dated Java 8 in the future then a possible solution for Java 8 support and the use of VarHandle in newer Java versions can be a multi-release jar file.
Perhaps you can help with a VarHandle patch?
No, I have self never use Unsafe or VarHandle. I know that it exists. This is all. This is not a good base to write a patch.
I get the follow on the console with Java 23:
If I look into the source of Unsafe you should use the class VarHandle which exists since Java 9.
The text was updated successfully, but these errors were encountered: