Merge "release-request-69c3d750-179e-4af1-8ebf-e4da96f77bc9-for-aosp-nougat-cts-release-4338754 snap-temp-L18100000103152257" into nougat-cts-release
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
index 4998dc5..198e725 100644
--- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
+++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/DatagramSocketTest.java
@@ -713,7 +713,7 @@
         // now create one that is not connected and validate that we get the
         // right answer
         DatagramSocket theSocket = new DatagramSocket(null);
-        theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0));
+        theSocket.bind(new InetSocketAddress(Inet6Address.LOOPBACK, 0));
         assertNull(theSocket.getRemoteSocketAddress());
 
         // now connect and validate we get the right answer