Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
ResolveVisitor seems to be resolving an unqualified import against itself by mistake.
The following code should fail with a "Unable to resolve class Test" error, but due to the ResolveVisitor bug, it reaches ACG and then fails.
import Test
Test.foo()
It is failing with the following message:
Caught: BUG! exception in phase 'class generation' in source unit 'D:\Roshan\GroovyDevSetup\Workspace18x\Try18X\src\Try.groovy' ClassNode#getTypeClass for Roshan is called before the type class is set
Attachments
Issue Links
- is duplicated by
-
GROOVY-4149 1.7 error importing groovy scripts
- Closed
-
GROOVY-4128 error messages for 'incorrect' imports are incoherent
- Closed