Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use @AutoClone only with @CompileStatic #501

Open
arixmkii opened this issue Feb 4, 2022 · 2 comments
Open

Use @AutoClone only with @CompileStatic #501

arixmkii opened this issue Feb 4, 2022 · 2 comments

Comments

@arixmkii
Copy link

arixmkii commented Feb 4, 2022

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
Copy link
Author

arixmkii commented Feb 4, 2022

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

@codeconsole
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants