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.
This issue is critical problem on Windows - it is not possible to rename files, if they are opened by other process. The thread dump shows, that ASErrorChecker calls javac, which opens FileInputStreams, but neither javac nor gjast closes them. See attached thread dump. The bug is probably in javac, but workaround can be done also in gjast. Tom, please take a look at it.
Created attachment 17556 [details] Stack trace
Removed jar caching in gjast library.
What jar caching? This issue has nothing to do with jars. .java files are kept open, not .jar files. See attachment. There is no commit regarding this -> this issue is still valid.
Fixed javac so it always closes secondary source files, regardless of client code usage. ASErrorChecker wasn't closing files, but shouldn't have had to, since javac's ClassReader was opening them. (Jars were kept open by other code -- you just didn't catch them. :-)
Tom, please integrate this fix into release40_beta2. The code freeze date for the Beta 2 branch is Wednesday, Sep 15, 8:00pm CET. Thanks.
Honzo, as a reporter, could you verify this issue (latest continuous build is 20040914-0837)? I don't know how to make it. Thanks!
V
Reorganization of java component