The docstring is vague about the failure modes, but it drops a clue: "Use [sic] the context class loader if no loader is specified." The Javadoc for ClassLoader.getResource says it returns "null if the resource could not be found or the invoker doesn't have adequate privileges to get the resource".
Currently, clojure.java.io/resource is convenient for use with "some", "filter", and "if". A Jira ticket suggesting a more explicit docstring would be helpful. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.