Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
invokeMethod, getProperty and setProperty are common for groovy classes, but they have to be generated for each groovy class as GroovyObject is an interface and can not have default implementation before Java8.
Groovy 3 is based on Java8, so we can leverage the power of default method in interface to avoid generating common methods. As a result, the size of groovy class files will be reduced(about 580 bytes reduced), and the time costed on generating and loading class files will be reduced too.
Attachments
Issue Links
- links to