You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2020/07/13 18:47:00 UTC

[jira] [Resolved] (GROOVY-8359) Nested class is not resolved if compiled separately

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

Eric Milles resolved GROOVY-8359.
---------------------------------
    Resolution: Fixed

Works in Groovy 3 -- test case added

> Nested class is not resolved if compiled separately
> ---------------------------------------------------
>
>                 Key: GROOVY-8359
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8359
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniil Ovchinnikov
>            Priority: Critical
>
> {code:title=classes.groovy}
> package bugs
> class CurrentParent {
>   static class Target {}
> }
> {code}
> {code:title=bug.groovy}
> package bugs
> class Current extends CurrentParent {
>   static usage() {
>     new Target()
>   }
> }
> {code}
> This works if files are compiled together, but fails if files are compiled one by one with {{Error:(5, 5) Groovyc: unable to resolve class Target}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)