+2004-05-16 Mark Wielaard <mark@klomp.org>
+
+ * java/io/Writer.java (Writer(Object)): Check for null lock object.
+
+
2004-05-15 Mark Wielaard <mark@klomp.org>
* doc/cni.sgml: Removed, merged into gcj.texi.
/* Writer.java -- Base class for character output streams
- Copyright (C) 1998, 1999, 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2001, 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
* on the specified <code>Object</code>.
*
* @param lock The <code>Object</code> to use for synchronizing critical
- * sections
+ * sections. Must be not be null.
*/
protected Writer(Object lock)
{
+ if (lock == null)
+ throw new NullPointerException();
+
this.lock = lock;
}