Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.4.0
-
None
-
None
Description
Hello, when I try to create two files in the same directory:
B.groovy
class B { static class C { } }
A.groovy
new B.C()
Then trying to run A.groovy with the groovy command gives a compilation error:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /home/webczat/A.groovy: 1: unable to resolve class B.C @ line 1, column 1. new B.C() ^ 1 error
Attachments
Issue Links
- duplicates
-
GROOVY-7812 Static inner classes cannot be accessed from other files when running by 'groovy' command
- Closed