-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Custom Init or Destroy method from an interface cannot be invoked in a native image #31819
Comments
@czp3009 thanks for the report and the sample but I believe that the repo is either private or its URL is misspelled. Can you please check? |
@snicoll oh, sorry, i forgot to change repository visibility. please try again. |
It's a bit strange. I can see a hint being generated for the proper target class:
I don't really understand yet why it insists on having a hint for the interface. |
This sample worked with Spring Boot The only thing that was different was |
Looking at the code it was always meant to be invoked from the interface. It looks like in |
Affected spring version: 6.1.1(native image)
r2dbc connectionFactory will clean up the connection pool when the application exits, but at this time it will report an error:
I have written some code to reproduce this problem: https://github.com/czp3009/spring-native-dispose-issue-reproduction
Native compile and execute the application and then terminate it to see the exception
I guess it's related to this issue: #31278
The text was updated successfully, but these errors were encountered: