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 72106 - Wrong events from MDR
Summary: Wrong events from MDR
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 10:25 UTC by Martin Adamek
Modified: 2007-09-26 09:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (608 bytes, text/plain)
2006-02-01 10:25 UTC, Martin Adamek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Adamek 2006-02-01 10:25:17 UTC
I am tracking AttributeEvents coming from MDRPreChangeListener. If I add new
classes to project (interface + impl class that create EJB3 session bean) I
receive folowing AttributeEvents with "classifiers" attribute name:

### Event: AttributeEvent.EVENT_ATTRIBUTE_ADD, classifiers, null -
aaa.NewSessionBean
### Event: AttributeEvent.EVENT_ATTRIBUTE_ADD, classifiers, null -
aaa.NewSessionLocal
### Event: AttributeEvent.EVENT_ATTRIBUTE_REMOVE, classifiers,
aaa.NewSessionBean - null
### Event: AttributeEvent.EVENT_ATTRIBUTE_ADD, classifiers, null -
aaa.NewSessionBean
### Event: AttributeEvent.EVENT_ATTRIBUTE_REMOVE, classifiers,
aaa.NewSessionLocal - null
### Event: AttributeEvent.EVENT_ATTRIBUTE_ADD, classifiers, null -
aaa.NewSessionLocal

After applying patch to ExclusiveMutex proposed by thurka result is:

### Event: AttributeEvent.EVENT_ATTRIBUTE_ADD, classifiers, null -
aaa.NewSessionBean
### Event: AttributeEvent.EVENT_ATTRIBUTE_ADD, classifiers, null -
aaa.NewSessionLocal

which is what I expect in this case. Please evaluate and apply this patch.
Comment 1 Martin Adamek 2006-02-01 10:25:49 UTC
Created attachment 28691 [details]
Proposed patch
Comment 2 Jan Becicka 2006-02-01 15:49:43 UTC
Fixed in trunk. Should I apply the fix to javaee5 branch?
Comment 3 Petr Blaha 2006-02-01 15:52:24 UTC
Yes, please merge the fix in javaee5 branch too. thanks
Comment 4 Jan Becicka 2006-02-02 08:08:40 UTC
Fixed in javaee5
Checking in ExclusiveMutex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v  <--
 ExclusiveMutex.java
new revision: 1.50.6.3; previous revision: 1.50.6.2
done
Comment 5 Quality Engineering 2007-09-20 09:58:03 UTC
Reorganization of java component