harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohanraj Loganathan (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6593) [classlib][luni]SecurityManager.checkExit(status) function fails to check for various status values
Date Mon, 19 Jul 2010 18:27:50 GMT
[classlib][luni]SecurityManager.checkExit(status) function fails to check for various status

                 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
         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");


        try {
            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.

View raw message