Hi,
I noticed a bug in the clojure.java.io namespace at Line 57:

    URL
    (as-url [u] u)
    (as-file [u]
      (if (= "file" (.getProtocol u))
        (as-file (.getPath u))
--      (throw (IllegalArgumentException. "Not a file: " u))))

++      (throw (IllegalArgumentException. (str "Not a file: " u)))))

Right now it throws the error:

Caused by: java.lang.ClassCastException: java.net.URL cannot be cast to
java.lang.Throwable
        at clojure.java.io$fn__7354.invoke(io.clj:56)
        at clojure.java.io$fn__7328$G__7323__7333.invoke(io.clj:34)

Should I report this bug on Asembla?

Regards,
Abhinav

-- 
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