OSDN Git Service

2003-02-11 Michael Koch <konqueror@gmx.de>
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Feb 2003 09:44:57 +0000 (09:44 +0000)
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Feb 2003 09:44:57 +0000 (09:44 +0000)
* gnu/java/nio/natCharBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natDoubleBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natFloatBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natIntBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natLongBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/natShortBufferImpl.cc
(nio_cast): Removed.
(nio_put_*): Removed.
(nio_get_*): Removed.
* gnu/java/nio/SelectorProviderImpl.java
(openDatagramChannel): Throws IOException.
(openPipe): Throws IOException.
(openSelector): Throws IOException.
(openServerSocketChannel): Throws IOException.
(openSocketChannel): Throws IOException.
* gnu/java/nio/ServerSocketChannelImpl.java
(ServerSocketChannelImpl): Throws IOException.
(implCloseSelectableChannel): Throws IOException.
(implConfigureBlocking): Throws IOException.
* java/nio/ByteBuffer.java
(readOnly): Removed.
(hasArray): Use isReadOnly() instead of readOnly.
(array): Use isReadOnly() instead of readOnly.
(arrayOffset): Use isReadOnly() instead of readOnly.
* java/nio/CharBuffer.java
(CharBuffer): Implements Cloneable and CharSequence.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62688 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/gnu/java/nio/SelectorProviderImpl.java
libjava/gnu/java/nio/ServerSocketChannelImpl.java
libjava/gnu/java/nio/natCharBufferImpl.cc
libjava/gnu/java/nio/natDoubleBufferImpl.cc
libjava/gnu/java/nio/natFloatBufferImpl.cc
libjava/gnu/java/nio/natIntBufferImpl.cc
libjava/gnu/java/nio/natLongBufferImpl.cc
libjava/gnu/java/nio/natShortBufferImpl.cc
libjava/java/nio/ByteBuffer.java
libjava/java/nio/CharBuffer.java

index a1641fe..466fd09 100644 (file)
@@ -1,5 +1,49 @@
 2003-02-11  Michael Koch  <konqueror@gmx.de>
 
+       * gnu/java/nio/natCharBufferImpl.cc
+       (nio_cast): Removed.
+       (nio_put_*): Removed.
+       (nio_get_*): Removed.
+       * gnu/java/nio/natDoubleBufferImpl.cc
+       (nio_cast): Removed.
+       (nio_put_*): Removed.
+       (nio_get_*): Removed.
+       * gnu/java/nio/natFloatBufferImpl.cc
+       (nio_cast): Removed.
+       (nio_put_*): Removed.
+       (nio_get_*): Removed.
+       * gnu/java/nio/natIntBufferImpl.cc
+       (nio_cast): Removed.
+       (nio_put_*): Removed.
+       (nio_get_*): Removed.
+       * gnu/java/nio/natLongBufferImpl.cc
+       (nio_cast): Removed.
+       (nio_put_*): Removed.
+       (nio_get_*): Removed.
+       * gnu/java/nio/natShortBufferImpl.cc
+       (nio_cast): Removed.
+       (nio_put_*): Removed.
+       (nio_get_*): Removed.
+       * gnu/java/nio/SelectorProviderImpl.java
+       (openDatagramChannel): Throws IOException.
+       (openPipe): Throws IOException.
+       (openSelector): Throws IOException.
+       (openServerSocketChannel): Throws IOException.
+       (openSocketChannel): Throws IOException.
+       * gnu/java/nio/ServerSocketChannelImpl.java
+       (ServerSocketChannelImpl): Throws IOException.
+       (implCloseSelectableChannel): Throws IOException.
+       (implConfigureBlocking): Throws IOException.
+       * java/nio/ByteBuffer.java
+       (readOnly): Removed.
+       (hasArray): Use isReadOnly() instead of readOnly.
+       (array): Use isReadOnly() instead of readOnly.
+       (arrayOffset): Use isReadOnly() instead of readOnly.
+       * java/nio/CharBuffer.java
+       (CharBuffer): Implements Cloneable and CharSequence.
+
+2003-02-11  Michael Koch  <konqueror@gmx.de>
+
        * java/nio/DoubleBuffer.java
        (DoubleBuffer): Implements Comparable.
        (endian): Removed.
index 3fedfc7..d58e10a 100644 (file)
@@ -37,6 +37,7 @@ exception statement from your version. */
 
 package gnu.java.nio;
 
+import java.io.IOException;
 import java.nio.channels.DatagramChannel;
 import java.nio.channels.Pipe;
 import java.nio.channels.ServerSocketChannel;
@@ -51,26 +52,31 @@ public class SelectorProviderImpl extends SelectorProvider
   }
 
   public DatagramChannel openDatagramChannel ()
+    throws IOException
   {
     return new DatagramChannelImpl (this);
   }
 
   public Pipe openPipe ()
+    throws IOException
   {
     return new PipeImpl ();
   }
     
   public AbstractSelector openSelector ()
+    throws IOException
   {
     return new SelectorImpl (this);
   }
 
   public ServerSocketChannel openServerSocketChannel ()
+    throws IOException
   {
     return new ServerSocketChannelImpl (this);
   }
 
   public SocketChannel openSocketChannel ()
+    throws IOException
   {
     return new SocketChannelImpl (this);
   }
index 4a51f2a..d681093 100644 (file)
@@ -58,6 +58,7 @@ class ServerSocketChannelImpl extends ServerSocketChannel
                                           SocketChannelImpl s);
 
   protected ServerSocketChannelImpl (SelectorProvider provider)
+    throws IOException
   {
     super (provider);
     fd = SocketChannelImpl.SocketCreate ();
@@ -86,14 +87,14 @@ class ServerSocketChannelImpl extends ServerSocketChannel
            }
   }
 
-  protected void implCloseSelectableChannel ()
+  protected void implCloseSelectableChannel () throws IOException
   {
     connected = false;
     SocketChannelImpl.SocketClose (fd);
     fd = SocketChannelImpl.SocketCreate ();
   }
 
-  protected void implConfigureBlocking (boolean block)
+  protected void implConfigureBlocking (boolean block) throws IOException
   {
     blocking = block;
   }
index 2d01a67..6f9bf64 100644 (file)
@@ -11,115 +11,13 @@ gnu::java::nio::CharBufferImpl::nio_cast(JArray<jbyte>*)
   return NULL;
 }
 
-JArray<jchar>*
-gnu::java::nio::CharBufferImpl::nio_cast(JArray<jshort>*)
-{
-  return NULL;
-}
-
-JArray<jchar>*
-gnu::java::nio::CharBufferImpl::nio_cast(JArray<jint>*)
-{
-  return NULL;
-}
-
-JArray<jchar>*
-gnu::java::nio::CharBufferImpl::nio_cast(JArray<jlong>*)
-{
-  return NULL;
-}
-
-JArray<jchar>*
-gnu::java::nio::CharBufferImpl::nio_cast(JArray<jchar>*)
-{
-  return NULL;
-}
-
-JArray<jchar>*
-gnu::java::nio::CharBufferImpl::nio_cast(JArray<jfloat>*)
-{
-  return NULL;
-}
-
-JArray<jchar>*
-gnu::java::nio::CharBufferImpl::nio_cast(JArray<jdouble>*)
-{
-  return NULL;
-}
-
 void
 gnu::java::nio::CharBufferImpl::nio_put_Byte(gnu::java::nio::CharBufferImpl*, jint, jint, jbyte)
 {
 }
 
-void
-gnu::java::nio::CharBufferImpl::nio_put_Char(gnu::java::nio::CharBufferImpl*, jint, jint, jchar)
-{
-}
-
-void
-gnu::java::nio::CharBufferImpl::nio_put_Short(gnu::java::nio::CharBufferImpl*, jint, jint, jshort)
-{
-}
-
-void
-gnu::java::nio::CharBufferImpl::nio_put_Int(gnu::java::nio::CharBufferImpl*, jint, jint, jint)
-{
-}
-
-void
-gnu::java::nio::CharBufferImpl::nio_put_Long(gnu::java::nio::CharBufferImpl*, jint, jint, jlong)
-{
-}
-
-void
-gnu::java::nio::CharBufferImpl::nio_put_Float(gnu::java::nio::CharBufferImpl*, jint, jint, jfloat)
-{
-}
-
-void
-gnu::java::nio::CharBufferImpl::nio_put_Double(gnu::java::nio::CharBufferImpl*, jint, jint, jdouble)
-{
-}
-
 jbyte
 gnu::java::nio::CharBufferImpl::nio_get_Byte(gnu::java::nio::CharBufferImpl*, jint, jint)
 {
   return 0;
 }
-
-jchar
-gnu::java::nio::CharBufferImpl::nio_get_Char(gnu::java::nio::CharBufferImpl*, jint, jint)
-{
-  return ' ';
-}
-
-jshort
-gnu::java::nio::CharBufferImpl::nio_get_Short(gnu::java::nio::CharBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jint
-gnu::java::nio::CharBufferImpl::nio_get_Int(gnu::java::nio::CharBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jlong
-gnu::java::nio::CharBufferImpl::nio_get_Long(gnu::java::nio::CharBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jfloat
-gnu::java::nio::CharBufferImpl::nio_get_Float(gnu::java::nio::CharBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
-
-jdouble
-gnu::java::nio::CharBufferImpl::nio_get_Double(gnu::java::nio::CharBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
index 53bf73d..c71fd03 100644 (file)
@@ -11,115 +11,13 @@ gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jbyte>*)
   return NULL;
 }
 
-JArray<jdouble>*
-gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jshort>*)
-{
-  return NULL;
-}
-
-JArray<jdouble>*
-gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jint>*)
-{
-  return NULL;
-}
-
-JArray<jdouble>*
-gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jlong>*)
-{
-  return NULL;
-}
-
-JArray<jdouble>*
-gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jchar>*)
-{
-  return NULL;
-}
-
-JArray<jdouble>*
-gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jfloat>*)
-{
-  return NULL;
-}
-
-JArray<jdouble>*
-gnu::java::nio::DoubleBufferImpl::nio_cast(JArray<jdouble>*)
-{
-  return NULL;
-}
-
 void
 gnu::java::nio::DoubleBufferImpl::nio_put_Byte(gnu::java::nio::DoubleBufferImpl*, jint, jint, jbyte)
 {
 }
 
-void
-gnu::java::nio::DoubleBufferImpl::nio_put_Char(gnu::java::nio::DoubleBufferImpl*, jint, jint, jchar)
-{
-}
-
-void
-gnu::java::nio::DoubleBufferImpl::nio_put_Short(gnu::java::nio::DoubleBufferImpl*, jint, jint, jshort)
-{
-}
-
-void
-gnu::java::nio::DoubleBufferImpl::nio_put_Int(gnu::java::nio::DoubleBufferImpl*, jint, jint, jint)
-{
-}
-
-void
-gnu::java::nio::DoubleBufferImpl::nio_put_Long(gnu::java::nio::DoubleBufferImpl*, jint, jint, jlong)
-{
-}
-
-void
-gnu::java::nio::DoubleBufferImpl::nio_put_Float(gnu::java::nio::DoubleBufferImpl*, jint, jint, jfloat)
-{
-}
-
-void
-gnu::java::nio::DoubleBufferImpl::nio_put_Double(gnu::java::nio::DoubleBufferImpl*, jint, jint, jdouble)
-{
-}
-
 jbyte
 gnu::java::nio::DoubleBufferImpl::nio_get_Byte(gnu::java::nio::DoubleBufferImpl*, jint, jint)
 {
   return 0;
 }
-
-jchar
-gnu::java::nio::DoubleBufferImpl::nio_get_Char(gnu::java::nio::DoubleBufferImpl*, jint, jint)
-{
-  return ' ';
-}
-
-jshort
-gnu::java::nio::DoubleBufferImpl::nio_get_Short(gnu::java::nio::DoubleBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jint
-gnu::java::nio::DoubleBufferImpl::nio_get_Int(gnu::java::nio::DoubleBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jlong
-gnu::java::nio::DoubleBufferImpl::nio_get_Long(gnu::java::nio::DoubleBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jfloat
-gnu::java::nio::DoubleBufferImpl::nio_get_Float(gnu::java::nio::DoubleBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
-
-jdouble
-gnu::java::nio::DoubleBufferImpl::nio_get_Double(gnu::java::nio::DoubleBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
index 2462be5..3464c76 100644 (file)
@@ -11,115 +11,13 @@ gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jbyte>*)
   return NULL;
 }
 
-JArray<jfloat>*
-gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jshort>*)
-{
-  return NULL;
-}
-
-JArray<jfloat>*
-gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jint>*)
-{
-  return NULL;
-}
-
-JArray<jfloat>*
-gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jlong>*)
-{
-  return NULL;
-}
-
-JArray<jfloat>*
-gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jchar>*)
-{
-  return NULL;
-}
-
-JArray<jfloat>*
-gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jfloat>*)
-{
-  return NULL;
-}
-
-JArray<jfloat>*
-gnu::java::nio::FloatBufferImpl::nio_cast(JArray<jdouble>*)
-{
-  return NULL;
-}
-
 void
 gnu::java::nio::FloatBufferImpl::nio_put_Byte(gnu::java::nio::FloatBufferImpl*, jint, jint, jbyte)
 {
 }
 
-void
-gnu::java::nio::FloatBufferImpl::nio_put_Char(gnu::java::nio::FloatBufferImpl*, jint, jint, jchar)
-{
-}
-
-void
-gnu::java::nio::FloatBufferImpl::nio_put_Short(gnu::java::nio::FloatBufferImpl*, jint, jint, jshort)
-{
-}
-
-void
-gnu::java::nio::FloatBufferImpl::nio_put_Int(gnu::java::nio::FloatBufferImpl*, jint, jint, jint)
-{
-}
-
-void
-gnu::java::nio::FloatBufferImpl::nio_put_Long(gnu::java::nio::FloatBufferImpl*, jint, jint, jlong)
-{
-}
-
-void
-gnu::java::nio::FloatBufferImpl::nio_put_Float(gnu::java::nio::FloatBufferImpl*, jint, jint, jfloat)
-{
-}
-
-void
-gnu::java::nio::FloatBufferImpl::nio_put_Double(gnu::java::nio::FloatBufferImpl*, jint, jint, jdouble)
-{
-}
-
 jbyte
 gnu::java::nio::FloatBufferImpl::nio_get_Byte(gnu::java::nio::FloatBufferImpl*, jint, jint)
 {
   return 0;
 }
-
-jchar
-gnu::java::nio::FloatBufferImpl::nio_get_Char(gnu::java::nio::FloatBufferImpl*, jint, jint)
-{
-  return ' ';
-}
-
-jshort
-gnu::java::nio::FloatBufferImpl::nio_get_Short(gnu::java::nio::FloatBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jint
-gnu::java::nio::FloatBufferImpl::nio_get_Int(gnu::java::nio::FloatBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jlong
-gnu::java::nio::FloatBufferImpl::nio_get_Long(gnu::java::nio::FloatBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jfloat
-gnu::java::nio::FloatBufferImpl::nio_get_Float(gnu::java::nio::FloatBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
-
-jdouble
-gnu::java::nio::FloatBufferImpl::nio_get_Double(gnu::java::nio::FloatBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
index 6a14653..3990628 100644 (file)
@@ -11,115 +11,13 @@ gnu::java::nio::IntBufferImpl::nio_cast(JArray<jbyte>*)
   return NULL;
 }
 
-JArray<jint>*
-gnu::java::nio::IntBufferImpl::nio_cast(JArray<jshort>*)
-{
-  return NULL;
-}
-
-JArray<jint>*
-gnu::java::nio::IntBufferImpl::nio_cast(JArray<jint>*)
-{
-  return NULL;
-}
-
-JArray<jint>*
-gnu::java::nio::IntBufferImpl::nio_cast(JArray<jlong>*)
-{
-  return NULL;
-}
-
-JArray<jint>*
-gnu::java::nio::IntBufferImpl::nio_cast(JArray<jchar>*)
-{
-  return NULL;
-}
-
-JArray<jint>*
-gnu::java::nio::IntBufferImpl::nio_cast(JArray<jfloat>*)
-{
-  return NULL;
-}
-
-JArray<jint>*
-gnu::java::nio::IntBufferImpl::nio_cast(JArray<jdouble>*)
-{
-  return NULL;
-}
-
 void
 gnu::java::nio::IntBufferImpl::nio_put_Byte(gnu::java::nio::IntBufferImpl*, jint, jint, jbyte)
 {
 }
 
-void
-gnu::java::nio::IntBufferImpl::nio_put_Char(gnu::java::nio::IntBufferImpl*, jint, jint, jchar)
-{
-}
-
-void
-gnu::java::nio::IntBufferImpl::nio_put_Short(gnu::java::nio::IntBufferImpl*, jint, jint, jshort)
-{
-}
-
-void
-gnu::java::nio::IntBufferImpl::nio_put_Int(gnu::java::nio::IntBufferImpl*, jint, jint, jint)
-{
-}
-
-void
-gnu::java::nio::IntBufferImpl::nio_put_Long(gnu::java::nio::IntBufferImpl*, jint, jint, jlong)
-{
-}
-
-void
-gnu::java::nio::IntBufferImpl::nio_put_Float(gnu::java::nio::IntBufferImpl*, jint, jint, jfloat)
-{
-}
-
-void
-gnu::java::nio::IntBufferImpl::nio_put_Double(gnu::java::nio::IntBufferImpl*, jint, jint, jdouble)
-{
-}
-
 jbyte
 gnu::java::nio::IntBufferImpl::nio_get_Byte(gnu::java::nio::IntBufferImpl*, jint, jint)
 {
   return 0;
 }
-
-jchar
-gnu::java::nio::IntBufferImpl::nio_get_Char(gnu::java::nio::IntBufferImpl*, jint, jint)
-{
-  return ' ';
-}
-
-jshort
-gnu::java::nio::IntBufferImpl::nio_get_Short(gnu::java::nio::IntBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jint
-gnu::java::nio::IntBufferImpl::nio_get_Int(gnu::java::nio::IntBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jlong
-gnu::java::nio::IntBufferImpl::nio_get_Long(gnu::java::nio::IntBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jfloat
-gnu::java::nio::IntBufferImpl::nio_get_Float(gnu::java::nio::IntBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
-
-jdouble
-gnu::java::nio::IntBufferImpl::nio_get_Double(gnu::java::nio::IntBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
index ea21f47..81181e0 100644 (file)
@@ -11,115 +11,13 @@ gnu::java::nio::LongBufferImpl::nio_cast(JArray<jbyte>*)
   return NULL;
 }
 
-JArray<jlong>*
-gnu::java::nio::LongBufferImpl::nio_cast(JArray<jshort>*)
-{
-  return NULL;
-}
-
-JArray<jlong>*
-gnu::java::nio::LongBufferImpl::nio_cast(JArray<jint>*)
-{
-  return NULL;
-}
-
-JArray<jlong>*
-gnu::java::nio::LongBufferImpl::nio_cast(JArray<jlong>*)
-{
-  return NULL;
-}
-
-JArray<jlong>*
-gnu::java::nio::LongBufferImpl::nio_cast(JArray<jchar>*)
-{
-  return NULL;
-}
-
-JArray<jlong>*
-gnu::java::nio::LongBufferImpl::nio_cast(JArray<jfloat>*)
-{
-  return NULL;
-}
-
-JArray<jlong>*
-gnu::java::nio::LongBufferImpl::nio_cast(JArray<jdouble>*)
-{
-  return NULL;
-}
-
 void
 gnu::java::nio::LongBufferImpl::nio_put_Byte(gnu::java::nio::LongBufferImpl*, jint, jint, jbyte)
 {
 }
 
-void
-gnu::java::nio::LongBufferImpl::nio_put_Char(gnu::java::nio::LongBufferImpl*, jint, jint, jchar)
-{
-}
-
-void
-gnu::java::nio::LongBufferImpl::nio_put_Short(gnu::java::nio::LongBufferImpl*, jint, jint, jshort)
-{
-}
-
-void
-gnu::java::nio::LongBufferImpl::nio_put_Int(gnu::java::nio::LongBufferImpl*, jint, jint, jint)
-{
-}
-
-void
-gnu::java::nio::LongBufferImpl::nio_put_Long(gnu::java::nio::LongBufferImpl*, jint, jint, jlong)
-{
-}
-
-void
-gnu::java::nio::LongBufferImpl::nio_put_Float(gnu::java::nio::LongBufferImpl*, jint, jint, jfloat)
-{
-}
-
-void
-gnu::java::nio::LongBufferImpl::nio_put_Double(gnu::java::nio::LongBufferImpl*, jint, jint, jdouble)
-{
-}
-
 jbyte
 gnu::java::nio::LongBufferImpl::nio_get_Byte(gnu::java::nio::LongBufferImpl*, jint, jint)
 {
   return 0;
 }
-
-jchar
-gnu::java::nio::LongBufferImpl::nio_get_Char(gnu::java::nio::LongBufferImpl*, jint, jint)
-{
-  return ' ';
-}
-
-jshort
-gnu::java::nio::LongBufferImpl::nio_get_Short(gnu::java::nio::LongBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jint
-gnu::java::nio::LongBufferImpl::nio_get_Int(gnu::java::nio::LongBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jlong
-gnu::java::nio::LongBufferImpl::nio_get_Long(gnu::java::nio::LongBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jfloat
-gnu::java::nio::LongBufferImpl::nio_get_Float(gnu::java::nio::LongBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
-
-jdouble
-gnu::java::nio::LongBufferImpl::nio_get_Double(gnu::java::nio::LongBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
index bfcfe28..576573a 100644 (file)
@@ -11,115 +11,13 @@ gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jbyte>*)
   return NULL;
 }
 
-JArray<jshort>*
-gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jshort>*)
-{
-  return NULL;
-}
-
-JArray<jshort>*
-gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jint>*)
-{
-  return NULL;
-}
-
-JArray<jshort>*
-gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jlong>*)
-{
-  return NULL;
-}
-
-JArray<jshort>*
-gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jchar>*)
-{
-  return NULL;
-}
-
-JArray<jshort>*
-gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jfloat>*)
-{
-  return NULL;
-}
-
-JArray<jshort>*
-gnu::java::nio::ShortBufferImpl::nio_cast(JArray<jdouble>*)
-{
-  return NULL;
-}
-
 void
 gnu::java::nio::ShortBufferImpl::nio_put_Byte(gnu::java::nio::ShortBufferImpl*, jint, jint, jbyte)
 {
 }
 
-void
-gnu::java::nio::ShortBufferImpl::nio_put_Char(gnu::java::nio::ShortBufferImpl*, jint, jint, jchar)
-{
-}
-
-void
-gnu::java::nio::ShortBufferImpl::nio_put_Short(gnu::java::nio::ShortBufferImpl*, jint, jint, jshort)
-{
-}
-
-void
-gnu::java::nio::ShortBufferImpl::nio_put_Int(gnu::java::nio::ShortBufferImpl*, jint, jint, jint)
-{
-}
-
-void
-gnu::java::nio::ShortBufferImpl::nio_put_Long(gnu::java::nio::ShortBufferImpl*, jint, jint, jlong)
-{
-}
-
-void
-gnu::java::nio::ShortBufferImpl::nio_put_Float(gnu::java::nio::ShortBufferImpl*, jint, jint, jfloat)
-{
-}
-
-void
-gnu::java::nio::ShortBufferImpl::nio_put_Double(gnu::java::nio::ShortBufferImpl*, jint, jint, jdouble)
-{
-}
-
 jbyte
 gnu::java::nio::ShortBufferImpl::nio_get_Byte(gnu::java::nio::ShortBufferImpl*, jint, jint)
 {
   return 0;
 }
-
-jchar
-gnu::java::nio::ShortBufferImpl::nio_get_Char(gnu::java::nio::ShortBufferImpl*, jint, jint)
-{
-  return ' ';
-}
-
-jshort
-gnu::java::nio::ShortBufferImpl::nio_get_Short(gnu::java::nio::ShortBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jint
-gnu::java::nio::ShortBufferImpl::nio_get_Int(gnu::java::nio::ShortBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jlong
-gnu::java::nio::ShortBufferImpl::nio_get_Long(gnu::java::nio::ShortBufferImpl*, jint, jint)
-{
-  return 0;
-}
-
-jfloat
-gnu::java::nio::ShortBufferImpl::nio_get_Float(gnu::java::nio::ShortBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
-
-jdouble
-gnu::java::nio::ShortBufferImpl::nio_get_Double(gnu::java::nio::ShortBufferImpl*, jint, jint)
-{
-  return 0.0;
-}
index 380e6c6..b46b320 100644 (file)
@@ -43,7 +43,6 @@ package java.nio;
 public abstract class ByteBuffer extends Buffer implements Comparable
 {
   int offset;
-  boolean readOnly;
   byte[] backing_buffer;
   
   /**
@@ -156,7 +155,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
   public final boolean hasArray ()
   {
     return (backing_buffer != null
-             && !readOnly);
+             && !isReadOnly ());
   }
 
   /**
@@ -172,7 +171,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
     if (backing_buffer == null)
       throw new UnsupportedOperationException ();
 
-    if (readOnly)
+    if (isReadOnly ())
       throw new ReadOnlyBufferException ();
 
     return backing_buffer;
@@ -192,7 +191,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
     if (backing_buffer == null)
       throw new UnsupportedOperationException ();
 
-    if (readOnly)
+    if (isReadOnly ())
       throw new ReadOnlyBufferException ();
 
     return offset;
index 0e61302..34aedeb 100644 (file)
@@ -38,6 +38,7 @@ exception statement from your version. */
 package java.nio;
 
 public abstract class CharBuffer extends Buffer
+  implements Cloneable, CharSequence
 {
   private ByteOrder endian = ByteOrder.BIG_ENDIAN;