You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2009/07/15 16:20:15 UTC
[jira] Created: (HARMONY-6273) [classlib] [luni]
InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
[classlib] [luni] InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
-------------------------------------------------------------------------------------
Key: HARMONY-6273
URL: https://issues.apache.org/jira/browse/HARMONY-6273
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Mark Hindess
I noticed that the regression test for HARMONY-946 fails on RI with an UnknownHostException. It should fail on the Harmony too because there is a space at the end of the 0.0.0.0 string. We should fix this bug and fix the regression test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6273) [classlib] [luni]
InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731672#action_12731672 ]
Mark Hindess commented on HARMONY-6273:
---------------------------------------
I've looked at Linux. A simple test program - with space appended to the 0.0.0.0 string - shows that:
getaddrinfo("0.0.0.0 ", ...) succeeds, but that:
gethostbyname("0.0.0.0 ") fails.
We use the former. I assume that the RI is using the (obsolete according to POSIX.1-2001) gethostbyname call which fails and thus gives the behaviour I would have expected.
I also looked at AIX, and on that platform getaddrinfo fails as I would expect and thus the behaviour matches the RI. Oli was seeing a test failure on z/OS so I assume the behaviour is the same as AIX although I've not tried it.
Given that we are using the modern portable function to perform this task, I'm not inclined to revert to an obsolete mechanism to work around a platform difference. My initial reaction is to consider this non-bug difference/WONTFIX.
I'd be interested to know what the situation on windows is before making up my mind though.
> [classlib] [luni] InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
> -------------------------------------------------------------------------------------
>
> Key: HARMONY-6273
> URL: https://issues.apache.org/jira/browse/HARMONY-6273
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
>
> I noticed that the regression test for HARMONY-946 fails on RI with an UnknownHostException. It should fail on the Harmony too because there is a space at the end of the 0.0.0.0 string. We should fix this bug and fix the regression test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6273) [classlib] [luni]
InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731463#action_12731463 ]
Mark Hindess commented on HARMONY-6273:
---------------------------------------
I've fixed the HARMONY-946 regression test in r794281. Still need to look at why it was passing.
> [classlib] [luni] InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
> -------------------------------------------------------------------------------------
>
> Key: HARMONY-6273
> URL: https://issues.apache.org/jira/browse/HARMONY-6273
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
>
> I noticed that the regression test for HARMONY-946 fails on RI with an UnknownHostException. It should fail on the Harmony too because there is a space at the end of the 0.0.0.0 string. We should fix this bug and fix the regression test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6273) [classlib] [luni]
InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12732007#action_12732007 ]
Tim Ellison commented on HARMONY-6273:
--------------------------------------
I assumed that Mark was talking about the native socket functions getaddrinfo("0.0.0.0 ", ...), and gethostbyname("0.0.0.0 ") ?
Can you attach the sample program you used Mark and I can see what it does on Windows.
> [classlib] [luni] InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
> -------------------------------------------------------------------------------------
>
> Key: HARMONY-6273
> URL: https://issues.apache.org/jira/browse/HARMONY-6273
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
>
> I noticed that the regression test for HARMONY-946 fails on RI with an UnknownHostException. It should fail on the Harmony too because there is a space at the end of the 0.0.0.0 string. We should fix this bug and fix the regression test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-6273) [classlib] [luni]
InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12731976#action_12731976 ]
Oliver Deakin commented on HARMONY-6273:
----------------------------------------
I just ran the following on Windows x86 federated build:
import java.net.InetAddress;
class Test {
public static void main(String[] args) throws Exception {
InetAddress.getByName("0.0.0.0 ");
}
}
and it completes without any exception/error. Running the same test against IBM Java 5 and 6 completes without any exception also, so we match behaviour there. It looks like this is a unix only difference.
> [classlib] [luni] InetAddress.getByName("0.0.0.0 ") should throw UnknownHostException
> -------------------------------------------------------------------------------------
>
> Key: HARMONY-6273
> URL: https://issues.apache.org/jira/browse/HARMONY-6273
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Mark Hindess
>
> I noticed that the regression test for HARMONY-946 fails on RI with an UnknownHostException. It should fail on the Harmony too because there is a space at the end of the 0.0.0.0 string. We should fix this bug and fix the regression test.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.