You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "George Harley (JIRA)" <ji...@apache.org> on 2006/07/05 11:57:31 UTC

[jira] Closed: (HARMONY-748) [classlib][nio] java.nio.channels.ServerSocketChannel.accept() should throw IllegalBlockingModeException if the channel is in non-blocking mode and there is no pending connetions.

     [ http://issues.apache.org/jira/browse/HARMONY-748?page=all ]
     
George Harley closed HARMONY-748:
---------------------------------


Verified by Andrew.

> [classlib][nio] java.nio.channels.ServerSocketChannel.accept() should throw IllegalBlockingModeException if the channel is in non-blocking mode and there is no pending connetions.
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: HARMONY-748
>          URL: http://issues.apache.org/jira/browse/HARMONY-748
>      Project: Harmony
>         Type: Bug

>     Reporter: Andrew Zhang
>     Assignee: George Harley
>  Attachments: nio.diff
>
> java.nio.channels.ServerSocketChannel.accept() should throw IllegalBlockingModeException if the channel is in non-blocking mode and there is no pending connetions. Following test  reproduces the bug:
> public void testAccept_NonBlocking_NoConnect() throws IOException {
>         ServerSocketChannel sc = ServerSocketChannel.open();
>         sc.configureBlocking(false);
>         try {
>             sc.socket().accept();
>             fail("Should throw IllegalBlockingModeException");
>         } catch (IllegalBlockingModeException e) {
>             // expected
>         }
>     }
> RI 5.0 passes the test while Harmony fails. 
> I'll upload a patch to fix the problem soon.
> Thanks!

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