--- GroovyScriptEngine.java.2 2010-10-29 01:29:43.213387756 +0200 +++ GroovyScriptEngine.java 2010-10-29 01:31:23.973395378 +0200 @@ -544,7 +544,7 @@ // getResourceConnection() opening the inputstream, let's ensure all streams are closed forceClose(conn); - if (nextPossibleRecompilationTime < lastMod) { + if (depEntry.lastModified < lastMod) { ScriptCacheEntry newEntry = new ScriptCacheEntry(depEntry.scriptClass, lastMod, depEntry.dependencies); scriptCache.put(scriptName, newEntry); return true;