classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [Patch] InetAddress and Inet4Address


From: Michael Koch
Subject: [cp-patches] [Patch] InetAddress and Inet4Address
Date: Mon, 3 Jan 2005 12:16:54 +0100
User-agent: Mutt/1.5.6+20040907i

Hi list,


I commited the attached patch to fix comparisions with the IP byte array
in java.net.InetAddress. As this class supports the whole stuff needed
for IPv4 anyway I made java.net.InetA4ddress calling its super class
when it needs to do something IPv4 specific.

I wonder if we should just move all the stuff from InetAddess to Inet4Address.

Mauve testcases added to check the new code is working and the old was not.


Michael


2005-01-03  Michael Koch  <address@hidden>

        * java/net/InetAddress.java: Made all hexadecimal numbers lowercase.
        Fixed typos in javadocs.
        (isSiteLocalAddress): Fixed handling of byte values.
        (isMCLinkLocal): Likewise.
        * java/net/Inet4Address.java
        (isMulticastAddress): Call super method.
        (isLoopbackAddress): Likewise.
        (isAnyLocalAddress): Likewise.
        (isLinkLocalAddress): Likewise.
        (isSiteLocalAddress): Likewise.
        (isMCGlobal): Likewise.
        (isMCNodeLocal): Likewise.
        (isMCLinkLocal): Likewise.
        (isMCSiteLocal): Likewise.
        (isMCOrgLocal): Likewise.
        (getHostAddress): Likewise.

Attachment: net.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]