Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread Alex Miller
Thanks! -- 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

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread 676c7473
I have opened http://dev.clojure.org/jira/browse/CLJ-1929. -- 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 firs

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread 676c7473
Another observation: it seems that the type inference stumbles only when there is an overloaded method with the same arity (?): (import 'java.time.format.TextStyle) (let [builder (DateTimeFormatterBuilder.)] (.appendZoneText builder TextStyle/FULL #{})) This is a similar case in th

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread Nicola Mometto
Actually s/constant/literal/ https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L3003-L3005 https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L3057-L3060 https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread Nicola Mometto
On 16 May 2016, at 15:53, Alex Miller wrote: > > This is kind of an interesting case. From poking at it a bit, the {} is typed > as a IPersistentMap, and IPM does NOT extend java.util.Map (although the > implementations like PersistentArrayMap and PersistentHashMap do via > APersistentMap). >

Re: Reflection warning: {} argument can’t be resolved as java.util.Map

2016-05-16 Thread Alex Miller
This is kind of an interesting case. From poking at it a bit, the {} is typed as a IPersistentMap, and IPM does NOT extend java.util.Map (although the implementations like PersistentArrayMap and PersistentHashMap do via APersistentMap). I think the interesting question is why the type hint is n