diff options
author | Mark Wielaard <mark@klomp.org> | 2005-08-07 21:42:39 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2005-08-07 21:42:39 +0000 |
commit | 44a797a7a9d5f5c57f0c22142150e5c6001f2d12 (patch) | |
tree | 0a52a2d6388f025df91164288e5daf2952474e3d /vm | |
parent | 72a5461bc74df5fce455e2989e32ff4380d5d46a (diff) | |
download | classpath-44a797a7a9d5f5c57f0c22142150e5c6001f2d12.tar.gz |
2005-08-07 Ito Kazumitsu <kaz@maczuka.gcd.org>
Fixes bug #22929
* libraries/javalib/java/net/NetworkInterface.java
(condense): New static private method.
(getNetworkInterfaces): Call condense().
(getByName, getByInetAddress): Call getNetworkInterfaces()
so that condensed result may be returned.
* vm/reference/java/net/VMNetworkInterface.java (getInterfaces):
Clarify return value in documentation.
Diffstat (limited to 'vm')
-rw-r--r-- | vm/reference/java/net/VMNetworkInterface.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vm/reference/java/net/VMNetworkInterface.java b/vm/reference/java/net/VMNetworkInterface.java index af71ce294..d63de8452 100644 --- a/vm/reference/java/net/VMNetworkInterface.java +++ b/vm/reference/java/net/VMNetworkInterface.java @@ -61,6 +61,16 @@ final class VMNetworkInterface System.loadLibrary("javanet"); } + /** + * Returns a Vector of InetAddresses. The returned value will be + * 'condensed', meaning that all elements with the same interface + * name will be collapesed into one InetAddress for that name + * containing all addresses before the returning the result to the + * user. This means the native method can be implemented in a naive + * way mapping each address/interface to a name even if that means + * that the Vector contains multiple InetAddresses with the same + * interface name. + */ public static native Vector getInterfaces() throws SocketException; } |