Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.6
-
None
Description
Create the following files
Outer.groovy
class Outer { static class Inner { } }
Main.groovy
println new Outer() println new Outer.Inner()
and run 'groovy Main.groovy'. It'll fail with the following message:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/home/.../Main.groovy: 2: unable to resolve class Outer.Inner
@ line 2, column 9.
println new Outer.Inner()
Attachments
Issue Links
- is duplicated by
-
GROOVY-7990 inner classes not found in scripts
- Closed
- relates to
-
GROOVY-4287 CLONE - import of static nested classes in external groovy files is broken
- Closed
- links to