use of io.netty.util.IllegalReferenceCountException in project flink by apache.
the class AbstractByteBufTest method testArrayAfterRelease.
@Test
public void testArrayAfterRelease() {
ByteBuf buf = releasedBuffer();
if (buf.hasArray()) {
try {
buf.array();
fail();
} catch (IllegalReferenceCountException e) {
// expected
}
}
}
Aggregations