groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniil Ovchinnikov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-8361) Class is resolved via aliased static import
Date Fri, 20 Oct 2017 15:24:03 GMT

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

Daniil Ovchinnikov updated GROOVY-8361:
---------------------------------------
    Description: 
{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}

  was:
{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()
{code}

{{Target}} reference is expected to be unresolved


> 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
(v6.4.14#64029)

Mime
View raw message