commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IMAGING-200) After using Imaging.getImageInfo(File), FileInputStream is not closed yet.
Date Fri, 23 Dec 2016 18:48:58 GMT

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

Gary Gregory commented on IMAGING-200:
--------------------------------------

Also make sure that you use a SNAPSHOT from  https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/

We have migrated the code to use Java 7 try-with-resources in a lot of places. We might have
missed one that you found. Let us know.

> After using Imaging.getImageInfo(File), FileInputStream is not closed yet.
> --------------------------------------------------------------------------
>
>                 Key: IMAGING-200
>                 URL: https://issues.apache.org/jira/browse/IMAGING-200
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: imaging.common.*
>         Environment: Java 1.7
>            Reporter: Minh Hoang
>              Labels: common, common-imaging, imaging, windows
>
> - After using Imaging.getImageInfo(File), we tried deleting <File> .
> =>an error is displayed said that <File> is using by java plaform.
> - We tried using Imaging.getImageInfo(InputStream,FileName) and of course we close InputStream
after using.
> => it's ok when deleting <File>.
> We believe Imaging.getImageInfo(File) using InputStream and is not closed yet. Please
fix it for the next version.



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

Mime
View raw message