* java/io/OutputStreamWriter.java (flush): Create work if null.

From-SVN: r115647
This commit is contained in:
Mark Wielaard 2006-07-21 19:13:22 +00:00
parent b247341e06
commit 099cf3548a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-07-21 Mark Wielaard <mark@klomp.org>
* java/io/OutputStreamWriter.java (flush): Create work if null.
2006-07-21 Keith Seitz <keiths@redhat.com>
* java/lang/natThread.cc (_Jv_ThreadGetData): New function.
@ -33,7 +37,7 @@
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
* configure: Regenerate.
2006-07-18 Gary Benson <gbenson@redhat.com>

View File

@ -203,6 +203,8 @@ public class OutputStreamWriter extends Writer
// Always write -- if we are close()ing then we want to make
// sure the converter is flushed.
if (work == null)
work = new char[100];
writeChars(work, 0, wcount);
wcount = 0;