This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 69496 - Bean Patterns -> Add -> Property
Summary: Bean Patterns -> Add -> Property
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-28 21:40 UTC by johnstosh
Modified: 2009-11-02 10:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description johnstosh 2005-11-28 21:40:41 UTC
The tool for adding new bean properties is excellent.  Especially the support 
for adding bound properties with property change support.  There's one little 
problem, however.

The tool doesn't seem to examine if the class has inherited a 
firePropertyChange() method.  The tool blindly adds a propertyChangeSupport 
object and associated addPropertyChangeListener() and 
removePropertyChangeListener() methods.  Well not entirely blindly, it doesn't 
add them if they're already overridden.

Overriding firePropertyChange() this way creates two PropertyChangeSupport 
objects.

Having two PropertyChangeSupport objects is a problem because the inherited 
properties fire on the inherited firePropertyChange() and its private 
propertyChangeSupport object while the new properties fire on the overridden 
firePropertyChange() method and its private propertyChangeSupport object.

Looking at the gui, I would have supposed that checking the "Bound" checkbox 
without the "Generate Property Change Support" checkbox would cause the tool 
to use the inherited firePropertyChange() rather than a private one.  That 
does not occur, however.  The "Bound" checkbox doesn't appear to do anything.
Comment 1 David Strupl 2009-03-31 15:41:56 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 2 Quality Engineering 2009-11-02 10:58:56 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX