You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/01/25 10:27:49 UTC

[jira] Assigned: (HARMONY-3049) [DRL VM] Not possible to set custom security manager via system property

     [ https://issues.apache.org/jira/browse/HARMONY-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Varlamov reassigned HARMONY-3049:
----------------------------------------

    Assignee: Alexey Varlamov

> [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
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>         Attachments: regressionTest.txt
>
>
> 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.