harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3049) [DRL VM] Not possible to set custom security manager via system property
Date Wed, 24 Jan 2007 11:47:49 GMT
[DRL VM] Not possible to set custom security manager via system property
------------------------------------------------------------------------

                 Key: HARMONY-3049
                 URL: https://issues.apache.org/jira/browse/HARMONY-3049
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
            Reporter: Stepan Mishura
            Priority: Minor


The following test behaives on RI as expected but fails in DRL VM

------------------ MySecurityManager.java ----------------
import java.security.Permission;
public class MySecurityManager extends SecurityManager {
    public void checkPermission(Permission perm) {
    }
}
------------------ test.java ----------------
public class test {
    public static void main(String[] av) throws Exception {
        System.out.println(System.getSecurityManager().getClass().getName());
    }
}

=============DRL VM output=========================
$java -Djava.security.manager=MySecurityManager test
Uncaught exception in main:
java.lang.NullPointerException
        at test.main(test.java:4)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message