Open arixmkii opened 2 years ago
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
@CompileStatic
Alternatively one could just manually write all the code, which is generated by @AutoClone and don't use it.
@AutoClone
Related to #402
It seems that grails-data-mapping could also be affected https://github.com/grails/grails-data-mapping/search?q=AutoClone
grails-data-mapping
It sounds like simply upgrading to Groovy 4.x will also solve this issue.
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-17487003Alternatively one could just manually write all the code, which is generated by
@AutoClone
and don't use it.Related to #402