We need to pass an x10 arraylist[string] to a Java method as an object. What we tried is this.The method signature in Java interface is as follows.
public void getX10ArrayList ( ArrayList <String > nameList):
We implement that method inside an X10 class as follows.
public def getX10ArrayList ( var names : ArrayList [String] ) {
// do something
}
We get a compile error saying interface expected an object of type x10.util.ArrayList
but we are sending an object of type x10.util.ArrayList
[ x10.lang.String]`.