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

logging APIs: Logger.getLogger(String) method throws unspecified Exception

XMLWordPrintable

    • beta
    • generic
    • generic
    • Verified



      Name: abR10010 Date: 11/08/2000




      The Java Logging APIs specification for Logger.getLogger(Logger_name)
      method says nothing about reaction upon a try to call this method
      with Logger_name = null.

      The nsk/logging/Logger/getLogger_s/getlogr_s001 test expects
      a NullPointerException to be thrown but as a matter of fact
      a IllegalArgumentException is thrown for this case.

      The IllegalArgumentException is suitable for this case
      but it seems that then the specification should say explicitly
      about it and the nsk/logging/Logger/getLogger_s/getlogr_s001 test
      should be fixed for this case to expect the IllegalArgumentException.


      ======================================================================

            ghamiltosunw Graham Hamilton (Inactive)
            bondsunw Bond Bond (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: