[
https://issues.apache.org/jira/browse/GROOVY-6301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157681#comment-15157681
]
Pascal Schumacher commented on GROOVY-6301:
-------------------------------------------
I created a new issue for this: [GROOVY-7762]
> Static inner classes not visible to child classes
> -------------------------------------------------
>
> Key: GROOVY-6301
> URL: https://issues.apache.org/jira/browse/GROOVY-6301
> Project: Groovy
> Issue Type: Sub-task
> Components: class generator
> Affects Versions: 2.1.6, 2.2.0-beta-1, 2.1.7, 2.2.0
> Reporter: Kenneth Gendron
> Fix For: 2.4.0-beta-3
>
>
> Classes that extend another class with static inner classes are unable to see
> the inner classes without including the parent class name as part of the
> class reference.
> Example:
> {code}
> class X {
> static class Y {}
> }
> class Z extends X {
> Z() {
> Y y = new Y();
> }
> }
> {code}
> The compiler fails to compile "Z" saying it cannot resolve class "Y";
> however, it will accept "X.Y y = new X.Y()".
> The child class should not have to reference the parent class directly to get
> to its inner classes, should it?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)