This is because java vectors are disgusting and not part of the Collections framework. Clojure vectors do implement Collection, and indeed List, but that is different from Vector. However, Vector was hacked up a bit after Collections were released to make it a little more "forward compatible":
(javax.swing.table.DefaultTableModel. (java.util.Vector. ["I" "B"]) 0) ;==>#<DefaultTableModel javax.swing.table.defaulttablemo...@1d08e21> On Nov 16, 2:49 pm, "unst...@gmail.com" <unst...@gmail.com> wrote: > This seems like such an obvious question, but I can't seem to find the > answer anywhere. I don't understand why this would not be included in > the java_interop section of the clojure documentation. > > Is it possible to pass a clojure vector to a java function that > requires a java vector as an argument? Apparently not since: > > (javax.swing.table.DefaultTableModel. ["I" "B"] 0) fails. > > What is the idiomatic way to do this? -- 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 to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en