Ah, static methods...  Clearly I haven't spent enough time in the Java
world.

user=> (org.tmatesoft.svn.core.wc.SVNClientManager/newInstance)
#<SVNClientManager org.tmatesoft.svn.core.wc.svnclientmana...@c623af>

On Mon, Jan 5, 2009 at 8:41 AM, Justin Johnson <ajustinjohn...@gmail.com>wrote:

> Will someone please explain to me why this isn't working?  Is there
> something special about newInstance that I'm missing?
>
> user=> (. org.tmatesoft.svn.core.wc.SVNClientManager newInstance)
> #<SVNClientManager org.tmatesoft.svn.core.wc.svnclientmana...@b307f0>
>
>  user=> (.newInstance org.tmatesoft.svn.core.wc.SVNClientManager)
> java.lang.InstantiationException:
> org.tmatesoft.svn.core.wc.SVNClientManager (NO_SOURCE_FILE:0)
>
> user=> (macroexpand-1 '(.newInstance
> org.tmatesoft.svn.core.wc.SVNClientManager))
> (. (clojure.core/identity org.tmatesoft.svn.core.wc.SVNClientManager)
> newInstance)
>
> user=> (clojure.core/identity org.tmatesoft.svn.core.wc.SVNClientManager)
> org.tmatesoft.svn.core.wc.SVNClientManager
>
> user=> (. (clojure.core/identity
> org.tmatesoft.svn.core.wc.SVNClientManager) newInstance)
> java.lang.InstantiationException:
> org.tmatesoft.svn.core.wc.SVNClientManager (NO_SOURCE_FILE:0)
>

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