On Fri, Apr 9, 2010 at 11:31 AM, dknesek <doug.kne...@gmail.com> wrote:
> How do I invoke Foo.class in Clojure?
>
> Specifically, I'm trying to convert this (working) Java to Clojure.
>
> service.getEntry(new URL(entryUrl), PortfolioEntry.class);
>
> When I do this:
>
> (def entry-url-str (str base-url portfolio-feed-url-suffix "/" id))  ;
> this works
> (def entry-url (new URL entry-url-str)) ; this works too
> (doto service
>    ...
>    (. getEnrty entry-url (class PortfolioEntry)))
>
> I get this:
>
> actual: java.lang.IllegalArgumentException: No matching method found:
> getEnrty for class com.google.gdata.client.finance.FinanceService
>
> Is seems like "(class PortfolioEntry)" doesn't resolve to the same
> type as "PortfolioEntry.class".
>
> Any ideas?

Is getEnrty copy'n'pasted, or just mistyped in the email twice (in
code snippet and error message)?

Lars Nilsson

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to