summaryrefslogtreecommitdiff
path: root/java/nio/ByteBuffer.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/nio/ByteBuffer.java')
-rw-r--r--java/nio/ByteBuffer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/nio/ByteBuffer.java b/java/nio/ByteBuffer.java
index c809a43f9..ec494b816 100644
--- a/java/nio/ByteBuffer.java
+++ b/java/nio/ByteBuffer.java
@@ -68,7 +68,7 @@ public abstract class ByteBuffer extends Buffer
*/
public static ByteBuffer allocateDirect (int capacity)
{
- throw new Error ("direct buffers are not implemented");
+ return DirectByteBufferImpl.allocate (capacity);
}
/**