2003-05-19 Michael Koch <konqueror@gmx.de>
* java/nio/CharBuffer.java (toString): Compile fix. From-SVN: r66953
This commit is contained in:
parent
21c9500d3e
commit
27d645f767
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue