Name: sdR10048 Date: 03/25/2002
JDK1.4 doc for java.util.logging.Level.parse(String)
says:
public static Level parse(String name)
throws IllegalArgumentException
Parse a level name string into a Level.
The argument string may consist of either a level name or an integer value.
For example:
"SEVERE"
"1000"
Returns:
parsed value
Throws:
NullPointerException - if the name is null
IllegalArgumentException - if the value is neither one of the
known names nor an integer.
^^^^^^^^^^^
As it turned out the level name becomes "known" if some level with
such name has been constructed before.
I believe that should be noted explicitly.
======================================================================
- duplicates
-
JDK-4970409 java.util.logging.Level.parse does not throw IAE for "unknown" names
-
- Closed
-