Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6225071
Votes 0
Synopsis DOC: VetoableChangeSupport.getVetoableChangeListeners: unspecified when no listenears are registered
Category java:classes_beans
Reported Against
Release Fixed 7(b22)
State 11-Closed, Verified, bug
Priority: 3-Medium
Related Bugs 6592570
Submit Date 03-FEB-2005
Description
The behavior of both getVetoableChangeListeners(String propertyName) and getVetoableChangeListeners() is unsrecified when no listeners are registered for this  customer .
Similar methods in java.awt classes (Container.getContainerListeners and others) mentions something like "Returns: ... an empty array if no container listeners are currently registered". Similar wording should be added to these two methods specifications.
  xxxxx@xxxxx   2005-2-03 14:33:40 GMT
Work Around
N/A
Evaluation
getVetoableChangeListeners(String propertyName) has already been clearly documented (as part of 4985020). getVetoableChangeListeners() should say something about what it will return if there are no listeners (empty array).
  xxxxx@xxxxx   2005-2-03 16:46:42 GMT

We should add similar wording to getVetoableChangeListeners().
  xxxxx@xxxxx   2005-04-20 14:25:52 GMT
Contribution forum : https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?forumID=1463&messageID=15001
 (Three related bug-IDs: 4994635, 5026703, 6225071)
Posted Date : 2006-08-24 20:29:46.0

Classes PropertyChangeSupport and VetoableChangeSupport are similar.
So the PropertyChangeSupport.getPropertyChangeListeners() method
and the VetoableChangeSupport.getVetoableChangeListeners() method
should have similar documentation.
Posted Date : 2007-08-13 13:24:40.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang