blob: 3c8ee57636b74b9f63d9f191380feb069dc1949b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// test no longer applicable. but I think the underlying problem is fixed in trunk
scala> implicit def toJavaList[A](t:collection.Sequence[A]):java.util.List[A] =
| java.util.Arrays.asList(t.toArray:_*) java.util.Arrays.asList(t.toArray:_*)
toJavaList: [A](t: Sequence[A])java.util.List[A]
scala> val x: java.util.List[String] = List("foo")
<console>:7: error: type mismatch;
found : List[Any]
required: java.util.List[String]
val x: java.util.List[String] = List("foo")
|