You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniel Sun (Jira)" <ji...@apache.org> on 2022/10/02 21:37:00 UTC

[jira] [Updated] (GROOVY-10784) mixin does not work well when indy enabled

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

Daniel Sun updated GROOVY-10784:
--------------------------------
    Description: 

{code:java}
groovy.lang.MixinTest > testFlatten FAILED
    junit.framework.AssertionFailedError: expected:<[[-2, -2, -3, -3], 8, 9, 3, 2, 1, 4]> but was:<[[-2, -2, -3, -3], 8, 9, [3, 2, {2=1, 3=4}], [2, 3]]>
        at junit.framework.Assert.fail(Assert.java:57)
        at junit.framework.Assert.failNotEquals(Assert.java:329)
        at junit.framework.Assert.assertEquals(Assert.java:78)
        at junit.framework.TestCase.assertEquals(TestCase.java:238)
        at groovy.test.GroovyTestCase.assertEquals(GroovyTestCase.java:271)
        at groovy.test.GroovyTestCase.assertEquals(GroovyTestCase.java:275)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
        at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1623)
        at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)
        at groovy.lang.MixinTest.testFlatten(MixinTest.groovy:100)
{code}


> mixin does not work well when indy enabled
> ------------------------------------------
>
>                 Key: GROOVY-10784
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10784
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniel Sun
>            Priority: Major
>
> {code:java}
> groovy.lang.MixinTest > testFlatten FAILED
>     junit.framework.AssertionFailedError: expected:<[[-2, -2, -3, -3], 8, 9, 3, 2, 1, 4]> but was:<[[-2, -2, -3, -3], 8, 9, [3, 2, {2=1, 3=4}], [2, 3]]>
>         at junit.framework.Assert.fail(Assert.java:57)
>         at junit.framework.Assert.failNotEquals(Assert.java:329)
>         at junit.framework.Assert.assertEquals(Assert.java:78)
>         at junit.framework.TestCase.assertEquals(TestCase.java:238)
>         at groovy.test.GroovyTestCase.assertEquals(GroovyTestCase.java:271)
>         at groovy.test.GroovyTestCase.assertEquals(GroovyTestCase.java:275)
>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>         at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
>         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
>         at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1623)
>         at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:318)
>         at groovy.lang.MixinTest.testFlatten(MixinTest.groovy:100)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)