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 57436 - IAE in refactoring tests - listener not removed
Summary: IAE in refactoring tests - listener not removed
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 16:10 UTC by Martin Grebac
Modified: 2007-07-10 14:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file (20.88 KB, text/plain)
2005-04-04 16:12 UTC, Martin Grebac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Grebac 2005-04-04 16:10:26 UTC
I get attached exception in refactoring tests. Everything works fine, the
exception seems harmless, but from quick guess it seems that listeners on
servlet elements are not removed correctly, or the code does not check all
possible cases.

What is done in refactoring: 

1. a servlet bean is removed from one dd
2. a new name is set on this element (this is where exception appears)
3. the element is added to another dd.
Comment 1 Martin Grebac 2005-04-04 16:12:30 UTC
Created attachment 21358 [details]
log file
Comment 2 Sherold Dev 2005-04-06 13:09:05 UTC
It is reproducible.

1. Have two webprojects A and B.
2. Create a servlet in project A.
3. Use refactoring function to move the servlet from A to B.
4. Exception will occur.
Comment 3 Sherold Dev 2005-04-06 13:13:18 UTC
Setting TM to 4.2.
Comment 4 Sherold Dev 2005-10-24 16:35:58 UTC
This seems to be already fixed.
Comment 5 Martin Grebac 2007-07-10 14:10:57 UTC
v