Grant Henke has uploaded this change for review. ( 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 implimentation in Java 9+ by first trying to use reflection to replace the internal java.net.InetAddress$NameService implimentation (Java 9 or later) with our own. If the java.net.InetAddress$NameService field doesn’t exist, we add our NameService implimentation to the java.net.InetAddress$NameServices field (Java 8 or earlier). All Java versions have the same NamService interface. The main difference is the field names and class location. That allows us to use the same Implimentation to replace the default NameService in all versions. Change-Id: I319f42b6b878531325d6a48ce6ccdcc9b40fe2bc --- M java/kudu-client/src/test/java/org/apache/kudu/client/FakeDNS.java 1 file changed, 41 insertions(+), 14 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/21/10321/1 -- 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: newchange Gerrit-Change-Id: I319f42b6b878531325d6a48ce6ccdcc9b40fe2bc Gerrit-Change-Number: 10321 Gerrit-PatchSet: 1 Gerrit-Owner: Grant Henke <[email protected]>
