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 44577 - [1.5] corrupted enum event model
Summary: [1.5] corrupted enum event model
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-08 18:05 UTC by Jan Pokorsky
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 Pokorsky 2004-06-08 18:05:13 UTC
If I make changes of enums in editor MDR fires
wrong events. 

1. modifiers changed (public -> default)
  - I get attribute change event for modifiers,
interfaceNames, constants
2. interfaces changed (added eg 'implements
java.io.Serializable')
  - I get ACE for name, constants; NO interfaceNames!
3. constant renamed
  - I get ACE for name, interfaceNames, constants
Comment 1 Tomas Hurka 2004-06-22 08:41:35 UTC
Moved to new subcomponent java/javacore.
Comment 2 Martin Matula 2004-07-18 23:59:58 UTC
Regarding the unnecessary attribute events - seems that the matching
was broken. I am not sure if this is still the case (can you try it out)?
In case of changing implements, you should listen to AssociationEvents
reporting changes of Implements association.
Reassigning to Tomas who can fix the matching if it is broken -
otherwise we will close this.
Comment 3 Tomas Hurka 2004-07-26 10:42:43 UTC
Yes. matching was broken. Fixed in trunk.

 User: thurka  
 Date: 04/07/14 08:27:35
 Modified:    javacore/src/org/netbeans/modules/javacore/parser/NameRef.java
 Log: equals() fixed - Utilities.compareObjects() should be used instead of equals()
Comment 4 Quality Engineering 2007-09-20 09:59:04 UTC
Reorganization of java component