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 134042 - Wrong generating of new property with bound
Summary: Wrong generating of new property with bound
Status: RESOLVED DUPLICATE of bug 131835
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P1 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 19:39 UTC by grizzlydan
Modified: 2008-04-29 11:01 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 grizzlydan 2008-04-27 19:39:13 UTC
When I add new property thrue Alt+Insert in editor and select new property, check set and get methods for generate and 
also bound of the property, it will generate wrong code of the set method like this:


    protected String string;

    public static final String PROP_STRING = "string";

    /**
     * Get the value of string
     *
     * @return the value of string
     */
    public String getString() {
        return string;
    }

    /**
     * Set the value of string
     *
     * @param string new value of string
     */
    public void setString(String string) {
        String oldString = string;  !!!!!!!!!!!!!! THIS IS WRONG, THE GOOD CODE SHOULD BE this.string
        this.string = string;
        propertyChangeSupport.firePropertyChange(PROP_STRING, oldString, string);
    }
Comment 1 Jiri Prox 2008-04-29 11:01:14 UTC
This is already fixed and fix will be included in patch 1. Thanks for your report anyway

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