[ 
http://jira.amdatu.org/jira/browse/AMDATU-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11686#comment-11686
 ] 

Arthur Meijer commented on AMDATU-432:
--------------------------------------

Closing the inputstream solves thr problem, but may not be the most elegant and 
efficient solution

URLConnection conn = url.openConnection();
lastModified = conn.getLastModified();
conn.getInputStream().close();

                
> ResourceServlet getLastModified results in open FileDescriptor
> --------------------------------------------------------------
>
>                 Key: AMDATU-432
>                 URL: http://jira.amdatu.org/jira/browse/AMDATU-432
>             Project: Amdatu
>          Issue Type: Bug
>            Reporter: Arthur Meijer
>             Fix For: 0.2.1
>
>
> The getLastModified() method of the ResourceServlet leaves files open when 
> retrieving the lastmodified header for file:// urls.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers

Reply via email to