I'm not sure what it is, but here is another transcript that may provide additional clues, and with a slightly later version of Clojure:
user=> (clojure-version) "1.4.0-beta1" user=> (def x #java.net.URL["file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs"]) #'user/x user=> x #<URL file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs> user=> (.getProtocol x) "file" user=> (.getProtocol #java.net.URL["file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs"]) CompilerException java.lang.RuntimeException: Can't embed object in code, maybe print-dup not defined: file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs, compiling:(NO_SOURCE_PATH:5) user=> (defmethod print-dup java.net.URL [o, ^java.io.Writer w] (.write w (str o))) #<MultiFn clojure.lang.MultiFn@2e694f12> user=> (.getProtocol #java.net.URL["file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs"]) ClassCastException clojure.lang.Symbol cannot be cast to java.net.URL user/eval11 (NO_SOURCE_FILE:7) user=> Andy On Mar 3, 2012, at 9:45 AM, Brent Millare wrote: > (.getProtocol > #java.net.URL["file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs"]) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en