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

Fix NioSocketChannel usage in graalvm native-image #13938

Merged
merged 1 commit into from Mar 28, 2024
Merged

Conversation

ianopolous
Copy link
Contributor

Motivation:

Using NioSocketChannel is currently broken in graalvm native-image builds. Trying to use it throws:
java.lang.NoSuchMethodException: io.netty.channel.socket.nio.NioSocketChannel.()

Modification:
Add it to the graalvm metadata json

Result:
Graalvm will include this method as reachable via reflection.

@normanmaurer
Copy link
Member

@ianopolous did you sign our ICLA yet ? https://netty.io/s/icla

@ianopolous
Copy link
Contributor Author

@normanmaurer I have signed the ICLA now. Thank you.

@normanmaurer normanmaurer added this to the 4.1.109.Final milestone Mar 28, 2024
@normanmaurer normanmaurer merged commit 7f23c95 into netty:4.1 Mar 28, 2024
14 checks passed
@normanmaurer
Copy link
Member

@ianopolous thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants