Affects Version/s: Release 1.2
Fix Version/s: Release 1.5
Patch:Code and Test
clojure.core/bases returns a clojure.lang.Cons when called with a class as parameter, but a Java array ( [Ljava.lang.Class; ) when called with an interface. Both should return values of the same type, which I guess should be a seq.
Showing the problem at the REPL:
user=> (bases java.util.List)
user=> (bases java.util.ArrayList)
(java.util.AbstractList java.util.List java.util.RandomAccess
I have attached a patch which calls the seq function on the else part of clojure.core/bases. Also updated the clojure.test-clojure.java-interop/test-bases test. However these test do not currently seem to run as part of the maven build. I have however run the test manually and verified that it works.