Commit 27d645f7 by Michael Koch Committed by Michael Koch

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

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

From-SVN: r66953
parent 21c9500d
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.
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment