gorm-hibernate5
gorm-hibernate5 copied to clipboard
Use @AutoClone only with @CompileStatic
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
It seems that grails-data-mapping could also be affected https://github.com/grails/grails-data-mapping/search?q=AutoClone
It sounds like simply upgrading to Groovy 4.x will also solve this issue.