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

java.util.logging.MemoryHandler ctor: NPE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.4.2
    • core-libs
    • sparc
    • solaris_7

    Description



      Name: sdR10048 Date: 11/11/2002


      JDK version:
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b05)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b05, mixed mode)

      Method public MemoryHandler() always throws NPE.

      Doc says:
      ---------
      public MemoryHandler()

      Create a MemoryHandler and configure it based on LogManager
      configuration properties.

      Small demo:
      -----------
      import java.util.logging.*;

      class T {
          public static void main(String args[]) {
              MemoryHandler handler = new MemoryHandler();
          }
      }

      Output:
      -------
      MemoryHandler can't load handler "null"
      java.lang.NullPointerException
      Exception in thread "main" java.lang.RuntimeException: Can't load null
              at java.util.logging.MemoryHandler.<init>(MemoryHandler.java:100)
              at T.main(T.java:5)


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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: