[jira] [Updated] (GROOVY-9166) Empty static initializer generates code

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (GROOVY-9166) Empty static initializer generates code

JIRA jira@apache.org

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

Lőrinc Pap updated GROOVY-9166:
-------------------------------
    Affects Version/s: 2.5.7

> Empty static initializer generates code
> ---------------------------------------
>
>                 Key: GROOVY-9166
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9166
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.7
>            Reporter: Lőrinc Pap
>            Priority: Major
>         Attachments: Screen Shot 2019-06-08 at 13.57.31.png
>
>
> After updating Gradle from Groovy {{2.5.4}} to {{2.5.7}} the following test started to fail:
> [https://github.com/gradle/gradle/blob/bc8d6ebd11d81be35ea7453cda6f955de236add3/subprojects/plugins/src/integTest/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy#L330]
>  
> The reason was that:
>  * implicit and explicit default constructors don't generate the same bytecode anymore (-explicit- implicit one is marked as {{@Generated}} now)
>  * static initializers generate and empty if statement
> See the attachment and the corresponding PR: [https://github.com/gradle/gradle/pull/9627]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)