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] Updated: (HARMONY-3049) [DRL VM] Not possible to set custom security manager via system property
Date Wed, 24 Jan 2007 12:14:49 GMT

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

Stepan Mishura updated HARMONY-3049:
------------------------------------

    Attachment: regressionTest.txt

I've put the test into separate file because if the issue is fixed on DRL VM the test should
be excluded on IBM VME (see HARMONY-3050)

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


Mime
View raw message