Commit 099cf354 by Mark Wielaard

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

From-SVN: r115647
parent b247341e
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> 2006-07-21 Keith Seitz <keiths@redhat.com>
* java/lang/natThread.cc (_Jv_ThreadGetData): New function. * java/lang/natThread.cc (_Jv_ThreadGetData): New function.
...@@ -33,7 +37,7 @@ ...@@ -33,7 +37,7 @@
2006-07-18 Paolo Bonzini <bonzini@gnu.org> 2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate. * configure: Regenerate.
2006-07-18 Gary Benson <gbenson@redhat.com> 2006-07-18 Gary Benson <gbenson@redhat.com>
......
...@@ -203,6 +203,8 @@ public class OutputStreamWriter extends Writer ...@@ -203,6 +203,8 @@ public class OutputStreamWriter extends Writer
// Always write -- if we are close()ing then we want to make // Always write -- if we are close()ing then we want to make
// sure the converter is flushed. // sure the converter is flushed.
if (work == null)
work = new char[100];
writeChars(work, 0, wcount); writeChars(work, 0, wcount);
wcount = 0; wcount = 0;
......
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