Stepan,
Apparently this is kernel classes responsibility to initialize
SecurityManager. And it is hard to believe, but DRLVM just missed this
functionality. Could you please create a JIRA with regression test?
I'm going to fix this in drlvm now.
--
Alexey
2007/1/23, Stepan Mishura <[EMAIL PROTECTED]>:
Hi,
I'm not sure which JIRA's component to choose for the issue so I decided to
post it here.
The following test behaives on RI as expected but fails in DRL VM and IBM
VME:
import java.security.Permission;
public class MySecurityManager extends SecurityManager {
public void checkPermission(Permission perm) {
}
}
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)
=============IBM VME output=========================
$java -Djava.security.manager=MySecurityManager test
Exception in thread "main" java/lang/InternalError: Could not create
specified security manager: MySecurityManager
at java/lang/System.installSecurityManager (System.java:152)
at java/lang/System.completeInitialization (System.java:117)
at java/lang/Thread.<init> (Thread.java:129)
JVMJ9VM015W Initialization error for library jclclear_23(14): JVMJ9VM009E
J9VMDllMain failed
HMYEXEL062E Internal VM error: Failed to create Java VM
FAILED to invoke JVM.
Thanks,
Stepan Mishura
Intel Enterprise Solutions Software Division