Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.2.2
Description
enum Test { TEST1(1, 2, 3) Test(Integer... ints) { println ints } } println Test.TEST1
This code gives me only "[1]", but it should be "[1,2,3]"
In Java everything is fine:
public enum Test { TEST1(1, 2, 3); Test(Integer... ints) { System.out.println(java.util.Arrays.toString(ints)); } public static void main(String []args){} }
Attachments
Issue Links
- relates to
-
GROOVY-7370 Varargs in constructor are not treated correctly when creating instances of anonymous class
- Closed