doc macro broken for namespaces

Description

Example:

Clojure 1.3.0
user=> (doc clojure.pprint)
ClassNotFoundException clojure.pprint java.net.URLClassLoader$1.run (URLClassLoader.java:366)

It appears it is not safe to call resolve on a symbol representing a namespace; you get the error above. FWIW, I seem to have resolved the problem (see attached diff) by moving the find-ns clause above the resolve clause (in the cond); also the reference to namespace-doc needs to be var-quoted since namespace-doc is private.

Environment

None

Attachments

2

Activity

Show:

Stuart Sierra August 12, 2012 at 9:48 PM

Patch applied.

Stuart Sierra August 8, 2012 at 3:52 PM

Screened. Ready for approval.

Andy Fingerhut February 17, 2012 at 6:43 AM

Verified there is a bug, and that this change fixes it. New patch is in proper format, and includes a new unit test that would have caught the bug.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code and Test

Priority

Affects versions

Fix versions

Created December 28, 2011 at 11:35 PM
Updated March 1, 2013 at 3:49 PM
Resolved March 1, 2013 at 3:49 PM