-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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][broker] Fix JDK17 compatibility issues. #15540
Conversation
@heesung-sn |
Thank you for taking care of this issue. I am wondering if removing reflection could resolve the issue too. Adding For example, can we directly use the static functions in
Similarly for this code path, we can use the static functions in
|
#15349 is about DnsResolverUtil |
@heesung-sn The benefit of the reflection based solution is that it's possible to target Java 8 with IIRC, It might be better to get rid of the sun.net.InetAddressPolicy class usage and just duplicate the logic in DnsResolverUtil. |
Ack. If there is no other option, I am ok with the |
@mattisonchao Please help create a PR for branch-2.10, lots of conflicts when I cherry-picking this PR. |
|
(cherry picked from commit e23af96)
+1 @mattisonchao I am cherry-picking this PR to branch-2.10. But I found the place of this PR modified does not exist in branch-2.10. |
Fixes #15539
Master Issue: #15539
Motivation
See #15539
Modifications
--add-opens java.base/sun.net=ALL-UNNAMED
--add-opens java.management/sun.management=ALL-UNNAMED
Verifying this change
Documentation
no-need-doc
doc-not-needed