Open severn-everett opened 4 years ago
I don't have a plan to remove the usage of sun.misc.Unsafe
in the near future as a critical component library like lz4-java must support older Java as much as possible, but I am also happy to accept contributions to make lz4-java more compatible with newer versions of Java as long as support for older versions is somehow maintained.
JDeps is reporting the usage of
sun.misc.Unsafe
(i.e. inUnsafeUtils.java
) that is causing issues with our build process. Has there been any investigation into replacing this in the LZ4 library? On one hand, this would cause compatibility issues with version <9 JVMs, as the suggested replacement - VarHandle - isn't available until Java 9; on the other hand, this would help future-proof the library in case Oracle decides to make compatibility-breaking changes tosun.misc.Unsafe
(or yank it from the JDK outright).