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

java.util.logging.LogManager.addPropertyChangeListener needs clarification

XMLWordPrintable

    • b32
    • sparc
    • solaris_2.6
    • Verified



      Name: sdR10048 Date: 10/07/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b22"
      JCK : 1.5

      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      public void addPropertyChangeListener(PropertyChangeListener l)
                                     throws SecurityException
      Add an event listener to be invoked when the logging properties are re-read.

      Parameters:
      l - event listener
      Throws:
      SecurityException - if a security manager exists and if the caller does not have LoggingPermission("control").
      NullPointerException - if the PropertyChangeListener is null.

      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      The designated method's javadoc says nothing about the expected
      behaviour if we add the same listener twice.

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

            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: