You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/01/26 20:53:00 UTC

[jira] [Updated] (GROOVY-8361) Nested class is resolved via aliased static import

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

Paul King updated GROOVY-8361:
------------------------------
    Fix Version/s:     (was: 2.5.x)
                       (was: 3.x)

> Nested class is resolved via aliased static import
> --------------------------------------------------
>
>                 Key: GROOVY-8361
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8361
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniil Ovchinnikov
>            Priority: Critical
>
> {code:title=unrelatedPackage/Container.groovy}
> package unrelatedPackage
> class Container {
>   static class Target {}
> }
> {code}
> {code:title=bugs/bugs.groovy}
> package bugs
> import static unrelatedPackage.Container.Target as Unrelated
> println new Target() // reference is expected to be unresolved
> {code}



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