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/08/15 09:37:15 UTC

[jira] Commented: (HARMONY-1183) [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.

    [ http://issues.apache.org/jira/browse/HARMONY-1183?page=comments#action_12428055 ] 
            
Andrew Zhang commented on HARMONY-1183:
---------------------------------------

Hi Paulex,

The fix looks good, thanks!

Best regards,
Andrew

> [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-1183
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1183
>             Project: Harmony
>          Issue Type: Test
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Assigned To: Paulex Yang
>            Priority: Minor
>         Attachments: Harmony-1183.diff
>
>
> o.a.h.tests.java.nio.channels.SelectorTest fails sometimes, though unfrequently.
> The failure stack trace looks like:
> java.lang.NullPointerException at org.apache.harmony.tests.java.nio.channels.SelectorTest.assert_select_OP_CONNECT(SelectorTest.java:391) at org.apache.harmony.tests.java.nio.channels.SelectorTest.test_selectJ(SelectorTest.java:241) at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
> It's caused by resource release in method assert_select_OP_CONNECT:
> finally {
>             try {
>                 ssc.accept().close();  
>             } catch (IOException e) {
>                 // do nothing
>             }
>           ... 
> Notice that accept() may return null if client channel connected to server in nonblocking mode. 
> I'll upload a patch to fix this problem soon. Thanks!
> Best regards,
> Andrew

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