Related to Stack Overflow question Scala equivalent of new HashSet(Collection) , how do I convert a Java collection (java.util.List say) into a Scala c
You can add the type information in the toArray call to make the Set be parameterized:
val s = Set(javaApi.query(....).toArray(new Array[String](0)) : _*)
This might be preferable as the collections package is going through a major rework for Scala 2.8 and the scala.collection.jcl package is going away