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 7903 - JavaConnections: TYPE_CLESSES_CHANGE fired instead of TYPE_CLESSES_CHANGE | TYPE_CLASSES_ADD
Summary: JavaConnections: TYPE_CLESSES_CHANGE fired instead of TYPE_CLESSES_CHANGE | T...
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-13 11:44 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2000-10-13 11:44:48 UTC
[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?
Comment 1 Svata Dedic 2000-10-13 17:19:59 UTC
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.
Comment 2 Jan Becicka 2000-11-03 15:34:59 UTC
[dev-62], [1137]
addInterface()/removeInterface() fires TYPE_CLASSES_CHANGE, but the right
JavaConnections should be TYPE_CLASSES_ADD/TYPE_CLASSES_REMOVE
Comment 3 Jan Becicka 2002-01-11 16:53:38 UTC
Reopening.
Comment 4 Svata Dedic 2002-02-22 09:05:17 UTC
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.
Comment 5 Quality Engineering 2003-07-01 13:12:36 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 13:20:25 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.