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 134446 - auto generated setter for bound property is broken
Summary: auto generated setter for bound property is broken
Status: RESOLVED DUPLICATE of bug 131835
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 6.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-03 01:47 UTC by amoeba
Modified: 2008-05-03 14:16 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 amoeba 2008-05-03 01:47:07 UTC
When adding a new bound property through the GUI, no property change event will ever be thrown.

If you use ALT+INSERT > "add Property ... " to add a bound property X, it will generate this setter

public void setX(String X) {
        String oldX = X;
        this.X = X;
        propertySupport.firePropertyChange(PROP_X, oldX, X);
    }

Note that this always sets oldX = X, so no property change event is ever thrown.

The correct code for line 2 would be:

        String oldX = this.X;
Comment 1 Jiri Prox 2008-05-03 14:16:06 UTC
This issue is already fixed, see issues 131835. The fix will be included in patch 1

*** This issue has been marked as a duplicate of 131835 ***