[
https://issues.apache.org/jira/browse/GROOVY-10784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149193#comment-18149193
]
Daniel Sun commented on GROOVY-10784:
-------------------------------------
Fixed on master; closing from the existing enabled regression test testFlatten
in src/test/groovy/groovy/lang/MixinTest.groovy.
> 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
> Assignee: Daniel Sun
> Priority: Major
> Fix For: 7.0.0-alpha-1
>
>
> {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
(v10.3.26#10030026)