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.3.0.Final, 5.2.0.Final
Reporter: Vivek Pandey
Assignee: Mark Proctor
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