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 2019/11/24 02:46:01 UTC

[jira] [Closed] (GROOVY-9281) Unqualified reference to inner class of super class does not support package-private visibility

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

Paul King closed GROOVY-9281.
-----------------------------

> Unqualified reference to inner class of super class does not support package-private visibility
> -----------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-9281
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9281
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 3.0.0-rc-1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Follow up to GROOVY-8531.  Consider the following:
> Outer.java
> {code:java}
> package pack;
> class Outer {
>   enum Inner {
>     CONST
>   }
>   Outer(Inner inner) {
>   }
> }
> {code}
> Other.groovy
> {code:groovy}
> package pack
> class Other extends Outer {
>   Other() {
>     super(Inner.CONST)
>   }
> }
> {code}
> The reference to the static inner class "Inner" should also work for package-private visibility.  Currently public and protected are supported.



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