United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4933674 java.util.logging.LogManager.addPropertyChangeListener needs clarification
JDK-4933674 : java.util.logging.LogManager.addPropertyChangeListener needs clarification

Details
Type:
Bug
Submit Date:
2003-10-07
Status:
Closed
Updated Date:
2009-04-07
Project Name:
JDK
Resolved Date:
2003-12-15
Component:
docs
OS:
solaris_2.6
Sub-Component:
guides
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
5.0 (b32)

Related Reports

Sub Tasks

Description

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.

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

                                    

Comments
EVALUATION

The designated method's javadoc says nothing about the expected 
behaviour if we add the same listener twice.
###@###.### 2003-10-09

I checked with engineering on this. The issue is: if the same logger is added twice, and one is removed, will it remove both instances? Will fix with the following doc comment:

"Adding multiple instances of the same event Listener results in multiple entries in the property event listener table".

###@###.### 2003-11-24
                                     
2003-11-24
PUBLIC COMMENTS

Putback in build 32
###@###.### 2003-12-14
                                     
2003-12-14
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
generic
tiger-beta

FIXED IN:
tiger-beta

INTEGRATED IN:
tiger-b32
tiger-beta

VERIFIED IN:
tiger-b40


                                     
2004-06-14



Hardware and Software, Engineered to Work Together