scala 2.8 implict java collections conversions
Posted
by nablik
on Stack Overflow
See other posts from Stack Overflow
or by nablik
Published on 2010-03-13T13:41:32Z
Indexed on
2010/03/13
13:45 UTC
Read the original article
Hit count: 195
I have problem with JavaConversions with 2.8 beta:
import scala.collection.JavaConversions._
class Utils(dbFile : File, sep: String) extends IUtils {
(...)
def getFeatures() : java.util.List[String] = csv.attributes.toList
}
And then exception:
[INFO] Utils.scala:20: error: type mismatch;
[INFO] found : List[String]
[INFO] required: java.util.List[String]
[INFO] def getFeatures() : java.util.List[String] = csv.attributes.toList
[INFO]
© Stack Overflow or respective owner