harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6601) [classlib][nio] SocketChannel.connect(null) and DatagramChannel.connect(null) should throw NullPointerException
Date Tue, 27 Jul 2010 12:22:16 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892742#action_12892742
] 

Tim Ellison commented on HARMONY-6601:
--------------------------------------

I get IllegalArgumentException when testing the RI:

e.g.
       DatagramChannel c = DatagramChannel.open();
        c.connect(null);
 
produces:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) Client VM (build 1.5.0_22-b03, mixed mode)
Exception in thread "main" java.lang.IllegalArgumentException
...

Which version are you testing with?


> [classlib][nio] SocketChannel.connect(null) and DatagramChannel.connect(null) should
throw NullPointerException
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6601
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6601
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Catherine Hope
>            Assignee: Tim Ellison
>            Priority: Minor
>         Attachments: 6601.patch
>
>
> Calling SocketChannel.open(null), SocketChannel.connect(null) or DatagramChannel.connect(null)
on the RI throws a NullPointerException.  On Harmony we get an IllegalArgumentException. 
All of these methods are using SocketChannelImpl.validateAddress helper method.

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


Mime
View raw message