You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2010/07/20 09:57:49 UTC
[jira] Assigned: (HARMONY-6593)
[classlib][luni]SecurityManager.checkExit(status) function fails to check
for various status values
[ https://issues.apache.org/jira/browse/HARMONY-6593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tim Ellison reassigned HARMONY-6593:
------------------------------------
Assignee: Tim Ellison
> [classlib][luni]SecurityManager.checkExit(status) function fails to check for various status values
> ---------------------------------------------------------------------------------------------------
>
> Key: HARMONY-6593
> URL: https://issues.apache.org/jira/browse/HARMONY-6593
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Affects Versions: 5.0M13
> Environment: Windows and Linux
> Reporter: Mohanraj Loganathan
> Assignee: Tim Ellison
> Attachments: securityManager_exitV_001.diff
>
>
> Consider the testcase below[1]. Harmony throws unknown permission
> But with RI the same test passes.
> As per API doc, checkExit should be able to check VM exit status.
> [1] testcase:
> public void test_checkExit_int1() {
> SecurityManager mySecMngr = new SecurityManager(){
> public void checkPermission(Permission permission) {
> if (!permission.equals(new RuntimePermission("exitVM.1") )) {
> throw new SecurityException("unknown permission");
> }
> }
> };
> mySecMngr.checkExit(1);
> try {
> mySecMngr.checkExit(2);
> fail("Should throw SecurityException");
> } catch (SecurityException se) {
> // expected
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.