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.
For example: MethodElement me = clazz.getMethod(... me.setModifiers(... In this case two PropertyChangeEvents are fired. The first with "modifiers" as propertyName. The second one with "body". The same problem is with calling other setters (setName(), setReturn()...) and even with other Elements (FieldElement...)
[1098]
a) FieldElements should *not* fire PROP_BODY property change event since they have PROP_INITIALIZER for the same thing. The event firing will be disabled for them b) constructor, initializer and method elements keep hash of the body for fast change detection; the old and new hashes weren't compared well.
[1137], [dev-62] Seems to be fixed, except this case: If InitializerElement.setStatic() is called, "static" and "body" PropertyChangeEvents are fired, but only "static" should.
blah
Should be fixed in current release-3.2/dev builds
[NB3.2.38] Verified
Target milestone -> 3.2
Resolved for 3.4.x or earlier, no new info since then -> closing.