Commit 8246c778 by Bryce McKinlay Committed by Bryce McKinlay

BufferedWriter.java (BufferedWriter): Use existing lock of chained Writer when…

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
parent b4ffdef7
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.
2004-07-19 Bryce McKinlay <mckinlay@redhat.com>
* prims.cc (process_gcj_properties): Don't increment i within LHS
......
......@@ -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;
......
......@@ -72,7 +72,7 @@ public abstract class FilterWriter extends Writer
*/
protected FilterWriter(Writer out)
{
super(out);
super(out.lock);
this.out = out;
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment