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.
NB 4.1 (200505031930) The javadoc comment of setter/getter isn't deleted when changing the mode of the property from read only to write only and vice versa. steps: 1) create read only propery 2) change its mode to write only 3) confirm the deleting of getter -> the javadoc comment for getter isn't deleted
*** Issue 69880 has been marked as a duplicate of this issue. ***
The bug seems to be in javacore. The beans module simply add the setter and remove the getter via JMI inside one transaction.
Reporoducible manually. I used Honza comment to write test, but it works correctly.
Pavle, the involved code of the beans module can be found in org.netbeans.modules.beans.PropertyPattern.setMode. You can see generateSetterMethod() and deleteGetterMethod() there. The only issue I see there is DialogDisplayer.notify inside the transaction.
Now I'm able to reproduce it by test also. Checking in cfg-unit.xml; /cvs/java/javacore/test/cfg-unit.xml,v <-- cfg-unit.xml new revision: 1.47; previous revision: 1.46 done RCS file: /cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1/testAddRemoveInOneTrans.pass,v done Checking in unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1/testAddRemoveInOneTrans.pass; /cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1/testAddRemoveInOneTrans.pass,v <-- testAddRemoveInOneTrans.pass initial revision: 1.1 done Checking in unit/src/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1.java; /cvs/java/javacore/test/unit/src/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1.java,v <-- MethodTest1.java new revision: 1.6; previous revision: 1.5 done
Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MetadataElement.java,v <-- MetadataElement.java new revision: 1.67; previous revision: 1.66 done Checking in test/cfg-unit.xml; /cvs/java/javacore/test/cfg-unit.xml,v <-- cfg-unit.xml new revision: 1.48; previous revision: 1.47 done Checking in test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1/testAddRemoveInOneTrans.pass; /cvs/java/javacore/test/unit/data/goldenfiles/org/netbeans/jmi/javamodel/codegen/MethodTest1/MethodTest1/testAddRemoveInOneTrans.pass,v <-- testAddRemoveInOneTrans.pass new revision: 1.2; previous revision: 1.1 done
verified
Reorganization of java component