Ah, static initializers... Well, I expect your initializer (in Java) is running before the Clojure code has had a chance to set the property...
On Thu, Apr 7, 2011 at 8:56 PM, MohanR <radhakrishnan.mo...@gmail.com> wrote: > > (let [ test (LogManager/getLogger "Stream")]) > > This code inside the same clojure function is supposed to call a > static method of a Java class and in the Java class there is a static > initializer. That initializer calls System.getProperty( "Test" ) > > This is compiled from within emacs C-c C-l. Not AOT. > > That Java code works properly when called from other Java code though. -- 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