Created
September 9, 2010 22:39
-
-
Save ninjudd/572726 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/jvm/clojure/lang/RT.java b/src/jvm/clojure/lang/RT.java | |
index 9aea629..d76e82b 100644 | |
--- a/src/jvm/clojure/lang/RT.java | |
+++ b/src/jvm/clojure/lang/RT.java | |
@@ -383,21 +383,21 @@ static public void load(String scriptbase) throws Exception{ | |
static public void load(String scriptbase, boolean failIfNotFound) throws Exception{ | |
String classfile = scriptbase + LOADER_SUFFIX + ".class"; | |
String cljfile = scriptbase + ".clj"; | |
URL classURL = baseLoader().getResource(classfile); | |
URL cljURL = baseLoader().getResource(cljfile); | |
boolean loaded = false; | |
if((classURL != null && | |
(cljURL == null | |
- || lastModified(classURL, classfile) > lastModified(cljURL, cljfile))) | |
+ || lastModified(classURL, classfile) >= lastModified(cljURL, cljfile))) | |
|| classURL == null) { | |
try { | |
Var.pushThreadBindings( | |
RT.map(CURRENT_NS, CURRENT_NS.deref(), | |
WARN_ON_REFLECTION, WARN_ON_REFLECTION.deref())); | |
loaded = (loadClassForName(scriptbase.replace('/', '.') + LOADER_SUFFIX) != null); | |
} | |
finally { | |
Var.popThreadBindings(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment