harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1183) [classlib][nio] o.a.h.tests.java.nio.channels.SelectorTest fails sometimes.
Date Tue, 15 Aug 2006 03:43:14 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1183?page=all ]

Andrew Zhang updated HARMONY-1183:
----------------------------------

    Attachment: Harmony-1183.diff

Hi,

Would you please try my patch? 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
>            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

        

Mime
View raw message