Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4657573

java.util.logging.Level.parse: what is known level

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • docs
    • sparc
    • solaris_7



      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.
      ======================================================================

            shommel Scott Hommel (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: