OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before calling superclass constructor.

* java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
	refer to `this' before calling superclass constructor.
	* java/io/PrintStream.java (PrintStream): Don't refer to `this'
	before calling superclass constructor.

From-SVN: r29560
This commit is contained in:
Tom Tromey 1999-09-21 19:49:13 +00:00 committed by Tom Tromey
parent 32facac808
commit 118a6ea134
3 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,10 @@
1999-09-21 Tom Tromey <tromey@cygnus.com>
* java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
refer to `this' before calling superclass constructor.
* java/io/PrintStream.java (PrintStream): Don't refer to `this'
before calling superclass constructor.
1999-09-20 Tom Tromey <tromey@cygnus.com>
* configure: Rebuilt.

View File

@ -32,9 +32,11 @@ public class OutputStreamWriter extends Writer
private OutputStreamWriter(OutputStream out, UnicodeToBytes encoder)
{
super((this.out = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250))));
BufferedOutputStream buf = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250));
super (buf);
this.out = buf;
this.converter = encoder;
}

View File

@ -238,9 +238,11 @@ public class PrintStream extends FilterOutputStream
public PrintStream (OutputStream out, boolean af)
{
super ((this.out = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250))));
BufferedOutputStream buf = (out instanceof BufferedOutputStream
? (BufferedOutputStream) out
: new BufferedOutputStream(out, 250));
super (buf);
this.out = buf;
converter = UnicodeToBytes.getDefaultEncoder();
error = false;
auto_flush = af;