<< Back to previous view

[CLJ-819] deftype print/read doesn't munge field names Created: 12/Jul/11  Updated: 24/Aug/11  Resolved: 24/Aug/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.3
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Chas Emerick Assignee: Chas Emerick
Resolution: Declined Votes: 0
Labels: None



=> *clojure-version*
{:major 1, :minor 3, :incremental 0, :qualifier "beta1"}
=> (deftype P [a-b])
=> (P. "foo")
#<IllegalArgumentException java.lang.IllegalArgumentException: No matching field found: a-b for class user.P>

The field names being passed along to the reflector need to be munged properly in core_print.clj (line 246), and the Compiler needs to do the same in the IType block in ObjExpr.emitValue.

Comment by Chas Emerick [ 12/Jul/11 12:48 PM ]

I'll pick this up on Friday if no one else has by then.

Comment by Chas Emerick [ 24/Aug/11 5:05 AM ]

deftype print-method and print-dup pulled per CLJ-812; this is no longer relevant.

Generated at Fri Jan 19 15:40:10 CST 2018 using JIRA 4.4#649-r158309.