Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-3050

[IBM VME] Not possible to set custom security manager via system property

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: VM
    • Labels:
      None

      Description

      The following test behaives on RI as expected but fails in IBM VME

      ------------------ 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()); }

      }

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                smm Stepan Mishura
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: