-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GroovySubstitutions fails with groovy 4 #4492
Comments
Hi, Thank you for reporting this we will take a look into it and get back to you. In the meantime, could you please share the steps to reproduce this issue locally? |
I ran into this as well. Environment:
Steps to reproduce:
Results in the same stacktrace as original issue post. If there is any other debugging I can try to provide more/better information please let me know. |
|
With Groovy 4.0.3 (currently out for Apache release voting), the Yet to be officially approved artifacts here: I did add |
Just confirming that upgrading to the new 4.0.3 version has resolved the issue and I was able to successfully generate a native image! |
Thanks for fixing this @paulk-asert, and thanks for confirming this is fixed @Torbuntu ! I am now closing this issue. |
Describe the issue
Upgrading groovy 3 to the newly released groovy 4 made native-image build fail with the following error:
Error: Could not find target method: protected static void com.oracle.svm.polyglot.groovy.Target_org_codehaus_groovy_vmplugin_v7_IndyInterface_invalidateSwitchPoints.invalidateSwitchPoints()
Steps to reproduce the issue
Describe GraalVM and your environment:
and:
More details
I saw that, while groovy 3 had
IndyInterface.invalidateSwitchPoints()
, groovy 4 does not have this method. These two commits removed it:org.codehaus.groovy.vmplugin.v7.IndyInterface
classorg.codehaus.groovy.vmplugin.v7.IndyInterface
class, but without theinvalidateSwitchPoints()
method this time.Here is the stack trace reported by the compiler:
The text was updated successfully, but these errors were encountered: