This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.nio


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I had to commit the attached little compile time fix. :(


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+yIz+WSOgCCdjSDsRAsSxAJ49rgBpDH+2j0It9wjd8PsAQU3CXQCfeCss
nAXgTIecGi/dGIA1U3Lqm9U=
=ikU/
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1897
diff -u -b -B -r1.1897 ChangeLog
--- ChangeLog	19 May 2003 06:59:21 -0000	1.1897
+++ ChangeLog	19 May 2003 07:48:10 -0000
@@ -1,5 +1,10 @@
 2003-05-19  Michael Koch  <konqueror@gmx.de>
 
+	* java/nio/CharBuffer.java
+	(toString): Compile fix.
+
+2003-05-19  Michael Koch  <konqueror@gmx.de>
+
 	* gnu/java/nio/ByteBufferImpl.java
 	(putLong): Fixed conversion to bytes.
 	(putDouble): Fixed conversion to bytes.
Index: java/nio/CharBuffer.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/nio/CharBuffer.java,v
retrieving revision 1.12
diff -u -b -B -r1.12 CharBuffer.java
--- java/nio/CharBuffer.java	19 May 2003 06:59:23 -0000	1.12
+++ java/nio/CharBuffer.java	19 May 2003 07:48:10 -0000
@@ -426,7 +426,9 @@
       return new String (array (), position (), length ());
 
     char[] buf = new char [length ()];
-    get (position (), buf);
+    int pos = position ();
+    get (buf, 0, buf.length);
+    position (pos);
     return new String (buf);
   }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]