clojure.core/bases returns a cons when passed a class and a Java array when passed an interface

Description

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)
#<Class[] [Ljava.lang.Class;@315b0333>
user=> (bases java.util.ArrayList)
(java.util.AbstractList java.util.List java.util.RandomAccess
java.lang.Cloneable java.io.Serializable)

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.

Environment

None

Status

Assignee

Unassigned

Reporter

Alf Kristian Støyle

Labels

None

Approval

Ok

Patch

Code and Test

Fix versions

Affects versions

Priority

Minor
Configure