Hi,

Am 25.06.2011 um 18:35 schrieb Gregg Reynolds:

> This is using the standard clojure-test stuff.  I've tried every way I can 
> think of to get Author into the namespace with no luck.  Since the defentity 
> statement occurs in the myapp.core namespace I don't see why :use ing that 
> isn't good enough.  Any hints?

You have to use a combination of require and import.

(ns myapp.test-core
  (:require myapp.core)
  (:import myapp.core.Author))

The require loads the namespace, which in particular generates the record 
class. The import then imports said class. This is also necessary for eg. 
gen-class'd classes.

Sincerely
Meikel

-- 
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

Reply via email to