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 13316 - Changing mode of property from "read only" to "write only" should generate method's mody
Summary: Changing mode of property from "read only" to "write only" should generate me...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Beans (show other bugs)
Version: 3.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-06-29 14:49 UTC by Jan Becicka
Modified: 2010-09-23 08:29 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2001-06-29 14:49:36 UTC
If mode of property is changed from "read only" to "write only", only empty 
body of setter is generated. What about generating something like this:

this.newFied = newFied;
Comment 1 Petr Slegr 2001-07-12 16:59:59 UTC
This applies also for change "read-only" to "read/write" only.
IMO this is bug not enhancement.
Comment 2 Petr Slegr 2001-10-29 13:46:28 UTC
It was my mistake this is really enhancement.
Comment 3 Jan Chalupa 2001-11-27 10:55:32 UTC
Target milestone -> 3.3.1.
Comment 4 Svata Dedic 2002-05-21 17:01:52 UTC
Cleaning up
Comment 5 Marek Grummich 2002-07-19 21:05:15 UTC
Target milestone was changed from 'not determined' to TBD.
Comment 6 arittner 2005-05-03 11:56:14 UTC
Hi!

The generating on changing the r/w-state should consider the bound/constraint
property (of the BeanInfo-Class). 

regards,
  josh.
Comment 7 Petr Suchomel 2007-01-10 09:44:17 UTC
Honzo, could you look at it while you are the owner of beans module?
Comment 8 arittner 2008-09-09 11:39:48 UTC
Long time from NB 3.3 to NB 6.1...

If I remove a set*-Method, the BeanInfo-Editor shows "read-only", but the getPdescriptor returns 

properties[PROPERTY_sample] = new PropertyDescriptor ( "sample", AdmSoftware.test.Test.class, "getSample", "setSample" ); 

After changing some (other) attributes into the BeanEditor the BeanInfo-class is refreshed to the right descriptor:

properties[PROPERTY_sample] = new PropertyDescriptor ( "sample", AdmSoftware.test.Test.class, "getSample", null ); 

best regards,
  josh.