[jboss-jira] [JBoss JIRA] (JBRULES-3296) org.drools.io.impl.ClassPathResource lastRead not getting set
Esteban Aliverti (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Dec 21 04:12:09 EST 2011
[ https://issues.jboss.org/browse/JBRULES-3296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652469#comment-12652469 ]
Esteban Aliverti commented on JBRULES-3296:
-------------------------------------------
This bug was introduced by the last modification of ClassPathResource.
This pull-request fixes the problem: https://github.com/droolsjbpm/drools/pull/75
> org.drools.io.impl.ClassPathResource lastRead not getting set
> -------------------------------------------------------------
>
> Key: JBRULES-3296
> URL: https://issues.jboss.org/browse/JBRULES-3296
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-core
> Affects Versions: 5.2.0.Final, 5.3.0.Final
> Reporter: Vivek Pandey
> Assignee: Esteban Aliverti
>
> lastRead value always remains 0 for org.drools.io.impl.ClassPathResource. Hence they are always marked as modified by scan method in org.drools.io.impl.ResourceChangeScannerImpl.
> getInputStream method in ClassPathResource should be modified as below. This is on lines of other implementations of InternalResource
> public InputStream getInputStream() throws IOException {
> URLConnection conn = this.getURL().openConnection();
> this.lastRead = conn.getLastModified();
> return conn.getInputStream();
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list