From: Tom Tromey Date: Tue, 21 Sep 1999 19:49:13 +0000 (+0000) Subject: OutputStreamWriter.java (OutputStreamWriter): Don't refer to `this' before calling... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=118a6ea13475356ce68262a1218a9eeceb5b57ff;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index bbb6180..9c632ef 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +1999-09-21 Tom Tromey + + * 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 * configure: Rebuilt. diff --git a/libjava/java/io/OutputStreamWriter.java b/libjava/java/io/OutputStreamWriter.java index 88841d9..310c3d6 100644 --- a/libjava/java/io/OutputStreamWriter.java +++ b/libjava/java/io/OutputStreamWriter.java @@ -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; } diff --git a/libjava/java/io/PrintStream.java b/libjava/java/io/PrintStream.java index f13d9f3..5f1af28 100644 --- a/libjava/java/io/PrintStream.java +++ b/libjava/java/io/PrintStream.java @@ -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;