harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r373847 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetSocketAddress.java
Date Tue, 31 Jan 2006 16:00:27 GMT
Author: tellison
Date: Tue Jan 31 08:00:22 2006
New Revision: 373847

URL: http://svn.apache.org/viewcvs?rev=373847&view=rev
Log:
Init hostname from InetAddress

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetSocketAddress.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetSocketAddress.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetSocketAddress.java?rev=373847&r1=373846&r2=373847&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetSocketAddress.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/InetSocketAddress.java
Tue Jan 31 08:00:22 2006
@@ -51,6 +51,7 @@
 		this.port = port;
 		try {
 			addr = InetAddress.getByName(hostName);
+			hostName = addr.getHostName();
 		} catch (UnknownHostException e) {
 		}
 	}



Mime
View raw message