[jbosstools-issues] [JBoss JIRA] (JBIDE-10763) Project examples cache logic is faulty
Rob Cernich (JIRA)
jira-events at lists.jboss.org
Tue Jan 31 16:23:48 EST 2012
Rob Cernich created JBIDE-10763:
-----------------------------------
Summary: Project examples cache logic is faulty
Key: JBIDE-10763
URL: https://issues.jboss.org/browse/JBIDE-10763
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: project-examples
Affects Versions: 3.3.0.M5
Reporter: Rob Cernich
Assignee: Snjezana Peco
Project examples files that are provided by plugins using a plugin URL (e.g. platform:/plugin/plugin.id/...) fail to be refreshed. The only workaround is to delete the cached file from the workspace's .metadata.
The following logic in ProjectUtils.getProjectExamplesFile() is incorrect:
{code:java}
if (urlModified == 0) {
if (file.exists()) {
return file;
}
}
{code}
as '0' is the same as IRemoteFileInfo.NO_LAST_MODIFIED. If urlModified == IRemoteFileInfo.NO_LAST_MODIFIED, the file should always be updated.
--
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 jbosstools-issues
mailing list