harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5784) Bad error message when InetAddress.getByName is called
Date Wed, 23 Apr 2008 17:45:24 GMT
Bad error message when InetAddress.getByName is called

                 Key: HARMONY-5784
                 URL: https://issues.apache.org/jira/browse/HARMONY-5784
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Davanum Srinivas

Good Message (Sun JDK 1.5)

Exception in thread "main" java.net.UnknownHostException: this.is.a.bad.endpoint.terrible.in.fact:
        at java.net.InetAddress.getAllByName0(InetAddress.java:1145)
        at java.net.InetAddress.getAllByName(InetAddress.java:1072)
        at java.net.InetAddress.getAllByName(InetAddress.java:1008)
        at java.net.InetAddress.getByName(InetAddress.java:958)
        at Main.main(Main.java:5)

Bad Message (Harmony - 650843)

[dims@dims-desktop test]$java Main
Uncaught exception in main:
java.net.UnknownHostException: this.is.a.bad.endpoint.terrible.in.fact - No such file or directory
        at java.net.InetAddress.lookupHostByName(InetAddress.java:418)
        at java.net.InetAddress.getByName(InetAddress.java:253)
        at Main.main(Main.java:5)

Sample code

import java.net.InetAddress;

public class Main {
    public static void main(String[] args) throws Exception {


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message