[jboss-jira] [JBoss JIRA] (JBRULES-3651) ClassPathResource.getLastModified() leaks a file descriptor

Chris Rankin (JIRA) jira-events at lists.jboss.org
Sat Oct 6 17:18:03 EDT 2012


Chris Rankin created JBRULES-3651:
-------------------------------------

             Summary: ClassPathResource.getLastModified() leaks a file descriptor
                 Key: JBRULES-3651
                 URL: https://issues.jboss.org/browse/JBRULES-3651
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core
    Affects Versions: 5.5.0.Beta1, 5.4.0.Final
         Environment: Fedora 17, JDK6
            Reporter: Chris Rankin
            Assignee: Mark Proctor


Calling {{getLastModified()}} on a {{ClassPathResource}} allocates a file descriptor and doesn't release it until the {{ClassPathResource}} object is garbage-collected.

I believe that this is a bug in {{JarURLConnection}} in Sun's JDK6, as noticed by the Freemarker project, who also created a [fix|http://sourceforge.net/tracker/index.php?func=detail&aid=1824122&group_id=794&atid=100794].


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


More information about the jboss-jira mailing list