Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
import
importLabels
Approval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created August 9, 2012 at 12:05 PM
Updated August 29, 2014 at 6:00 PM
Resolved August 29, 2014 at 6:00 PM
Specific to setting :type meta on a var:
If it is intended to forbid setting the :type metadata, then there should be an appropriate error message instead of the ClassCastException.
Cause: This is caused by the printer dispatch function
which ends up calling the default dispatch, which tries to vary-meta.
Solution: Add a check in the default print-method for (instance? clojure.lang.IObj o) before calling vary-meta and fallback to print-simple.
Patch: CLJ-1039-tolerate-misleading-type-metadata-on-var-wh.patch
Screened by: Alex Miller