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 2024/09/19 19:38:00 UTC
[jira] [Updated] (GROOVY-11481) anonymous inner class visibility
[ https://issues.apache.org/jira/browse/GROOVY-11481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-11481:
---------------------------------
Description:
An anonymous inner class in groovy is created with public visibility. The java compiler creates them with default (package-private) visibility.
An enum constant inner class is package-private since:
https://github.com/apache/groovy/commit/1097de34dace28061f9b2b796efbd7fc3f136743
The language specification makes no specific mention of visibility modifiers:
https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.9.5
was:
An anonymous inner class in groovy is created with public visibility. The java compiler creates them with default (package-private) visibility.
An enum constant inner class is package-private since:
https://github.com/apache/groovy/commit/1097de34dace28061f9b2b796efbd7fc3f136743
> anonymous inner class visibility
> --------------------------------
>
> Key: GROOVY-11481
> URL: https://issues.apache.org/jira/browse/GROOVY-11481
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
>
> An anonymous inner class in groovy is created with public visibility. The java compiler creates them with default (package-private) visibility.
> An enum constant inner class is package-private since:
> https://github.com/apache/groovy/commit/1097de34dace28061f9b2b796efbd7fc3f136743
> The language specification makes no specific mention of visibility modifiers:
> https://docs.oracle.com/javase/specs/jls/se11/html/jls-15.html#jls-15.9.5
--
This message was sent by Atlassian Jira
(v8.20.10#820010)