You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2010/07/27 14:22:16 UTC
[jira] Commented: (HARMONY-6601) [classlib][nio]
SocketChannel.connect(null) and DatagramChannel.connect(null) should throw
NullPointerException
[ 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.