You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Zhang (JIRA)" <ji...@apache.org> on 2006/07/19 12:13:15 UTC
[jira] Commented: (HARMONY-913) [classlib][nio]
o.a.h.nio.DatagramChannelImpl.send(ByteBuffer,SocketAddress) throws wrong
exception
[ http://issues.apache.org/jira/browse/HARMONY-913?page=comments#action_12422078 ]
Andrew Zhang commented on HARMONY-913:
--------------------------------------
Hello Paulex,
The fix looks good. Thanks!
Best regards,
Andrew
> [classlib][nio] o.a.h.nio.DatagramChannelImpl.send(ByteBuffer,SocketAddress) throws wrong exception
> ---------------------------------------------------------------------------------------------------
>
> Key: HARMONY-913
> URL: http://issues.apache.org/jira/browse/HARMONY-913
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Andrew Zhang
> Assigned To: Paulex Yang
> Attachments: nio.diff
>
>
> Hello,
> DatagramChannelImpl.send(ByteBuffer,SocketAddress) should throw NullPointerException if the given ByteBuffer is null and this channel is closed.
> Following test reproduces the bug. The test passes against RI, while fails against Harmony.
> public void test_datagram_send() throws IOException{
> DatagramChannel channel1=DatagramChannel.open();
> channel1.close();
> try {
> channel1.send(null, null);
> fail("Should throw NullPointerException");
> } catch (NullPointerException e) {
> //pass
> }
> }
--
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