Re: odd reflection warning

2011-04-15 Thread Laurent PETIT
2011/4/15 Jules : > I've reduced a compile-time reflection warning that I am getting to the > following : > > put this in a file and compile it (I am using clojure-1.3.0alpha5 and > clojure-maven-plugin-1.3.7) : > > (ns org.dada.demo.mytest) > > (if true >   (do >     (def ^java.util.Collection som

Re: odd reflection warning

2011-04-15 Thread Stuart Sierra
It's definitely not caused by the generics: they're a fiction of javac, and Clojure ignores them completely. -S -- 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 me

Re: odd reflection warning

2011-04-15 Thread Jules
Originally I thought it might be something to do with the overload on the TreeSet ctor expecting a Collection when I am probably only able to provide Collection, but then I discovered the wierdness around the 'if'... Jules -- You received this message because you are subscribed to the Google G

Re: odd reflection warning

2011-04-15 Thread Jules
I don't get it if I type into a repl - only when I put it into a file and compile it... It's been hanging around for a while so I figured it was time to get to the bottom of it :-) Jules -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to th

Re: odd reflection warning

2011-04-15 Thread Stuart Sierra
I can't reproduce this in a bare REPL in Clojure 1.3.0-master-SNAPSHOT at commit f0a46155ba3b7243. Probably just a fluke. -Stuart Sierra clojure.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@google