[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-UNNAMEDVerifying this change
Documentation
no-need-docdoc-not-needed