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

@ -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;