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 167631 - 'Insert Code.../Add Property' should check for existing property methods
Summary: 'Insert Code.../Add Property' should check for existing property methods
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2009-06-25 01:34 UTC by kitfox
Modified: 2010-01-11 02:11 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description kitfox 2009-06-25 01:34:09 UTC
The Editor window's 'Insert Code.../Add Property' at the moment does not check to see if class it is modifying extends a
class which already has a PropertyChangeSupport field.  If so, it would be useful to reuse this existing property
support instead of creating a new one in the subclass.
Comment 1 Max Sauer 2009-09-24 09:31:21 UTC
This is a good idea. Implementation is however non-trivial, targeting next release.
Comment 2 kitfox 2009-10-06 00:13:14 UTC
Another thing you may want to do is make the generated PropertyChangeSupport protected instead of private.