[jira] [Updated] (GROOVY-7370) Varargs in constructor are not treated correctly when creating instances of anonymous class

2022-08-13 Thread Eric Milles (Jira)


 [ 
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)


[jira] [Updated] (GROOVY-7370) Varargs in constructor are not treated correctly when creating instances of anonymous class

2022-08-13 Thread Daniel Sun (Jira)


 [ 
https://issues.apache.org/jira/browse/GROOVY-7370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Sun updated GROOVY-7370:
---
Fix Version/s: 4.0.5

> 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: 5.0.0-alpha-1, 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)


[jira] [Updated] (GROOVY-7370) Varargs in constructor are not treated correctly when creating instances of anonymous class

2021-11-19 Thread Eric Milles (Jira)


 [ 
https://issues.apache.org/jira/browse/GROOVY-7370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Milles updated GROOVY-7370:

Labels: varargs  (was: )

> 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
>Priority: Major
>  Labels: varargs
>
> 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.1#820001)