Grammatica - Bugs: bug #26081, Input streams are not closed when...
You are not allowed to post comments on this tracker with your current authentication level.
bug #26081: Input streams are not closed when parse errors are encountered
Submitter: | Per Cederberg <cederberg> | ||
Submitted: | Sat 04 Apr 2009 08:40:10 AM UTC | ||
Severity: | 2 - Normal | Item Group: | Software |
Status: | None | Assigned to: | cederberg |
Open/Closed: | Open |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
When one or more parse errors are encountered, a ParserLogException is thrown. However, if the parser failed to read to the end of file, the input file stream will not be properly closed.
This is easy enough to fix by adding a finally clause inside the Parser.parse() method.