From 1b544a6111a1005e502559a6e5f269c8ecf4a53b Mon Sep 17 00:00:00 2001 From: Lorenzo Colitti Date: Tue, 25 Aug 2009 16:56:27 -0700 Subject: IPv6 fixes to java.net.InetAddress. 1. Make hashCode() do something that makes sense for IPv6 addresses. 2. Expand coverage of hashCode unit test. 3. Fix failing regression test for getAllByName(). 4. Document that the getByName test is broken. I will fix it in a future change. 5. Expand test coverage of the isMulticastAddress test to include IPv6 and non-multicast addresses. All tests now pass. Change-Id: I6f52c7c3213dd01bf773228b1ed5d44df813f877 --- .../src/test/java/tests/support/Support_Configuration.java | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'support/src') diff --git a/support/src/test/java/tests/support/Support_Configuration.java b/support/src/test/java/tests/support/Support_Configuration.java index 9294ae9..19af32e 100644 --- a/support/src/test/java/tests/support/Support_Configuration.java +++ b/support/src/test/java/tests/support/Support_Configuration.java @@ -75,8 +75,6 @@ public class Support_Configuration { public static byte[] InetTestCaddr = { 9, 26, -56, -111 }; - public static int InetTestHashcode = 2130706433; - public static final String HomeAddress6 = "jcltest6.apache.org"; public static String IPv6GlobalAddressJcl4 = "FE80:0000:0000:0000:020D:60FF:FE0F:A776%4"; // this @@ -92,13 +90,6 @@ public class Support_Configuration { // this allows us to check the timeouts for connect public static String ResolvedNotExistingHost = "9.26.194.72"; - /** - * You can compute the hash code with the following code: try { String name = - * "whatever.xxx.com"; - * System.out.println(InetAddress.getByName(name).hashCode()); } catch - * (UnknownHostException e) {} - */ - // BEGIN android-changed /** * An address that resolves to more than one IP address so that the @@ -292,11 +283,6 @@ public class Support_Configuration { InetTestIP2 = value; } - value = props.get("InetTestHashcode"); - if (value != null) { - InetTestHashcode = Integer.parseInt(value); - } - value = props.get("SpecialInetTestAddress"); if (value != null) { SpecialInetTestAddress = value; -- cgit v1.1