[
https://issues.apache.org/jira/browse/GROOVY-10248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-10248.
------------------------------
> Groovy ResolveVisitor runs twice
> --------------------------------
>
> Key: GROOVY-10248
> URL: https://issues.apache.org/jira/browse/GROOVY-10248
> Project: Groovy
> Issue Type: Bug
> Components: Compiler
> Reporter: Svatopluk Dedic
> Assignee: Eric Milles
> Priority: Minor
> Fix For: 4.0.0-beta-2
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> CompilationUnit [runs ResolveVisitor
> explicitly|https://github.com/groovy/groovy-core/blob/master/src/main/org/codehaus/groovy/control/CompilationUnit.java#L541]
> but the resolver is also registered as a [regular
> PhaseOperation|https://github.com/groovy/groovy-core/blob/master/src/main/org/codehaus/groovy/control/CompilationUnit.java#L178].
> It's not that big deal, as classes resolved in the 1st pass are relatively
> quickly determined as resolved. But still the whole AST source must be
> traversed.
> The ISourceUnitOperation's guard (check source.phase against unit.phase) does
> not work here, as the explicit resolver cannot upgrade the source's phase
> (not all operations completed).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)