This works:
...as does this:
This does not:
The latter gives me a compiler exception stating that the method setParameters(
String[]) is not applicable for the arguments (String, String, String).
Any ideas as to why the shortcut syntax is not allowed when used as a parameter to a method?
On a side note, I've gotten around the issue by changing the signature of generator.setParameters to be:
That allows me to do this:
I'm just curious why the notation above doesn't work in that scenario. Thanks.