gorm-hibernate5 icon indicating copy to clipboard operation
gorm-hibernate5 copied to clipboard

Use @AutoClone only with @CompileStatic

Open arixmkii opened this issue 3 years ago • 2 comments
trafficstars

Groovy 3 language runtime can't handle this properly on JDK17 (potentially JDK17+). The recommended workaround is to use @CompileStatic https://issues.apache.org/jira/browse/GROOVY-10405?focusedCommentId=17487003&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17487003

Alternatively one could just manually write all the code, which is generated by @AutoClone and don't use it.

Related to #402

arixmkii avatar Feb 04 '22 11:02 arixmkii

It seems that grails-data-mapping could also be affected https://github.com/grails/grails-data-mapping/search?q=AutoClone

arixmkii avatar Feb 04 '22 11:02 arixmkii

It sounds like simply upgrading to Groovy 4.x will also solve this issue.

codeconsole avatar Feb 05 '22 17:02 codeconsole