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

Warning when native building with GraalVM for JDK 21 #1421

Open
gian1200 opened this issue Sep 26, 2024 · 0 comments
Open

Warning when native building with GraalVM for JDK 21 #1421

gian1200 opened this issue Sep 26, 2024 · 0 comments
Labels

Comments

@gian1200
Copy link

gian1200 commented Sep 26, 2024

Describe the bug

-H:±UnlockExperimentalVMOptions was introduced in GraalVM for JDK 21 (see oracle/graal#7105).

When building an app natively, the following warning appears:

Warning: The option '-H:IncludeResources=rabbitmq-amqp-client.properties|version.properties' is experimental and must be enabled via '-H:+UnlockExperimentalVMOptions' in the future.
Warning: Please re-evaluate whether any experimental option is required, and either remove or unlock it. The build output lists all active experimental options, including where they come from and possible alternatives. If you think an experimental option should be considered as stable, please file an issue.

This warning comes from:

Args=-H:IncludeResources=rabbitmq-amqp-client.properties|version.properties

Reproduction steps

  1. Compile an app with GraalVM and JDK 21 (or later)
    ...

Expected behavior

Compilation without the warning

Additional context

The warning is usually solved by wrapping the mention arg (or removing the need of it). Something like:

-H:+UnlockExperimentalVMOptions -H:IncludeResources=rabbitmq-amqp-client.properties|version.properties -H:-UnlockExperimentalVMOptions

However, I'm unsure regarding the behavior of it on lower JDK versions

@gian1200 gian1200 added the bug label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant