Grant Henke has submitted this change and it was merged. ( 
http://gerrit.cloudera.org:8080/10321 )

Change subject: KUDU-2403: Fix FakeDNS to work in Java 9+
......................................................................

KUDU-2403: Fix FakeDNS to work in Java 9+

This fixes the FakeDNS implementation in Java 9+ by
first trying to use reflection to replace the internal
java.net.InetAddress$NameService implementation (Java 9 or later)
with our own. If the java.net.InetAddress$NameService field
doesn’t exist, we add our NameService
implementation to the java.net.InetAddress$NameServices
field (Java 8 or earlier).

All Java versions have the same NameService interface.
The main difference is the field names and class location.
That allows us to use the same implementation to replace
the default NameService in all versions.

Change-Id: I319f42b6b878531325d6a48ce6ccdcc9b40fe2bc
Reviewed-on: http://gerrit.cloudera.org:8080/10321
Reviewed-by: Adar Dembo <[email protected]>
Tested-by: Grant Henke <[email protected]>
---
M java/gradle/tests.gradle
M java/kudu-client/src/test/java/org/apache/kudu/client/FakeDNS.java
2 files changed, 98 insertions(+), 17 deletions(-)

Approvals:
  Adar Dembo: Looks good to me, approved
  Grant Henke: Verified

--
To view, visit http://gerrit.cloudera.org:8080/10321
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I319f42b6b878531325d6a48ce6ccdcc9b40fe2bc
Gerrit-Change-Number: 10321
Gerrit-PatchSet: 10
Gerrit-Owner: Grant Henke <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Grant Henke <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <[email protected]>

Reply via email to