Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
explicitly delegate printing of server objects to IRecord print-metho…
…d, fixes NREPL-37
  • Loading branch information
cemerick committed Feb 26, 2013
1 parent a22aaee commit 0f016eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/clojure/clojure/tools/nrepl/server.clj
Expand Up @@ -104,6 +104,13 @@
clojure.lang.IDeref
(deref [this] this))

(try
; IRecord not available in 1.2.0
(eval '(defmethod print-method Server
[s w]
((get-method print-method clojure.lang.IRecord) s w)))
(catch Throwable _))

(defn start-server
"Starts a socket-based nREPL server. Configuration options include:
Expand Down

0 comments on commit 0f016eb

Please sign in to comment.