<< Back to previous view

[CLJ-1307] Type hint remains unqualified, resulting in errors Created: 15/Dec/13  Updated: 15/Dec/13  Resolved: 15/Dec/13

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

Type: Defect Priority: Major
Reporter: Nicola Mometto Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None


This snippet (even though unsensical) demonstrates the issue:

user=> (ns foo (:import clojure.lang.RT))
foo=> (defn x ^RT [])
foo=> (ns bar (:use foo))
bar=> (.hashCode (x))
CompilerException java.lang.IllegalArgumentException: Unable to resolve classname: RT, compiling:(NO_SOURCE_PATH:4:1)

This is because (:tag (meta #'x)) returns the Symbol 'RT, it should either be the Symbol 'clojure.lang.RT or the Class clojure.lang.RT

Comment by Nicola Mometto [ 15/Dec/13 8:43 PM ]

Duplicate: http://dev.clojure.org/jira/browse/CLJ-1232

Generated at Mon Jan 22 00:34:43 CST 2018 using JIRA 4.4#649-r158309.