OSDN Git Service

* java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jun 2006 20:38:10 +0000 (20:38 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jun 2006 20:38:10 +0000 (20:38 +0000)
commit0f25784615b45a02ab6e41b6d1354662f3799710
tree4559b8284607c63eae3517638fbdf14bec92fafd
parentad8ae01eb762963f07a25de7eb2f8240c7f4032d
* java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
Set 'out.count' earlier.
(close): Call setFinished on converter.
(flush): Always write work buffer.
* java/io/PrintStream.java (writeChars): Do 'do' loop.
(close): Call setFinished on converter.  Write a 'flush' array.
* java/lang/natString.cc (getBytes): Call setFinished on
converter.
* gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New
field.
(write): Set hasBytes.  Changed 'finished' logic.
(havePendingBytes): Rewrote.
(setFinished): New method.
* gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method.
* testsuite/libjava.lang/RH194522.java: New file.
* testsuite/libjava.lang/RH194522.out: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115039 138bc75d-0d04-0410-961f-82ee72b054a4
libjava/ChangeLog
libjava/gnu/gcj/convert/CharsetToBytesAdaptor.java
libjava/gnu/gcj/convert/UnicodeToBytes.java
libjava/java/io/OutputStreamWriter.java
libjava/java/io/PrintStream.java
libjava/java/lang/natString.cc
libjava/testsuite/libjava.lang/RH194522.java [new file with mode: 0644]
libjava/testsuite/libjava.lang/RH194522.out [new file with mode: 0644]