franz1981 commented on code in PR #12163: URL: https://github.com/apache/kafka/pull/12163#discussion_r873652472
########## clients/src/main/java/org/apache/kafka/common/utils/Checksums.java: ########## @@ -30,6 +33,18 @@ */ public final class Checksums { + private static final MethodHandle BYTE_BUFFER_UPDATE; + + static { + MethodHandle byteBufferUpdate = null; + try { + byteBufferUpdate = MethodHandles.publicLookup().findVirtual(Checksum.class, "update", MethodType.methodType(void.class, ByteBuffer.class)); + } catch (Throwable silent) { Review Comment: I've added a LOG::warn in case the given signature is expected to be found (although it doesn't consider the security manager enabling option - but I don't believe is a common Kafka practice suggested to users). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org