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 132284 - Bad generation of code for bound properties
Summary: Bad generation of code for bound properties
Status: RESOLVED DUPLICATE of bug 131835
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-08 08:15 UTC by joaoferr
Modified: 2008-04-08 08:30 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 joaoferr 2008-04-08 08:15:16 UTC
When adding a bound bean property (ALT+ENTER -> Add Property), the code generated for the set<Property> is wrong.
Exemple of code generated:

    public void setString(String string) {
        String oldString = string;
        this.string = string;
        propertyChangeSupport.firePropertyChange(PROP_STRING, oldString, string);
    }

The first line of method should be:

    String oldString = this.string;

(Netbeans 6.1 200804060002)
Comment 1 Jiri Prox 2008-04-08 08:30:40 UTC
Already reported, thanks

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