Bug 189553 - Another resource leak in Parser.java
Summary: Another resource leak in Parser.java
Status: RESOLVED DUPLICATE of bug 189547
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 22:14 EDT by Roman Arkhangelskiy CLA
Modified: 2007-05-28 22:24 EDT (History)
0 users

See Also:


Attachments
possible leak (296.74 KB, image/jpeg)
2007-05-28 22:15 EDT, Roman Arkhangelskiy CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Arkhangelskiy CLA 2007-05-28 22:14:56 EDT
Build ID: Source code from CVS (28.05.2007)

Steps To Reproduce:
I have been running Jtest's BugDetective feature on Eclipse source code from
CVS (28.05.2007) and it reported a possible resource leak in
org.eclipse.jdt.internal.compiler.parser.Parser.java.

The stream allocated at line 465 (buildFileForTable(String filename, char[] chars) method) is not closed after its use.

I'm attaching a screenshot from BugDetective which describes the exact flow which may cause the leak.

Please let me know if this is a real problem or BugDetective is mistaken.

Thank you!

More information:
Comment 1 Roman Arkhangelskiy CLA 2007-05-28 22:15:30 EDT
Created attachment 68986 [details]
possible leak
Comment 2 Olivier Thomann CLA 2007-05-28 22:24:48 EDT
Closing as dup of bug 189547.
The two bugs should be fixed at the same time.

*** This bug has been marked as a duplicate of bug 189547 ***