harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Hope (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6601) [classlib][nio] SocketChannel.connect(null) and DatagramChannel.connect(null) should throw NullPointerException
Date Mon, 26 Jul 2010 15:23:50 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-6601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Catherine Hope updated HARMONY-6601:
------------------------------------

    Attachment: 6601.patch

Patch changes null check in SocketChannelImpl.validateAddress to throw NullPointerException
instead of IllegalArgumentException and changes existing testcases to expect that exception.

> [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
>            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