summaryrefslogtreecommitdiffstats
path: root/support/src
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2009-08-25 16:56:27 -0700
committerLorenzo Colitti <lorenzo@google.com>2009-08-26 18:56:57 -0700
commit1b544a6111a1005e502559a6e5f269c8ecf4a53b (patch)
treed3a6bfb0d976e90f0a2b502a30ceb481768a0429 /support/src
parentca6ff5f62f565663788253db8b6da3233553fea8 (diff)
downloadlibcore-1b544a6111a1005e502559a6e5f269c8ecf4a53b.zip
libcore-1b544a6111a1005e502559a6e5f269c8ecf4a53b.tar.gz
libcore-1b544a6111a1005e502559a6e5f269c8ecf4a53b.tar.bz2
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
Diffstat (limited to 'support/src')
-rw-r--r--support/src/test/java/tests/support/Support_Configuration.java14
1 files changed, 0 insertions, 14 deletions
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;