groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Sun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-9223) Avoid generating common methods for each groovy class
Date Tue, 13 Aug 2019 09:20:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-9223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Sun updated GROOVY-9223:
-------------------------------
    Fix Version/s: 3.0.0-beta-4

> Avoid generating common methods for each groovy class
> -----------------------------------------------------
>
>                 Key: GROOVY-9223
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9223
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 3.0.0-beta-4
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {{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 generate common methods. As a result, the size of groovy class files will be reduced,
and the time costed on generating class files will be reduced too.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message