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.
To reproduce (on win2k): - mount a webcontext root - struts libs are mounted automatically (code completion thread starts parsing in background) - unmount the webcontext - struts libs are unmounted for you - Try to delete struts libs in windows explorer - explorer complains about sharing violations CounterExample: - disable tools->options->editor->editor settings->java editor->expert->update code completion database automatically Situation is now unreproducable.
If this is really true, then this is a serious issue that we would like to get fixed - upgrading to P2. Editor team, can you please check whether this also happens with regular Java jars (not in the context of web applications)? See also issue 20384: if this issue is not fixed, then we can not fix 20384.
Yes, it is reproducible also with regular jars. I have reproduced it on NB 3.5. Hovever, I cannot reproduce this issue in the current dev duilds (tested in NB dev build from 10.nov). That's why I am resolving the bug as WORKSFORME. Please verify. If you can reproduce it also in current dev build, please reopen this issue. Thanks.
Ok, I agree that this may be working well now, but I would still like to know why and what happened exactly. Could it have something to do with the JarFileSystem? Radek, can you comment?
This longterm problem with JarFileSystem was fixed after release Netbeans 3.5. Now entries of archive are cached in memory or copied into temporary disc location (according to size of content) and archiv is closed ASAP. This helped to close almost all issues assigned to JarFileSystem including this one. On the other hand it had negative impact on performance, because closing and reopening has its own performance penalty (especially if you iterate content of JarFile and parse content of entries).
Will this further affect the already very slow jsp compilation process (jasper spending forever looking for tag beaninfo classes in all mounted filesystems)?
There is no problem if you just iterate entries and get FileObject children recursively. But if you called getInputStream on every child then you would be probably affected (naturally for hige jars like rt.jar it would be significant).
JSP compilation will go through a major rewrite, so it will be speeded up.
Verified in dev build 200311191900. It is not reproducible with JAR file in dev build.