We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e88ba9 commit 6617d80Copy full SHA for 6617d80
src/test/java/org/lmdbjava/ByteBufProxy.java
@@ -56,7 +56,10 @@ public final class ByteBufProxy extends BufferProxy<ByteBuf> {
56
static {
57
try {
58
// create buffer (first is SimpleLeakAwareByteBuff but we need PooledUDBB)
59
- DEFAULT.directBuffer(0);
+ final ByteBuf bb = DEFAULT.directBuffer(0);
60
+ if (!NAME.equals(bb.getClass().getName())) {
61
+ throw new IllegalStateException("Netty buffer must be " + NAME);
62
+ }
63
final Field address = findField(NAME, FIELD_NAME_ADDRESS);
64
final Field length = findField(NAME, FIELD_NAME_LENGTH);
65
ADDRESS_OFFSET = UNSAFE.objectFieldOffset(address);
0 commit comments