[CLJ-761] print-dup generates call to nonexistent method for APersistentVector$SubVector Created: 19/Mar/11 Updated: 04/Nov/11 |
|
| Status: | Open |
| Project: | Clojure |
| Component/s: | None |
| Affects Version/s: | Backlog |
| Fix Version/s: | Backlog |
| Type: | Defect | Priority: | Minor |
| Reporter: | Stuart Sierra | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Originally reported by Carson print-dup on any collection type generates code to call the create method of the collection's class. APersistentVector$SubVector has no create method. Example with Clojure at commit ecae8ff08a298777c365a261001adfe9bfa4d83c : Clojure 1.3.0-master-SNAPSHOT
user=> (read-string (binding [*print-dup* true] (pr-str (subvec [1 2 3] 1))))
IllegalArgumentException No matching method found: create clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:50)
|
| Comments |
| Comment by Kevin Downey [ 04/Nov/11 11:29 AM ] |
|
33.927 hiredman ,(binding [*print-dup* true] (pr-str (first {:a 1}))) |