aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-07-20 15:51:11 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-07-20 16:51:11 +0100
commit8246c7784b5a0aeb9d150c8fbdf2ea3c820b03bc (patch)
treed16aec0d51c718c1b230216690d7be18dfa874ba /libjava/java
parentb4ffdef7aa39560603ec5bafa6e64e728a18c223 (diff)
downloadgcc-8246c7784b5a0aeb9d150c8fbdf2ea3c820b03bc.zip
gcc-8246c7784b5a0aeb9d150c8fbdf2ea3c820b03bc.tar.gz
gcc-8246c7784b5a0aeb9d150c8fbdf2ea3c820b03bc.tar.bz2
BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when calling super-constructor.
2004-07-20 Bryce McKinlay <mckinlay@redhat.com> * java/io/BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when calling super-constructor. * java/io/FilterWriter.java (FilterWriter): Likewise. * java/io/PrintWriter.java (PrintWriter): Likewise. From-SVN: r84959
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/io/BufferedWriter.java2
-rw-r--r--libjava/java/io/FilterWriter.java2
-rw-r--r--libjava/java/io/PrintWriter.java4
3 files changed, 4 insertions, 4 deletions
diff --git a/libjava/java/io/BufferedWriter.java b/libjava/java/io/BufferedWriter.java
index 009bdcc..4beb5c5 100644
--- a/libjava/java/io/BufferedWriter.java
+++ b/libjava/java/io/BufferedWriter.java
@@ -103,7 +103,7 @@ public class BufferedWriter extends Writer
*/
public BufferedWriter (Writer out, int size)
{
- super(out);
+ super(out.lock);
this.out = out;
this.buffer = new char[size];
this.count = 0;
diff --git a/libjava/java/io/FilterWriter.java b/libjava/java/io/FilterWriter.java
index 87bae4f..a717092 100644
--- a/libjava/java/io/FilterWriter.java
+++ b/libjava/java/io/FilterWriter.java
@@ -72,7 +72,7 @@ public abstract class FilterWriter extends Writer
*/
protected FilterWriter(Writer out)
{
- super(out);
+ super(out.lock);
this.out = out;
}
diff --git a/libjava/java/io/PrintWriter.java b/libjava/java/io/PrintWriter.java
index 9358dda..376b3c4 100644
--- a/libjava/java/io/PrintWriter.java
+++ b/libjava/java/io/PrintWriter.java
@@ -86,7 +86,7 @@ public class PrintWriter extends Writer
*/
public PrintWriter(Writer wr)
{
- super(wr);
+ super(wr.lock);
this.out = wr;
}
@@ -102,7 +102,7 @@ public class PrintWriter extends Writer
*/
public PrintWriter(Writer wr, boolean autoflush)
{
- super(wr);
+ super(wr.lock);
this.out = wr;
this.autoflush = autoflush;
}