[ https://issues.apache.org/jira/browse/GROOVY-7391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated GROOVY-7391: -------------------------------------- Fix Version/s: (was: 2.5.0-beta-1) > Indy ignores custom invoker in meta class > ----------------------------------------- > > Key: GROOVY-7391 > URL: https://issues.apache.org/jira/browse/GROOVY-7391 > Project: Groovy > Issue Type: Bug > Components: groovy-runtime > Reporter: Jochen Theodorou > Assignee: Jochen Theodorou > Fix For: 2.4.4 > > > {code} > import groovy.xml.Entity > class InterceptionThroughMetaClassTest extends GroovyTestCase { > void testPOJOMetaClassInterception() { > String invoking = 'ha' > invoking.metaClass.invokeMethod = {String name, Object args -> > 'invoked' > } > assert invoking.length() == 'invoked' > assert invoking.someMethod() == 'invoked' > } > void testPOGOMetaClassInterception() { > Entity entity = new Entity('Hello') > entity.metaClass.invokeMethod = {String name, Object args -> > 'invoked' > } > assert entity.build(new X()) == 'invoked' > assert entity.someMethod() == 'invoked' > } > } > class X {}{code} > This program is based on https://github.com/groovy/groovy-core/pull/651. > The test works fine for normal Groovy but fails with indy, because indy > ignores the custom invoker given through invokeMethod. -- This message was sent by Atlassian JIRA (v6.3.4#6332)