[ https://issues.apache.org/jira/browse/GROOVY-7370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-7370: -------------------------------- Fix Version/s: (was: 5.0.0-alpha-1) > Varargs in constructor are not treated correctly when creating instances of > anonymous class > ------------------------------------------------------------------------------------------- > > Key: GROOVY-7370 > URL: https://issues.apache.org/jira/browse/GROOVY-7370 > Project: Groovy > Issue Type: Bug > Reporter: Nikita Artyushov > Assignee: Eric Milles > Priority: Major > Labels: varargs > Fix For: 4.0.5 > > > Code snippet to reproduce the bug: > {code} > 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; > } > } > } > } > {code} > expected output: > {code} > [oneWord] > [manyLetters] > {code} > actual: > {code} > [oneWord] > [m, a, n, y, L, e, t, t, e, r, s] > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)