Consider these Java classes:
package test35;
public class Base {
public static class Nested {}
}
package test35;
public class Extension extends Base {
}
and this Groovy class:
package test35
import test35.Extension.Nested;
import groovy.transform.CompileStatic
@CompileStatic
class Test35 {
Nested n
}
Although the equivalent Java code would be valid, the Groovy compiler rejects this code with unable to resolve class test35.Extension.Nested (since Nested is declared in Base, not Extension). However Greclipse does not complain at all, while I would expect an error mark on the import statement, to be consistent with the Groovy compiler.
Consider these Java classes:
and this Groovy class:
Although the equivalent Java code would be valid, the Groovy compiler rejects this code with
unable to resolve class test35.Extension.Nested(sinceNestedis declared inBase, notExtension). However Greclipse does not complain at all, while I would expect an error mark on the import statement, to be consistent with the Groovy compiler.