OutputStreamWriter.java (close): Only flush if not closed.
* java/io/OutputStreamWriter.java (close): Only flush if not closed. From-SVN: r35309
This commit is contained in:
parent
1670d1ea21
commit
8fec62b138
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2000-07-27 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
* java/io/OutputStreamWriter.java (close): Only flush if not
|
||||||
|
closed.
|
||||||
|
|
||||||
2000-07-27 Warren Levy <warrenl@cygnus.com>
|
2000-07-27 Warren Levy <warrenl@cygnus.com>
|
||||||
|
|
||||||
* mauve-libgcj: Activated serialization tests.
|
* mauve-libgcj: Activated serialization tests.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||||
|
|
||||||
This file is part of libgcj.
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
@ -55,9 +55,9 @@ public class OutputStreamWriter extends Writer
|
||||||
{
|
{
|
||||||
synchronized (lock)
|
synchronized (lock)
|
||||||
{
|
{
|
||||||
flush();
|
|
||||||
if (out != null)
|
if (out != null)
|
||||||
{
|
{
|
||||||
|
flush();
|
||||||
out.close();
|
out.close();
|
||||||
out = null;
|
out = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue