Skip to content

Commit 2a68922

Browse files
committed
deprecate ReflectionAllocator
1 parent fb61c31 commit 2a68922

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

jme3-core/src/main/java/com/jme3/util/ReflectionAllocator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@
4141
/**
4242
* This class contains the reflection based way to remove DirectByteBuffers in
4343
* java, allocation is done via ByteBuffer.allocateDirect
44+
* @deprecated This class relies on internal APIs that are not accessible in Java 9+, and is not thread-safe for allocation bookkeeping. Use {@link SaferBufferAllocator} instead.
4445
*/
46+
@Deprecated
4547
public final class ReflectionAllocator implements BufferAllocator {
4648
private static Method cleanerMethod = null;
4749
private static Method cleanMethod = null;

0 commit comments

Comments
 (0)