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 clazz.addInterface(), JavaConnections.TYPE_CLASSES_CHANGE is fired, but the right mask should be JavaConnections.TYPE_CLASSES_CHANGE | JavaConnections.TYPE_CLASSES_ADD. 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.
[dev-62], [1137] addInterface()/removeInterface() fires TYPE_CLASSES_CHANGE, but the right JavaConnections should be TYPE_CLASSES_ADD/TYPE_CLASSES_REMOVE
Reopening.
addInterface modifies only the interface list for a class -> changes a property of the ClassElement object, so that it reports _CHANGE event. You would need to add an inner class, or another top-level class in order to get _ADD event.
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.