Static Type Checking selects wrong method

2023-01-04 Thread Hannes Greule
Hi, I encountered an issue with @CompileStatic. Consider following code: import groovy.transform.CompileStatic @CompileStatic class E extends BImpl { @Override public void a() { super.a(); } public static void main(String[] args) { } } interface A { void a(); } inter

Bug in 4.0.7 with GroovyScriptEngineImpl cache

2023-01-04 Thread Eduardo E
Hi, I raised this Jira ticket: https://issues.apache.org/jira/browse/GROOVY-10876   could you please confirm this is a bug? This also happens with the new 4.0.7 release. The simple testcase I posted in the ticket should describe the problem, but l