Clojure assumes that clojure.lang.Compiler/LOADER is a DynamicClassLoader in a few places, but rules-clojure.persistentClassLoader is what's set to the ClassLoader instead. This causes the compilation step to fail. Compiling a namespace referencing a namespace containing (def foo (get-proxy-class ExceptionInfo)) should reproduce the error, with the message :cause class rules_clojure.persistentClassLoader cannot be cast to class clojure.lang.DynamicClassLoader (rules_clojure.persistentClassLoader is in unnamed module of loader 'app'; clojure.lang.DynamicClassLoader is in unnamed module of loader rules_clojure.persistentClassLoader @65ff29ae)
(note: for some reason I have to put that repro in b, and then compile a which :requires b)
Clojure assumes that clojure.lang.Compiler/LOADER is a DynamicClassLoader in a few places, but
rules-clojure.persistentClassLoader
is what's set to the ClassLoader instead. This causes the compilation step to fail. Compiling a namespace referencing a namespace containing(def foo (get-proxy-class ExceptionInfo))
should reproduce the error, with the message:cause class rules_clojure.persistentClassLoader cannot be cast to class clojure.lang.DynamicClassLoader (rules_clojure.persistentClassLoader is in unnamed module of loader 'app'; clojure.lang.DynamicClassLoader is in unnamed module of loader rules_clojure.persistentClassLoader @65ff29ae)
(note: for some reason I have to put that repro in
b
, and then compilea
which:require
sb
)