-
Notifications
You must be signed in to change notification settings - Fork 65
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
Remove unnecessary warnings in the native build after netty version update #3861
Remove unnecessary warnings in the native build after netty version update #3861
Comments
OPTION 1 to resolve GraalVM warnings: (I think this should be the ideal solution) The GraalVM warnings are resolved by removing those reflection configs. The following directives should be passed along with the
With the latest version of GraalVM, adding these from the module level |
OPTION 2 to resolve GraalVM warnings: Another workaround is adding the following dependencies(which are unnecessary) in http module. This resolved the GraalVM warnings :
|
The ideal and the easy solution would be update the build tool with configs to remove those reflection configs. Otherwise adding unnecessary dependencies to fix this problem is complex as it should be done to all Netty dependent modules and still there will be warning as mentioned above. |
The netty-level warning is printed due to this system property which is added as default in the native-image build : To resolve the netty-level warning at I'll check the feasibility of adding this to http-native |
I have tried to add a GraalVM Feature class in http to resolve the following log:
But I couldn't find the logger which prints this warnings yet. Btw there is another option where we pass the following property when building the native image:
Actually this is the default behavior when we run |
In the above PRs, only the GraalVM warnings are fixed by adding the required dependencies. The netty warning regarding the illegal reflection access can be resolved by a similar approach used in this issue. |
Description:
Due to the recent update of the
netty
version in thehttp
module, the following warnings are printed when executing thebal build --native
command.Performance analysis
step :The first one is printed because of the native image reflection configs which are added to the above netty version. The same issue was there in Quarkus. And as a solution they have excluded those reflection configs during the build.
The second one is related to some netty level logs.
Describe your task(s)
The text was updated successfully, but these errors were encountered: