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
+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
*/
public BufferedWriter (Writer out, int size)
{
- super(out);
+ super(out.lock);
this.out = out;
this.buffer = new char[size];
this.count = 0;
*/
protected FilterWriter(Writer out)
{
- super(out);
+ super(out.lock);
this.out = out;
}
*/
public PrintWriter(Writer wr)
{
- super(wr);
+ super(wr.lock);
this.out = wr;
}
*/
public PrintWriter(Writer wr, boolean autoflush)
{
- super(wr);
+ super(wr.lock);
this.out = wr;
this.autoflush = autoflush;
}