You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2022/02/19 19:10:00 UTC

[jira] [Updated] (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 ]

Eric Milles updated GROOVY-9281:
--------------------------------
    Fix Version/s: 2.5.16

> 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, 2.5.16
>
>          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.20.1#820001)