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 202723 - Deleted code is still in build dir
Summary: Deleted code is still in build dir
Status: RESOLVED DUPLICATE of bug 198565
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 10:00 UTC by nbuser111
Modified: 2011-10-20 08:00 UTC (History)
1 user (show)

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 nbuser111 2011-09-27 10:00:30 UTC
In Spring web project:
1)Create a package with any class
2)Build project
3)Delete package
4)Clear project
5)Build project again

The deleted package will be present in the build dir, leading to strange errors during deployment.

The reason is that deleted code is stored in cache here:
C:\Users\user\.netbeans\7.0\var\cache\index\s909\java\14\classes\com\company...

Anoter description: http://forums.netbeans.org/ptopic33816.html
Comment 1 David Konecny 2011-09-27 19:00:50 UTC
P2 to get it evaluated rather earlier than late. Feel free to downgrade to P3 after evaluation. Thx.
Comment 2 Jan Lahoda 2011-09-27 20:34:14 UTC
What exactly is the error message when the deployment fails? The error I see in at the given URL is more probably related to case-sensitive rename on case-insensitive filesystem, which has been fixed for 7.0.1 as bug #198565 - could you please try NB7.0.1 (if the same userdir is used, the cache will not fix automatically. Deleting "C:\Users\user\.netbeans\7.0\var\cache\index\s909" while the IDE does not run will force cache recreation on next startup)?

Keeping already deleted packages is already filled as bug #167164.

Thanks.
Comment 3 nbuser111 2011-09-28 08:46:38 UTC
(In reply to comment #2)
> What exactly is the error message when the deployment fails?
It depends only on deleted class (some custom exception in constructor of @Repository-annotated class for example).

> could you please try NB7.0.1 (if the same userdir is used, the cache will not
> fix automatically. Deleting "C:\Users\user\.netbeans\7.0\var\cache\index\s909"
> while the IDE does not run will force cache recreation on next startup)?
I did it and thought that it helps, but now I cant reproduce error so I am not sure.

> Keeping already deleted packages is already filled as bug #167164.
Yes, this is the same issue.

Thank you!
Comment 4 Jan Lahoda 2011-10-16 22:34:35 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > What exactly is the error message when the deployment fails?
> It depends only on deleted class (some custom exception in constructor of
> @Repository-annotated class for example).

Sorry, but this is not very specific, and I cannot determine whether this is a duplicate of bug #198565, bug #167164 or some other bug/problem.

> 
> > could you please try NB7.0.1 (if the same userdir is used, the cache will not
> > fix automatically. Deleting "C:\Users\user\.netbeans\7.0\var\cache\index\s909"
> > while the IDE does not run will force cache recreation on next startup)?
> I did it and thought that it helps, but now I cant reproduce error so I am not
> sure.
> 
> > Keeping already deleted packages is already filled as bug #167164.
> Yes, this is the same issue.]

Sorry, but I have never heard that bug #167164 would cause deployment problems, and the problem described on the linked page:
http://forums.netbeans.org/ptopic33816.html
is almost surely the same as in bug #198565.

> 
> Thank you!
Comment 5 Jan Lahoda 2011-10-20 08:00:46 UTC

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