Bug 228625 - Update models when Java EE artifact class is deleted
Summary: Update models when Java EE artifact class is deleted
Status: CLOSED DUPLICATE of bug 289767
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: jst.j2ee CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
: 244793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-24 04:54 EDT by Nattapong Sirilappanich CLA
Modified: 2009-09-17 13:08 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nattapong Sirilappanich CLA 2008-04-24 04:54:02 EDT
Build ID: I20080330-1350

Steps To Reproduce:
1.Create Dynamic Web Project
2.Create Servlet
3.Delete Servlet


More information:
Comment 1 Kaloyan Raev CLA 2008-04-24 07:50:11 EDT
Can you explain how do you exactly perform step 3.Delete Servlet?
Comment 2 Nattapong Sirilappanich CLA 2008-04-24 08:31:53 EDT
(In reply to comment #1)
> Can you explain how do you exactly perform step 3.Delete Servlet?

Hello Kaloyan,
Right click on servlet in Project explorer then select Delete
Comment 3 Kaloyan Raev CLA 2008-04-24 09:24:53 EDT
I see... This is the normal behavior at the moment: deleting a Java EE artifact class does not update the model (and deployment descriptor) of the corresponding project. 

We will consider your suggestion as an enhancement for the next development phase. It is too late for Ganymede for such major changes. 
Comment 4 Kaloyan Raev CLA 2008-08-06 11:38:53 EDT
We should catch if the deleted Java class is a Java EE artifact. If so, the model should be updated. 

This bug relates to bug 138173, but is not the same. 
Comment 5 kiril mitov CLA 2008-08-14 02:40:29 EDT
With the Java EE model providers implementation this will be easy to achieve. See
bug 198815.

Currently the model is processing servlet classes that have a corresponding servlet element in the web.xml file.

For comment #4 I can say that the model is updated when a servlet class is deleted. For example if the servlet class contains @EJB injections and this class is delete the @EJB references created in the model will be deleted. 

Same for Listeners and Filters.
Comment 6 Dimitar Giormov CLA 2008-10-23 11:34:23 EDT
*** Bug 244793 has been marked as a duplicate of this bug. ***
Comment 7 Kaloyan Raev CLA 2009-09-17 13:08:42 EDT
The more generic bug 289767 is open to replace the several bugs that are related to refactoring Java EE artifacts.

*** This bug has been marked as a duplicate of bug 289767 ***