diff options
| author | Rich Hickey <richhickey@gmail.com> | 2009-05-27 17:54:36 +0000 |
|---|---|---|
| committer | Rich Hickey <richhickey@gmail.com> | 2009-05-27 17:54:36 +0000 |
| commit | b045a379215d1f48e6a2e6cedcdb41526cd5bb25 (patch) | |
| tree | 1b373847ae6ba72892d9ca46e3d089a3e5712361 /src/clj | |
| parent | d0fe0d1c544fb4d8d05ba3c7b6bf83fc2f4692a3 (diff) | |
get rid of root classloader. Establish dynamic context classloader for repl thread. Default true for *use-context-classloader*
Diffstat (limited to 'src/clj')
| -rw-r--r-- | src/clj/clojure/main.clj | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clj/clojure/main.clj b/src/clj/clojure/main.clj index 176fa13f..ee185afe 100644 --- a/src/clj/clojure/main.clj +++ b/src/clj/clojure/main.clj @@ -154,6 +154,8 @@ read, eval, or print throws an exception or error default: repl-caught" [& options] + (let [cl (.getContextClassLoader (Thread/currentThread))] + (.setContextClassLoader (Thread/currentThread) (clojure.lang.DynamicClassLoader. cl))) (let [{:keys [init need-prompt prompt flush read eval print caught] :or {init #() need-prompt (if (instance? LineNumberingPushbackReader *in*) |
