You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Martin Häusler (Jira)" <ji...@apache.org> on 2020/09/04 08:33:00 UTC
[jira] [Created] (GROOVY-9720) @TimedExecution together with
@CompileStatic produces compilation error for nested interfaces
Martin Häusler created GROOVY-9720:
--------------------------------------
Summary: @TimedExecution together with @CompileStatic produces compilation error for nested interfaces
Key: GROOVY-9720
URL: https://issues.apache.org/jira/browse/GROOVY-9720
Project: Groovy
Issue Type: Bug
Components: Compiler
Affects Versions: 3.0.5
Reporter: Martin Häusler
I'm using groovy 3.0.5 as a runtime scripting language for my application. I've got two AST customizers in place: *TimedExecution* and *CompileStatic*. This combination causes the following failure:
{code:java}
The field 'timedInterrupt998817784$startTime' is not 'public static final' but is defined in interface 'GeneratedScriptingAPI$InnerClass$InnerClass2$InnerClass3$SpecificPropertyFilter'.{code}
The whole "GeneratedScriptingAPI" is generated at runtime based on certain preferences to provide the user script with a nice and type-safe API. "SpecificPropertyFilter" is an interface:
{code:java}
public interface ${generatedClassName}LinkPropertyFilter extends java.util.function.Predicate<${generatedClassName}Container>{
@Override public boolean test(${generatedClassName}Container container);
}
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)