diff --git a/codec/src/main/java/io/netty/handler/codec/compression/ByteBufChecksum.java b/codec/src/main/java/io/netty/handler/codec/compression/ByteBufChecksum.java index 2aff623bd7..ffb827d26c 100644 --- a/codec/src/main/java/io/netty/handler/codec/compression/ByteBufChecksum.java +++ b/codec/src/main/java/io/netty/handler/codec/compression/ByteBufChecksum.java @@ -55,7 +55,7 @@ abstract class ByteBufChecksum implements Checksum { if (PlatformDependent.javaVersion() >= 8) { try { Method method = checksum.getClass().getDeclaredMethod("update", ByteBuffer.class); - method.invoke(method, ByteBuffer.allocate(1)); + method.invoke(checksum, ByteBuffer.allocate(1)); return method; } catch (Throwable ignore) { return null;