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 48858

Summary: [gjast] ErrorChecker (or javac) does not close FileInputStreams
Product: java Reporter: Jan Becicka <jbecicka>
Component: UnsupportedAssignee: _ tball <tball>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 46415    
Attachments: Stack trace

Description Jan Becicka 2004-09-10 16:14:32 UTC
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.
Comment 1 Jan Becicka 2004-09-10 16:15:34 UTC
Created attachment 17556 [details]
Stack trace
Comment 2 _ tball 2004-09-10 16:44:37 UTC
Removed jar caching in gjast library.
Comment 3 Jan Becicka 2004-09-11 17:41:36 UTC
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.
Comment 4 _ tball 2004-09-11 21:12:32 UTC
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. :-)
Comment 5 Jan Becicka 2004-09-13 14:35:48 UTC
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.
Comment 6 Marek Grummich 2004-09-14 12:49:57 UTC
Honzo, as a reporter, could you verify this issue (latest continuous
build is 20040914-0837)? I don't know how to make it. Thanks!
Comment 7 Jan Becicka 2005-03-18 12:42:31 UTC
V
Comment 8 Quality Engineering 2007-09-20 09:58:52 UTC
Reorganization of java component