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 - [gjast] ErrorChecker (or javac) does not close FileInputStreams
Summary: [gjast] ErrorChecker (or javac) does not close FileInputStreams
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks: 46415
  Show dependency tree
 
Reported: 2004-09-10 16:14 UTC by Jan Becicka
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (3.29 KB, text/plain)
2004-09-10 16:15 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
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