Re: About extracting common methods to reduce the size of class files

2018-01-23 Thread Jochen Theodorou
Am 23.01.2018 um 01:18 schrieb Daniel Sun: Hi Jochen $getStaticMetaClass can I think not be put in an interface. It needs static information about the exact class this method is in and there is supposed to be one for each Groovy class we create... While I investigated the implementation of

Re: About extracting common methods to reduce the size of class files

2018-01-23 Thread Jochen Theodorou
Am 23.01.2018 um 12:42 schrieb Jochen Theodorou: Am 23.01.2018 um 01:18 schrieb Daniel Sun: Hi Jochen $getStaticMetaClass can I think not be put in an interface. It needs static information about the exact class this method is in and there is supposed to be one for each Groovy class we

Re: Making @Immutable a meta-annotation

2018-01-23 Thread Paul King
Okay, I made those changes. There is now a makeImmutable annotation attribute. Still a bunch of tidying up work to do including documentation refinements but any feedback welcome. cheers, Paul. On Sat, Jan 20, 2018 at 10:03 AM, MG wrote: >

Re: About extracting common methods to reduce the size of class files

2018-01-23 Thread Daniel Sun
> If that subclass is in Java, you will save the > metaclass for the Java subclass in the static field, that is supposed to > hold the metaclass for the base class. That's not good. You're right. I forgot the scenario... Cheers, Daniel.Sun -- Sent from:

Re: About extracting common methods to reduce the size of class files

2018-01-23 Thread Daniel Sun
> Oh you compare wrong. groovyObj.foo() would still work. That's great! `groovyObj.invokeMethod("foo", EMPTY_OBJECT_ARRAY) ` is not better than `InvokerHelper.invokeMethod(groovyObj, "foo", EMPTY_OBJECT_ARRAY) `, so I think it is OK to change :) Cheers, Daniel.Sun -- Sent from: