Static method calls
Closed this issue · 0 comments
miho commented
Currently, static method calls are only possible if the invocation and the method definition are inside of the same compilation unit:
class A {
public static void staticMethod() {}
public void method() {
staticMethod();
}
}
Invocations like Math.abs(a-b)
are not possible since the Groovy AST visitor assumes a non-static method invocation. But that can actually be resolved by checking whether the ObjectExpression
is a class.