-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Modify netty-shaded resources to reference shaded class names #8258
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Test | ||
public void nettyResourcesUpdated() throws IOException { | ||
InputStream inputStream = NettyChannelBuilder.class.getClassLoader() | ||
.getResourceAsStream("META-INF/native-image/io.netty/transport/reflection-config.json"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We really ought to rename the files as well (the "io.netty" folder), to avoid them colliding with Netty's files. But we can do that as a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha, will do.
@dzou, thank you! |
Thanks for the quick review! |
This modifies the shading operation to transform native-image resources so they correctly reference shaded class names.
Fixes #7540.
cc/ @meltsufin