[ 
https://issues.apache.org/jira/browse/GROOVY-9166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859404#comment-16859404
 ] 

Paul King commented on GROOVY-9166:
-----------------------------------

Did you mean "implicit" default constructor now has @Generated? If so, that is 
intended behavior.

> Empty static initializer generates code
> ---------------------------------------
>
>                 Key: GROOVY-9166
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9166
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Lőrinc Pap
>            Priority: Major
>         Attachments: Screen Shot 2019-06-08 at 13.57.31.png
>
>
> After updating Gradle from {{2.5.4}} to {{2.5.7}} these 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 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)

Reply via email to