Bug 22699 - Net subsystem fixes
Summary: Net subsystem fixes
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-19 05:54 UTC by from-classpath
Modified: 2005-07-23 22:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description from-classpath 2003-09-19 05:54:16 UTC
Various fixes for the net subsystem:
* errors thrown by InetSocketAddress are more explicit.
* prevent NullPointerException when doing a comparison (ala Sun) (InetSocketAddress)
* InetSocketAddress.toString should build a string with the internal requested hostname if that hostname cannot be solved.
* InetAddress:
      - new LOOPBACK_BITS static field to store localhost address.
      - IPV6 compatibility
      - added isAnyAddress and isLoopbackAddress
* NetworkInterface (optional but recommanded):
      - don't forget to load native library javanet
      - native call getRealNetworkInterfaces return  a Hashtable now instead of a vector.
Comment 1 from-classpath 2003-10-02 19:32:27 UTC
I commited parts of the patch to classpath and libgcj. I left IPv6 compatibility out because of total incompleteness. This will get merged with libgcj soon.
I dont think its a good idea in NetworkInterface to use Hashtable instead of Vector.