Description
Code snippet to reproduce the bug:
class Test { public Test(String... args) { println args } public static void main(String[] args) { new Test('oneWord') new Test('manyLetters') { @Override int hashCode() { return 1; } } } }
expected output:
[oneWord] [manyLetters]
actual:
[oneWord] [m, a, n, y, L, e, t, t, e, r, s]
Attachments
Issue Links
- is related to
-
GROOVY-6618 Enum constructor doesn't work properly with variable arguments
- Closed
- relates to
-
GROOVY-10840 GroovyCastException on Groovy 3 try-with-resources example after upgrade to Groovy 4
- Closed
-
GROOVY-10722 AIC via array-based (variadic) constructor null and array arguments
- Closed