Hi gammelgedden,
I've also just recently figured out the reasoning behind Clojure's
(Class/staticMethod) notation.

(.newInstance TransformerFactory)

This notation always expects the second argument to be an object of
some sort. This means that TransformerFactory is actually being
resolved as a Class object. So you're calling
TransformerFactory.getClass().newInstance();

As Meikel mentioned, the correct way to call static methods is

(TransformerFactory/newInstance)


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