Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getSecurityManager (0.55 sec)

  1. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

       */
      public void testUnloadableWithoutSecurityManager() throws Exception {
        if (isJdk9OrHigher()) {
          return;
        }
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          System.setSecurityManager(null);
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

       */
      public void testUnloadableWithoutSecurityManager() throws Exception {
        if (isJdk9OrHigher()) {
          return;
        }
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          System.setSecurityManager(null);
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AbstractFutureInnocuousThreadTest.java

              }
            };
        oldClassLoader = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader(classReloader);
    
        oldSecurityManager = System.getSecurityManager();
        /*
         * TODO(cpovirk): Why couldn't I get this to work with PermissionCollection and implies(), as
         * used by ClassPathTest?
         */
        final PropertyPermission readSystemProperty =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 5.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * security manager. We require that any security manager permit getPolicy/setPolicy.
       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
        if (sm == null) {
          r.run();
          Policy savedPolicy = Policy.getPolicy();
          try {
            Policy.setPolicy(permissivePolicy());
            System.setSecurityManager(new SecurityManager());
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .contains("com/google/common/reflect/ClassPathTest.class");
      }
    
    
      public void testExistsThrowsSecurityException() throws IOException, URISyntaxException {
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          doTestExistsThrowsSecurityException();
        } finally {
          System.setSecurityManager(oldSecurityManager);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/ClassPathTest.java

            .contains("com/google/common/reflect/ClassPathTest.class");
      }
    
    
      public void testExistsThrowsSecurityException() throws IOException, URISyntaxException {
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          doTestExistsThrowsSecurityException();
        } finally {
          System.setSecurityManager(oldSecurityManager);
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Jul 10 17:06:37 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * security manager. We require that any security manager permit getPolicy/setPolicy.
       */
      public void runWithPermissions(Runnable r, Permission... permissions) {
        SecurityManager sm = System.getSecurityManager();
        if (sm == null) {
          r.run();
          Policy savedPolicy = Policy.getPolicy();
          try {
            Policy.setPolicy(permissivePolicy());
            System.setSecurityManager(new SecurityManager());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
Back to top