OSDN Git Service

* java/io/OutputStreamWriter.java (OutputStreamWriter): Don't
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 1999 19:49:13 +0000 (19:49 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 1999 19:49:13 +0000 (19:49 +0000)
refer to `this' before calling superclass constructor.
* java/io/PrintStream.java (PrintStream): Don't refer to `this'
before calling superclass constructor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29560 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/io/OutputStreamWriter.java
libjava/java/io/PrintStream.java

index bbb6180..9c632ef 100644 (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.
index 88841d9..310c3d6 100644 (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;
   } 
 
index f13d9f3..5f1af28 100644 (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;