[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22868] toString of InetAddress is different.
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22868] toString of InetAddress is different. |
Date: |
16 Oct 2005 01:27:31 -0000 |
Suns JVM prints hostname/hostaddress and when the hostname is empty this resuls
in:
"/127.0.0.1" whereas this results in
"127.0.0.1/127.0.0.1" in classpath.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2005-02-18
08:11 -------
Sven, if you dont care I would like to take this bug. I ahve some experience
with that code and know what can break.
Are you okay with this ?
------- Comment #2 from from-classpath at savannah dot gnu dot org 2005-02-18
14:53 -------
Well, I don't think it's any more difficult than just changing the
InetAddress.toString():
- String host = (hostName != null) ? hostName : addr;
+ String host = (hostName != null) ? hostName : "";
But if you insist, certainly..
------- Comment #3 from from-classpath at savannah dot gnu dot org 2005-02-25
09:57 -------
Fixed in CVS.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22868
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22868] toString of InetAddress is different.,
gcc-bugzilla at gcc dot gnu dot org <=