You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2007/06/13 15:02:42 UTC
svn commit: r546857 -
/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java
Author: tellison
Date: Wed Jun 13 06:02:42 2007
New Revision: 546857
URL: http://svn.apache.org/viewvc?view=rev&rev=546857
Log:
Apply patch HARMONY-4143 ([classlib][luni] The first parameter of method isReachableByICMP() and isReachableByTCP() should be destination)
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java?view=diff&rev=546857&r1=546856&r2=546857
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetAddress.java Wed Jun 13 06:02:42 2007
@@ -844,12 +844,12 @@
boolean threadReached = false;
// if isICMP, tries ICMP ping, else TCP echo
if (isICMP) {
- threadReached = NETIMPL.isReachableByICMP(
- InetAddress.this, addr, ttl, timeout);
+ threadReached = NETIMPL.isReachableByICMP(addr,
+ InetAddress.this, ttl, timeout);
} else {
try {
- threadReached = isReachableByTCP(InetAddress.this,
- addr, timeout);
+ threadReached = isReachableByTCP(addr,
+ InetAddress.this, timeout);
} catch (IOException e) {
// do nothing
}