The annotation is wrong for the Java file, but this is a compiling, small reproducing case. The following file complains about syntax errors:
package foo;
import groovy.transform.CompileStatic;
/**
* Created.
*/
import java.util.ArrayList;
/**
* Created.
*/
@CompileStatic
public class Broken {
ArrayList<?> list;
}
The annotation is wrong for the Java file, but this is a compiling, small reproducing case. The following file complains about syntax errors: