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.
[1120] after invoking initializerElement.setBody() or initializerElement.setStatic(), JavaConnections.TYPE_CLASSES_CHANGE is fired, but the right mask should be JavaConnections.TYPE_CLASSES_CHANGE | JavaConnections.TYPE_INITIALIZERS_CHANGE. Isn't it?
TYPE_CLASSES_CHANGE should be fired _only_ if class' own properties has changed. Changes in sub-elements (add/remove/change) do not affect the class properties, so CLASSES_CHANGE will not be fired if changing/adding/removing field/method/initializer. As for setBody() reports - body contents changes are _not_ fired as Java Connection events.
*** This bug has been marked as a duplicate of 7902 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.