-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
beta3
-
sparc
-
solaris_7
-
Verified
Name: sdR10048 Date: 08/09/2001
Method
public void java.util.logging.Logger.removeHandler(Handler handler)
throws SecurityException
does not throw NullPointerException if input param 'handler' == null.
Here is piece of javadoc (JDK1.4.0beta-b73):
-----
public void removeHandler(Handler handler)
throws SecurityException
Remove a log Handler.
Returns silently if the given Handler is not found.
Parameters:
handler - a logging Handler
Throws:
SecurityException - if a security manager exists and if the
caller does not have LoggingPermission("control").
-----
java.util.logging package level spec:
Null Pointers
In general, unless otherwise noted in the javadoc, methods and
contructors will throw NullPointerException if passed a null
argument. The one broad exception to this rule is that the logging
convenience methods in the Logger class (the log, logp, log, severe,
warning, config, fine, finer, and finest methods) will accept null
values for all arguments except for the initial Level argument (if
any).
-----
Note: The twin-method java.util.logging.Logger.addHandler(Handler)
does throw NPE.
======================================================================