Details
-
Type:
Defect
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: Release 1.3, Release 1.4
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Mac OS X 10.5, lein 1.7 and lein 2.0
Description
(defrecord Dontwork [a])
(= (type (Dontwork. nil))
(type (map->Dontwork {:a 1})))
Will return true if the namespace is not AOT compiled and false if it is.
I have created a small example project with AOT and non-AOT namespaces to demonstrate
https://github.com/ejackson/aotquestion
I can't reproduce this under Clojure 1.3 or 1.4, and Leiningen 1.7.1 on either Java 1.7.0-jdk7u4-b21 OpenJDK 64-Bit or Java 1.6.0_31 Java HotSpot 64-Bit. OS is Mac OS X 10.7.
Edmund, how are you running this AOT code? I wrapped your code in a main function and built an uberjar from it.