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 236836 - Renaming/Deleting class with DoS enabled, doesnt delete the old class file from exploded web directory
Summary: Renaming/Deleting class with DoS enabled, doesnt delete the old class file fr...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Janicek
URL: http://maven.apache.org/plugins/maven...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 13:46 UTC by Martin Janicek
Modified: 2016-07-07 08:54 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 Martin Janicek 2013-10-07 13:46:41 UTC
See subj.

1. Create Maven Web application, GF4, Java EE7
2. Deploy/Run the application
3. Create new Java class in src directory, package abc, name NewClass.java
4. Rename the class to Whatever.java

--> Expected: Directory target/mavenproject1-1.0-SNAPSHOT/WEB-INF/classes/abc should contain only class file Whatever.class corresponding to the only existing Java file
--> Actual: The directory contains both Whatever.class and also the old class file (NewClass.class)
Comment 1 Martin Janicek 2013-10-07 14:55:42 UTC
Deploy on save in exploded directory is currently working because of presence of J2eeModuleProvider.DeployOnSaveClassInterceptor and it's implementation located in WebModuleProviderImpl. But this interceptor doesn't seem to be capable of removing renamed/deleted files. Need to investigate a little bit further..
Comment 2 Martin Balin 2016-07-07 08:54:44 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss