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 26416 - Bean pattern always generates setter
Summary: Bean pattern always generates setter
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-09 14:12 UTC by Mike Dewhirst
Modified: 2002-08-13 18:08 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 Mike Dewhirst 2002-08-09 14:12:00 UTC
Even if bean "generate set statement" is not
ticked, a setter method is generated.
Comment 1 Jan Becicka 2002-08-09 14:27:37 UTC
Similar problem is with "Pass Event as Parameter" checkbox. See issue
25957.


Comment 2 Tomas Hurka 2002-08-13 18:08:34 UTC
This is correct. "generate set statement" generates set statement in
body of the setter. Something like:
    public void setAa(int aa) {
        this.aa = aa;
     /* ^^^^^^^^^^^^^ this line is added by "generate set statement" option.
    }

If you want to generate read-only property, use mode property and set 
it to READ ONLY.
Closing as invalid.