Harmony
  1. Harmony
  2. HARMONY-3050

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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor 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.

        Issue Links

          Activity

          Hide
          Stepan Mishura added a comment -

          See patch with regression test for classlib in HARMONY-3049

          Show
          Stepan Mishura added a comment - See patch with regression test for classlib in HARMONY-3049
          Stepan Mishura made changes -
          Field Original Value New Value
          Link This issue relates to HARMONY-3049 [ HARMONY-3049 ]
          Stepan Mishura created issue -

            People

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

              Dates

              • Created:
                Updated:

                Development