Hello,
I have encountered a somewhat inconsistent behavior when applying type
hinting on an empty vector.
Lucene 5.1 CharArraySet has a few constructors, one of which is
public CharArraySet(Collection<?> c, boolean ignoreCase)
So I get a reflection warning only in the first case:
1. (CharArraySet. ^Collection [] false)
2. (CharArraySet. ^Collection ["a"] false)
3. (def ^Collection empty-collection [])
(CharArraySet. empty-collection false)
Is it a bug or a feature?
P.S.
*clojure-version*
{:major 1, :minor 7, :incremental 0, :qualifier "beta3"}
java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.