-
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
Runtime crash in spring 5.3/spring-native with JDK 17 #3870
Comments
Hi, thank you for reaching out about this issue, could you please provide us with a reproducer to use? |
I confirm this bug with our latest GraalVM 21.3 (likely final) build, you can reproduce it with security-method or batch samples. Could you please tag this issue with |
oracle/graal#3870 is breaking some samples. Closes gh-773
@sdeleuze I cloned the repo and run |
Maybe try to run first If still not on your side, please share the error message. |
Also please make sure to use your current local copy or checkout later spring-attic/spring-native@136b613 since I have just pushed a temporary workaround. Fixing this issue is still very much needed since Spring will crash with sealed classes, my workaround just allow applications not used them to work. |
I run the
this happens with both jdk11 and jdk17. this is the output of
|
I am trying currently on macOS Catalina, but running the security-method's
this is the maven version in my mac:
|
Btw @sdeleuze , I would suggest having a branch without the workaround so that we can use it to test, this way you can keep the workaround on the main branch while we investigate on the other branch |
You are using an old and outdated version of Maven that does noes support |
For the long time without outputs, I guess that's due to the Do forget before compiling the app to run locally from the root of |
Describe the issue
The generated image crashes at runtime when
isSealed
method ofClass
is invoked through reflection. Happens at https://github.com/spring-projects/spring-framework/blob/5.3.x/spring-aop/src/main/java/org/springframework/aop/framework/AopProxyUtils.java#L145Describe GraalVM and your environment:
More details
The text was updated successfully, but these errors were encountered: