Method {{clojure.lang.RT.lastModified(URL, String)}} throws a {{ClassCastException}} if it is called in environment, where 'jar' protocol is not handled by standard {{JarURLConnector}}. The provided patch just adds a type check for that case. I ran into this problem when I tried to add a Clojure REPL to existing Java application.