btreemap icon indicating copy to clipboard operation
btreemap copied to clipboard

btreemap doesn't work with Java 17

Open brunnsbe opened this issue 3 years ago • 0 comments

The code uses sun.misc.Unsafe which isn't supported anymore in Java 17: https://github.com/batterseapower/btreemap/blob/ba6f9ce32e99ccb9b4e965f1e634e5df8bd6b838/src/main/templates/uk.co.omegaprime.btreemap/%7B%7BKV_%7D%7DNode.java#L64

The problem can be fixed by replacing it with jdk.internal.misc.Unsafe.objectFieldOffset but it would be better to altogether get rid of the usage of Unsafe.

brunnsbe avatar Oct 18 '22 05:10 brunnsbe