I\'m trying to call a methond on a Java class from a Groovy class. The Java method has a String array as a parameter, and I have a collection of Strings in my Groovy class. Ho
To be correct, def data = ["a","b","c"] it is a List, not an array.
def data = ["a","b","c"]
Just try casting like this:
def data = ["a","b","c"] as String[]