Mystery comment

Eric Messick eric@syzygy.com
Thu, 14 Jan 1999 00:35:38 -0800


In message <4.1.19990113233730.009e92b0@ricochet.net>, "Mark S. Miller" <markm@caplet.com> wrote:
>NetAddr.java has the following method:
>
>    /**
>     * Produce a printable representation of this.
>     * @return A nicely formatted string representing this address.
>     */
>    public String toString() {
>        // XXX this should be a call to justAddr, but windows can't
>        // handle the dotted.quad address
>        return justAddr(myInetAddress.toString()) + ":" + myPortNumber;
>    }
>
>After the comment is a call to justAddr(), but this doesn't seem to have
>been causing any problems I've noticed on Windows.  What problem is/was
>this about?  Should we still be worried about this?

This one's mine.  The InetAddress code bottoms out in a native call.
The solaris version always worked fine, but the windows one would fail
to accept an InetAddress that was specified as a dotted quad
(127.0.0.1).  Perhaps it's been fixed.

-eric