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

Summary: Renaming/Deleting class with DoS enabled, doesnt delete the old class file from exploded web directory
Product: javaee Reporter: Martin Janicek <mjanicek>
Component: MavenAssignee: Martin Janicek <mjanicek>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
URL: http://maven.apache.org/plugins/maven-war-plugin/exploded-mojo.html
Issue Type: DEFECT Exception Reporter:

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