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 54119 - "AssertionError: Did not find resource '.../.nbattrs'." from VcsFileSystem.deleteFile
Summary: "AssertionError: Did not find resource '.../.nbattrs'." from VcsFileSystem.de...
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 03:27 UTC by Jesse Glick
Modified: 2005-01-31 16:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (7.76 KB, text/plain)
2005-01-28 03:28 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-01-28 03:27:42 UTC
050125 custom, JDK 1.6.0. I have nb_all mounted as
a CVS dir. In the Favorites tab, I select
nbbuild/testuserdir (an ignorable temp directory)
and press Delete. After a moment, this exception
is thrown. The dir is not fully deleted.
Comment 1 Jesse Glick 2005-01-28 03:28:09 UTC
Created attachment 20022 [details]
Stack trace
Comment 2 _ pkuzel 2005-01-28 09:44:32 UTC
The assert is not correct. Should be somethingLike_Masked(name) || 
fo != null. 
 
It's hard to tune asserts having both file masking and file adding 
(virtuals). 
 
 
Comment 3 _ pkuzel 2005-01-31 16:10:09 UTC
So the assert was correct. 

findResource was called too late (after File.delete()). This approach
fails for not yet constructed fileobjects.

FIXED in VcsFileSystem.java new revision: 1.314