You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/22 16:09:03 UTC

[jira] [Commented] (GROOVY-8362) Nested class is resolved via another nested class with package name

    [ https://issues.apache.org/jira/browse/GROOVY-8362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16301602#comment-16301602 ] 

ASF GitHub Bot commented on GROOVY-8362:
----------------------------------------

GitHub user dovchinnikov opened a pull request:

    https://github.com/apache/groovy/pull/647

    GROOVY-8362: don't resolve class via class with package name

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dovchinnikov/groovy master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/groovy/pull/647.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #647
    
----
commit 42d4c22ae55f4369c1d83dee5eedc4b0631540bb
Author: Daniil Ovchinnikov <da...@...>
Date:   2017-12-22T16:01:10Z

    GROOVY-8362: don't resolve class via class with package name

----


> Nested class is resolved via another nested class with package name
> -------------------------------------------------------------------
>
>                 Key: GROOVY-8362
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8362
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniil Ovchinnikov
>            Assignee: Jochen Theodorou
>            Priority: Critical
>
> {code:title=bugs/bugs.groovy}
> package bugs
> class Current {
>   static class bugs {
>     static class Target {}
>   }
>   static usage() {
>     new Target() // error expected
>   }
> }
> println Current.usage() // bugs.Current$bugs$Target@20d28811
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)