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

3.x: resolve native-image warnings after Netty upgrade #7084

Merged
merged 3 commits into from
Apr 8, 2024

Conversation

barchetta
Copy link
Member

@barchetta barchetta commented Jun 23, 2023

Fixes #5878

This PR silences warning from native-image caused by Netty metadata providing reflection entries for Netty classes that depend on optional 3rd party dependencies. We silence those warnings by adding the the third party dependencies to our native image extension -- this way they are not part of a non-native image Java build.

Size of native image. This shows native-image executable size did not grow much with the fix.

               3.2.1: 37305544 bytes
 3.2.2 with this fix: 37502176 bytes

@barchetta barchetta added dependencies Pull requests that update a dependency file native-image 3.x Issues for 3.x version branch labels Jun 23, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 23, 2023
tomas-langer
tomas-langer previously approved these changes Apr 5, 2024
@barchetta barchetta merged commit 8cdbe8f into helidon-io:helidon-3.x Apr 8, 2024
12 checks passed
@barchetta barchetta deleted the 3.x-netty-native-image branch October 4, 2024 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch build dependencies Pull requests that update a dependency file native-image OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.x: native-image warnings after Netty upgrade: "Warning: Could not register"
3 participants