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/17 12:08:14 UTC

[jira] Updated: (HARMONY-893) [classlib][nio] java.nio.channels.spi.SelectorProvider.provider() should not throw SecurityException from SelectorProvider.provider().

     [ http://issues.apache.org/jira/browse/HARMONY-893?page=all ]

Andrew Zhang updated HARMONY-893:
---------------------------------

    Attachment: nio.diff

Hello,

Would you please try my patch?

Thanks!

Best regards,
Andrew

> [classlib][nio] java.nio.channels.spi.SelectorProvider.provider() should not throw SecurityException from SelectorProvider.provider().
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-893
>                 URL: http://issues.apache.org/jira/browse/HARMONY-893
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Attachments: nio.diff
>
>
> java.nio.channels.spi.SelectorProvider.provider() should not throw SecurityException from SelectorProvider.provider().
> Following test reproduces the bug. Please run it in seperated vm once, because provider() return value is always cached, and may be affected by other tests if run in a test suite. 
> public void test_provider_security(){           
>        SecurityManager securityManager = new SecurityManager();
>        System.setSecurityManager(securityManager);
>        SelectorProvider.provider();
> }
> The test passes against RI, while fails against Harmony. 

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