This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
FYI: Patch: java.nio fixes
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Fri, 27 Jun 2003 15:39:22 +0200
- Subject: FYI: Patch: java.nio fixes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
I commited the attached obvious patch to trunk to fix some little
things in java.nio.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+/EkKWSOgCCdjSDsRAuKMAJ0SLt1P6B6So6pi1gjGjVTWovfLPgCggAnM
z5C2Sav/hyLxBzv4fq00760=
=xX5y
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1999
diff -u -b -B -r1.1999 ChangeLog
--- ChangeLog 27 Jun 2003 13:06:49 -0000 1.1999
+++ ChangeLog 27 Jun 2003 13:15:01 -0000
@@ -1,5 +1,28 @@
2003-06-27 Michael Koch <konqueror@gmx.de>
+ * java/nio/ByteBufferImpl.java
+ (ByteBufferImpl): Made it a package-private class
+ * java/nio/CharBufferImpl.java
+ (CharBufferImpl): Made it a package-private class
+ * java/nio/DirectByteBufferImpl.java
+ (DirectByteBufferImpl): Made it a package-private class
+ * java/nio/DoubleBufferImpl.java
+ (DoubleBufferImpl): Made it a package-private class
+ * java/nio/FloatBufferImpl.java
+ (FloatBufferImpl): Made it a package-private class
+ * java/nio/IntBufferImpl.java
+ (IntBufferImpl): Made it a package-private class
+ * java/nio/LongBufferImpl.java
+ (LongBufferImpl): Made it a package-private class
+ * java/nio/ShortBufferImpl.java
+ (ShortBufferImpl): Made it a package-private class
+ * java/nio/channels/FileChannel.java
+ (write): Made final.
+ * java/nio/channels/ServerSocketChannel.java
+ (ServerSocketChanne): Made protected.
+
+2003-06-27 Michael Koch <konqueror@gmx.de>
+
* javax/naming/CompositeName.java
(serialVersionUID): New member variable.
* javax/naming/CompoundName.java
Index: java/nio/ByteBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/ByteBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 ByteBufferImpl.java
--- java/nio/ByteBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/ByteBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class ByteBufferImpl extends ByteBuffer
+final class ByteBufferImpl extends ByteBuffer
{
private boolean readOnly;
Index: java/nio/CharBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/CharBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 CharBufferImpl.java
--- java/nio/CharBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/CharBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class CharBufferImpl extends CharBuffer
+final class CharBufferImpl extends CharBuffer
{
private boolean readOnly;
Index: java/nio/DirectByteBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/DirectByteBufferImpl.java,v
retrieving revision 1.2
diff -u -b -B -r1.2 DirectByteBufferImpl.java
--- java/nio/DirectByteBufferImpl.java 17 Jun 2003 19:09:56 -0000 1.2
+++ java/nio/DirectByteBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -40,7 +40,7 @@
import gnu.gcj.RawData;
-public class DirectByteBufferImpl extends ByteBuffer
+class DirectByteBufferImpl extends ByteBuffer
{
RawData address;
private int offset;
Index: java/nio/DoubleBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/DoubleBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 DoubleBufferImpl.java
--- java/nio/DoubleBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/DoubleBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class DoubleBufferImpl extends DoubleBuffer
+final class DoubleBufferImpl extends DoubleBuffer
{
private boolean readOnly;
Index: java/nio/FloatBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/FloatBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 FloatBufferImpl.java
--- java/nio/FloatBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/FloatBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class FloatBufferImpl extends FloatBuffer
+final class FloatBufferImpl extends FloatBuffer
{
private boolean readOnly;
Index: java/nio/IntBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/IntBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 IntBufferImpl.java
--- java/nio/IntBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/IntBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class IntBufferImpl extends IntBuffer
+final class IntBufferImpl extends IntBuffer
{
private boolean readOnly;
Index: java/nio/LongBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/LongBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 LongBufferImpl.java
--- java/nio/LongBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/LongBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class LongBufferImpl extends LongBuffer
+final class LongBufferImpl extends LongBuffer
{
private boolean readOnly;
Index: java/nio/ShortBufferImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/ShortBufferImpl.java,v
retrieving revision 1.1
diff -u -b -B -r1.1 ShortBufferImpl.java
--- java/nio/ShortBufferImpl.java 20 May 2003 08:58:31 -0000 1.1
+++ java/nio/ShortBufferImpl.java 27 Jun 2003 13:15:01 -0000
@@ -41,7 +41,7 @@
/**
* This is a Heap memory implementation
*/
-public final class ShortBufferImpl extends ShortBuffer
+final class ShortBufferImpl extends ShortBuffer
{
private boolean readOnly;
Index: java/nio/channels/FileChannel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/channels/FileChannel.java,v
retrieving revision 1.3
diff -u -b -B -r1.3 FileChannel.java
--- java/nio/channels/FileChannel.java 13 May 2003 10:25:00 -0000 1.3
+++ java/nio/channels/FileChannel.java 27 Jun 2003 13:15:01 -0000
@@ -112,7 +112,7 @@
*
* @exception IOException If an I/O error occurs.
*/
- public long write (ByteBuffer[] srcs) throws IOException
+ public final long write (ByteBuffer[] srcs) throws IOException
{
long result = 0;
Index: java/nio/channels/ServerSocketChannel.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/channels/ServerSocketChannel.java,v
retrieving revision 1.7
diff -u -b -B -r1.7 ServerSocketChannel.java
--- java/nio/channels/ServerSocketChannel.java 11 Jun 2003 10:38:58 -0000 1.7
+++ java/nio/channels/ServerSocketChannel.java 27 Jun 2003 13:15:01 -0000
@@ -53,7 +53,7 @@
/**
* Initializes this channel.
*/
- public ServerSocketChannel (SelectorProvider provider)
+ protected ServerSocketChannel (SelectorProvider provider)
{
super (provider);
}