And another transcript that might help narrow this down:

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=> (printf "(class x)=%s x='%s'\n" (class x) x)
(class x)=class java.net.URL 
x='file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs'
nil
user=> (let [x 
#java.net.URL["file:///home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs"]]
(printf "(class x)=%s x='%s'\n" (class x) x))
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:4) 
user=> (defmethod print-dup java.net.URL [o, ^java.io.Writer w] (.write w (str 
o)))
#<MultiFn clojure.lang.MultiFn@3362a63>
user=> (let [x 
#java.net.URL["file:///home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs"]]
(printf "(class x)=%s x='%s'\n" (class x) x))
(class x)=class clojure.lang.Symbol 
x='file:/home/hara/dj/usr/src/clojurescript/src/cljs/cljs/core.cljs'
nil

Andy

On Mar 3, 2012, at 12:08 PM, Andy Fingerhut wrote:

> 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

Reply via email to