gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GORA-460) InputStream is not closed in DataStoreFactory#getMappingFile()
Date Wed, 27 Jan 2016 06:12:39 GMT

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

Hudson commented on GORA-460:
-----------------------------

SUCCESS: Integrated in gora-trunk #1637 (See [https://builds.apache.org/job/gora-trunk/1637/])
GORA-460 InputStream is not closed in DataStoreFactory#getMappingFile() (lewis.j.mcgibbney:
rev 73a649fbccb9fa7751aafb20076354c1b10952fc)
* gora-core/src/main/java/org/apache/gora/store/DataStoreFactory.java


> InputStream is not closed in DataStoreFactory#getMappingFile()
> --------------------------------------------------------------
>
>                 Key: GORA-460
>                 URL: https://issues.apache.org/jira/browse/GORA-460
>             Project: Apache Gora
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Renato Javier MarroquĂ­n Mogrovejo
>            Priority: Minor
>             Fix For: 0.7
>
>
> Here is related code:
> {code}
>     InputStream mappingFile = store.getClass().getClassLoader().getResourceAsStream(mappingFilename);
>     if (mappingFile == null)
>       throw new IOException("Unable to open mapping file: "+mappingFilename);
>     return mappingFilename;
> {code}
> mappingFile should be closed before returning.



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

Mime
View raw message