[ 
https://issues.apache.org/jira/browse/BCEL-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153275#comment-14153275
 ] 

Sebb commented on BCEL-181:
---------------------------

[For completeness]

bq. If I'm not mistaken it's closed in the ClassParser.parse() method, at line 
174.

As noted on the dev list, the file is only closed by parse() if fileOwned is 
true.



> org.apache.bcel.util.ClassLoaderRepository.loadClass(String) leaks input 
> streams
> --------------------------------------------------------------------------------
>
>                 Key: BCEL-181
>                 URL: https://issues.apache.org/jira/browse/BCEL-181
>             Project: Commons BCEL
>          Issue Type: Bug
>    Affects Versions: 5.2
>         Environment: Maven home: C:\Java\apache-maven-3.2.3
> Java version: 1.7.0_67, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_67\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 6.0
>
>
> The method org.apache.bcel.util.ClassLoaderRepository.loadClass(String) leaks 
> input streams. It gets a stream for a file resource and never closes it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to