bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22739] new java.io.FilterWriter(null) should throw NullPo


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22739] new java.io.FilterWriter(null) should throw NullPointerException
Date: 16 Oct 2005 01:26:55 -0000

The JDK 1.4.2 API spec states that the contructor
throws NullPointerException if the parameter is null.  
Classpath's javadoc doesn't say this, and it doesn't 
throw the exception either.

I've modified the following Mauve testcase to cover this:

  gnu/testlet/java/io/FilterWriter/write.java


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-05-16 
09:27 -------
This seems to be because creating a Writer with a null lock object should throw
a NullPointerException (since the FilterWriter out object will be used as
lock). I added an extra mauve test for this and the follow fix in CVS.

2004-05-14  Mark Wielaard  <address@hidden>

        * java/io/Writer.java (Writer(Object)): Check for null lock object.

This fixes both tests.

Thanks,

Mark


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22739





reply via email to

[Prev in Thread] Current Thread [Next in Thread]