Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.7
-
None
-
None
Description
Output of the code
enum Color { R, G, B static Color[] ALL_COLORS = [R, G, B]; } println Color.ALL_COLORS
is correct - [R, G, B]
But if I just make the static field public then the code fails with output as [null, null, null]
enum Color { R, G, B public static Color[] ALL_COLORS = [R, G, B]; } println Color.ALL_COLORS
Attachments
Issue Links
- relates to
-
GROOVY-3993 NPE when trying to access member of a static array from an inner static enum
- Closed