Description
Foo.groovy:
class Foo { static foo(String[] args) {} }
Bar.java:
public class Bar { public static void main(String[] args) { Foo.foo("one", "two", "three"); } }
This compiles fine separately, but with joint compilation I get:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Compile error during compilation with javac. Bar.java:3: foo(java.lang.String[]) in Foo cannot be applied to (java.lang.String,java.lang.String,java.lang.String) Foo.foo("a", "b", "c"); ^ 1 error
I suppose stub generation is to blame.