Gary,

You are probably removing try/catch as well. ClassNonFoundException is
expected and silenced with catch.

(defn cl-factory
  "Returns a Commons Logging-based implementation of the
LoggerFactory
protocol, or
  nil if not available."
  []
  (try
    (Class/forName "foo.bar")
    ; eval removed
    (catch Exception e nil)))

On Nov 18, 5:16 pm, Gary Trakhman <gary.trakh...@gmail.com> wrote:
> I get this when i try it in a blank project, removing the eval and the
> quote:
>
> Unknown location:
>   error: java.lang.ClassNotFoundException: org.apache.commons.logging.Log
>
> core.clj:16:8:
>   error: java.lang.ClassNotFoundException: org.apache.commons.logging.Log
> (core.clj:16)
>
> Compilation failed.

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