Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-3
-
None
-
None
Description
Fix for GroovyClassLoader to allow it to detect changed sources for file:// urls:
<snip>
private boolean isSourceNewer(URL source, Class cls) throws IOException {
long lastMod;
//
// Special handling for file:// protocol, as getLastModified() often reports
// incorrect results (-1)
//
if (source.getProtocol().equals("file"))
else
{ lastMod = source.openConnection().getLastModified(); } return lastMod > getTimeStamp(cls);
}
</snip>