File Handle Leak in URLResourceStream
-------------------------------------

                 Key: WICKET-2534
                 URL: https://issues.apache.org/jira/browse/WICKET-2534
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.3, 1.4.2, 1.4.1
         Environment: Any
            Reporter: Adam Bender


The URLResourceStream constructor is using a UrlConnection to access the 
lastModifiedDate of jar files. This leads to a known File Handle leak as 
described here: 
http://www.mail-archive.com/[email protected]/msg20951.html .  
The workaround for this issue is also described here. It appears that this 
workaround has been applied to the URLResourcesStream#lastModifiedTime method 
and so it could easily be replicated in the constructor to avoid calling 
lastModifiedTime on the JarUrlResourceConnection.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to