-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[native-image] Incompatible change of initialization policy: trying to change RERUN #1462
Comments
Could you send me the full reproducer? That would make it easier for me to fix the issue. |
Hey, thanks for taking a look. Ok, this should do it (unless you are on windows...):
Some of the config is statically defined and passed in to the image builder, other stuff is computed (by chasing down spring configuration). If you want to tweak the static stuff, see the files in It could well be something I'm doing wrong but I don't quite understand the message to know what to change. |
The problem here is not in class initialization mechanism itself. It actually exactly says what is the problem: Our JDK support marks I think the problem here is that Do you have an idea of how |
If I remove it (from build time init) I get this:
which I guess indicates it comes in due to |
@olpaw it seems that we can't use rerun for |
I used some substitutes to temporarily get around the code bringing it in (as I don't actually need it for this app). Nice work on the compile times!
|
Fixed on master: 5b48670 |
MacbookPro: Graal 19.1.0
I'm upgrading my spring boot feature with Graal 19.1 support. But something has changed and I don't understand the latest message mentioning RERUN.
I'm just doing a very basic app which works with my feature and 19.0.x:
With existing feature (with minor changes to upgrade to latest APIs which have moved package):
With the existing feature, Trampoline was explicitly in the buildTimeInitialization list.
So I removed Trampoline from the explicit list.
Added MXBeanLookup to build time initialization list:
Any advice?
The text was updated successfully, but these errors were encountered: