Jackie-Jiang commented on code in PR #15878:
URL: https://github.com/apache/pinot/pull/15878#discussion_r2112558743


##########
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/ByteBufferUtil.java:
##########
@@ -42,11 +45,16 @@ public class ByteBufferUtil {
         Constructor<? extends ByteBuffer> dbbCC =
             (Constructor<? extends ByteBuffer>) 
Class.forName("java.nio.DirectByteBuffer")
                 .getDeclaredConstructor(Long.TYPE, Integer.TYPE, Object.class, 
memorySegmentProxyClass);
+        dbbCC.setAccessible(true);
+        MethodHandle dbbCCMh = 
MethodHandles.lookup().unreflectConstructor(dbbCC)
+            .asType(MethodType.methodType(
+                ByteBuffer.class,
+                long.class, int.class, Object.class, Object.class

Review Comment:
   (nit) Reformat



-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to