[
https://issues.apache.org/jira/browse/GROOVY-10770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles reassigned GROOVY-10770:
------------------------------------
Assignee: Eric Milles
> Multiple @CompileStatic annotations don't combine extensions
> ------------------------------------------------------------
>
> Key: GROOVY-10770
> URL: https://issues.apache.org/jira/browse/GROOVY-10770
> Project: Groovy
> Issue Type: Bug
> Components: Static Type Checker
> Affects Versions: 4.0.5
> Reporter: Christopher Smith
> Assignee: Eric Milles
> Priority: Major
>
> When multiple levels of {{@CompileStatic}} are present, various type-checking
> extensions can be specified independently, but the total list isn't
> aggregated:
> {code:groovy}
> @CompileStatic(extensions = 'some-extension.groovy')
> class MyClass {
> @CompileStatic(extensions = 'erroneously-skipped.groovy')
> def myMethod() {}
> }
> {code}
> In such a case, all extensions should be applied collectively, inmost first.
> It might also make sense at some point to add some configuration to
> undo/disable other extensions, but for now composition is the piece that's
> not working correctly.
> I speculate that unified handling for {{@CompileStatic}} and {{@TypeChecked}}
> might be needed to make the various flavors all work together as expected by
> end users.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)