< prev index next >

src/java.base/share/classes/java/nio/Buffer.java

Print this page

        

@@ -737,9 +737,13 @@
             new JavaNioAccess() {
                 @Override
                 public JavaNioAccess.BufferPool getDirectBufferPool() {
                     return Bits.BUFFER_POOL;
                 }
+                @Override
+                public ByteBuffer newDirectByteBuffer(long addr, int cap, Object ob) {
+                    return new DirectByteBuffer(addr, cap, ob);
+                }
             });
     }
 
 }
< prev index next >