You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/11/24 06:06:02 UTC

[jira] Created: (HARMONY-2290) [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address

[classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address
-------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2290
                 URL: http://issues.apache.org/jira/browse/HARMONY-2290
             Project: Harmony
          Issue Type: Bug
            Reporter: Leo Li


First, we make the interface not bind to a network address in OS. Then

        InetAddress destAddress = InetAddress.getByName("www.google.com");
        assertFalse(destAddress.isReachable(loopbackInterface, 10, 1000));

RI passes and Harmony throws NullPointerException.

Furthermore, if the interface is a loopback interface, RI cannot reach the host outside but only local address while Harmony can.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2290) [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2290?page=all ]

Leo Li updated HARMONY-2290:
----------------------------

    Attachment: patch-2290.diff

Will somebody try this?

> [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2290
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2290
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Attachments: patch-2290.diff
>
>
> First, we make the interface not bind to a network address in OS. Then
>         InetAddress destAddress = InetAddress.getByName("www.google.com");
>         assertFalse(destAddress.isReachable(loopbackInterface, 10, 1000));
> RI passes and Harmony throws NullPointerException.
> Furthermore, if the interface is a loopback interface, RI cannot reach the host outside but only local address while Harmony can.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (HARMONY-2290) [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2290?page=all ]

Richard Liang reassigned HARMONY-2290:
--------------------------------------

    Assignee: Richard Liang

> [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2290
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2290
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2290.diff
>
>
> First, we make the interface not bind to a network address in OS. Then
>         InetAddress destAddress = InetAddress.getByName("www.google.com");
>         assertFalse(destAddress.isReachable(loopbackInterface, 10, 1000));
> RI passes and Harmony throws NullPointerException.
> Furthermore, if the interface is a loopback interface, RI cannot reach the host outside but only local address while Harmony can.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (HARMONY-2290) [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2290?page=all ]

Richard Liang closed HARMONY-2290.
----------------------------------


Verified by Leo

> [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2290
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2290
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2290.diff
>
>
> First, we make the interface not bind to a network address in OS. Then
>         InetAddress destAddress = InetAddress.getByName("www.google.com");
>         assertFalse(destAddress.isReachable(loopbackInterface, 10, 1000));
> RI passes and Harmony throws NullPointerException.
> Furthermore, if the interface is a loopback interface, RI cannot reach the host outside but only local address while Harmony can.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (HARMONY-2290) [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address

Posted by "Richard Liang (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2290?page=all ]

Richard Liang resolved HARMONY-2290.
------------------------------------

    Resolution: Fixed

Hello Leo

The patch has been applied at revision r480867, thanks a lot for this enhancement, please verify that the problem is fully fixed as you expected.

Best regards,
Richard.


> [classlib][luni]InetAddress.isReachable(NetworkInterface,int,int) throws NullPointerExeption when the networkInterface is not bind to a network address
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2290
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2290
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2290.diff
>
>
> First, we make the interface not bind to a network address in OS. Then
>         InetAddress destAddress = InetAddress.getByName("www.google.com");
>         assertFalse(destAddress.isReachable(loopbackInterface, 10, 1000));
> RI passes and Harmony throws NullPointerException.
> Furthermore, if the interface is a loopback interface, RI cannot reach the host outside but only local address while Harmony can.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira