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
2 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue