Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
An anonymous inner class in groovy is created with public visibility. The java compiler creates them with default (package-private) visibility.
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
Attachments
Issue Links
- is related to
-
GROOVY-9611 Reflexive access to class attributes broken in Groovy 3
- Closed