2003-05-19 Michael Koch <konqueror@gmx.de>

* java/nio/CharBuffer.java
	(toString): Compile fix.

From-SVN: r66953
This commit is contained in:
Michael Koch 2003-05-19 07:48:35 +00:00 committed by Michael Koch
parent 21c9500d3e
commit 27d645f767
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -426,7 +426,9 @@ public abstract class CharBuffer extends Buffer
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);
}