diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-09-21 19:49:13 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-09-21 19:49:13 +0000 |
commit | 118a6ea13475356ce68262a1218a9eeceb5b57ff (patch) | |
tree | 2bfeb18abfecf5636927b5e7ed31905f0dc6d7b8 /libjava/java/io/PrintStream.java | |
parent | 32facac80826f8b0b5e1906a5d698f27051050cf (diff) | |
download | gcc-118a6ea13475356ce68262a1218a9eeceb5b57ff.zip gcc-118a6ea13475356ce68262a1218a9eeceb5b57ff.tar.gz gcc-118a6ea13475356ce68262a1218a9eeceb5b57ff.tar.bz2 |
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
Diffstat (limited to 'libjava/java/io/PrintStream.java')
-rw-r--r-- | libjava/java/io/PrintStream.java | 8 |
1 files changed, 5 insertions, 3 deletions
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; |