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

Summary: [1.5] corrupted enum event model
Product: java Reporter: Jan Pokorsky <jpokorsky>
Component: UnsupportedAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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