From 2ff2d74f119d57b698fe9af60da90063d5551df2 Mon Sep 17 00:00:00 2001 From: mkoch Date: Tue, 11 Feb 2003 07:42:17 +0000 Subject: 2003-02-11 Michael Koch * java/nio/Buffer.java (cap, lim, pos, mark): Made private (Buffer): Added package private constructor. * java/nio/ByteBuffer.java (ByteBuffer): Implements Cloneable. (offset): New member variable. (readOnly): New member variable. (backing_buffer): New member variable. (allocateDirect): Throw exception and tell that direct buffers are not supported yet, documentation added. (allocate): Documentation added. (wrap): Documentation added. (ByteBuffer): New constructor. (hasArray): New method. (array): New method. (arrayOffset): New method. (get): Documentation added. (put): Documentation added. * java/nio/CharBuffer.java (CharBuffer): New constructor. (compareTo): Don't access member variables of Buffer directly. * java/nio/DoubleBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/FloatBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/IntBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/LongBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/MappedByteBuffer.java (MappedByteBuffer): New method. (force): New method. (isLoaded): New method. (load): New method. * java/nio/ShortBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62685 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/nio/DoubleBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/nio/DoubleBuffer.java') diff --git a/libjava/java/nio/DoubleBuffer.java b/libjava/java/nio/DoubleBuffer.java index 79de54a13ed..72a6c09078d 100644 --- a/libjava/java/nio/DoubleBuffer.java +++ b/libjava/java/nio/DoubleBuffer.java @@ -46,7 +46,7 @@ public abstract class DoubleBuffer extends Buffer implements Comparable public static DoubleBuffer allocateDirect(int capacity) { - return new DoubleBufferImpl(capacity, 0, capacity); + throw new Error ("direct buffers are not implemented"); } public static DoubleBuffer allocate(int capacity) -- cgit v1.2.3