groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <>
Subject About extracting common methods to reduce the size of class files
Date Mon, 22 Jan 2018 13:12:46 GMT
Hi all,

       `$getStaticMetaClass`, `getMetaClass`, `setMetaClass`,
`invokeMethod`, `getProperty`, `setProperty`, etc. are generated for all
groovy classes(implements `groovy.lang.GroovyObject`). In order to reduce
the size of class files and speed up generating class files, I suggest
extracting the implementation of the common methods to the existing
interface `groovy.lang.GroovyObject` by leveraging the power of Java8's
default method feature.

        Any thoughts?


Sent from:

View raw message