commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-596) FileInputStream is not closed
Date Wed, 24 May 2017 08:35:04 GMT

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

Bruno P. Kinoshita commented on COLLECTIONS-596:
------------------------------------------------

This class has been removed from [collections] when the 4.x version was released. See COLLECTIONS-351
for more.

The place where you can find a similar class now is [configuration], probably PropertiesConfiguration.
PropertiesConfiguration also contains some calls to a load method passing an InputSteam, which
is never closed... but the input stream is passed to the library by the user, so the library
in this case should not close it, as users may decide to do something else with it, and are
then responsible for properly handling the stream.

Marking as Won't Resolve.

> FileInputStream is not closed
> -----------------------------
>
>                 Key: COLLECTIONS-596
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-596
>             Project: Commons Collections
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>            Reporter: Kaloyan Spiridonov
>
> In ExtendedProperties class on 602 line the function load is called with input stream.
I do not see anywhere stream to be closed. Is there any reason for that?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message