[ 
https://issues.apache.org/jira/browse/GROOVY-7990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King updated GROOVY-7990:
------------------------------
    Description: 
Hello, when I try to create two files in the same directory:

{code:title=B.groovy}
class B {
    static class C { }
}
{code}

{code:title=A.groovy}
new B.C()
{code}

Then trying to run {{A.groovy}} with the groovy command gives a compilation 
error:

{noformat}
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
C:\Projects\java-play\HelloWorld\Groovy7990\src\A.groovy: 3: unable to resolve 
class B.C
 @ line 3, column 1.
   new B.C()
   ^

1 error
{noformat}

  was:
Hello, when I try to create two files in the same directory:

{code:title=B.groovy}
class B {
    static class C { }
}
{code}

{code:title=A.groovy}
new B.C()
{code}

Then trying to run {{A.groovy}} with the groovy command gives a compilation 
error:

{code}
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/home/webczat/A.groovy: 1: unexpected token: . @ line 1, column 4.
   new.B.C()
      ^
1 error
{code}


> inner classes not found in scripts
> ----------------------------------
>
>                 Key: GROOVY-7990
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7990
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.4.0
>            Reporter: MichaƂ Zegan
>
> Hello, when I try to create two files in the same directory:
> {code:title=B.groovy}
> class B {
>     static class C { }
> }
> {code}
> {code:title=A.groovy}
> new B.C()
> {code}
> Then trying to run {{A.groovy}} with the groovy command gives a compilation 
> error:
> {noformat}
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> C:\Projects\java-play\HelloWorld\Groovy7990\src\A.groovy: 3: unable to 
> resolve class B.C
>  @ line 3, column 1.
>    new B.C()
>    ^
> 1 error
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to