I was messing around recently with creating a Builder class using gen-class 
and ran into the same issue since each set* method returns this. I'm pretty 
sure it's a chicken and egg issue: the class doesn't exist yet but you need 
to specify it in the gen-class ...

I reworked your example a little bit, see if this fixes the 
problem: https://www.refheap.com/15708 and https://www.refheap.com/15709

I used Object in gen-class, and then check the type in the init.

Josh

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to