Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for SecurityException (0.24 sec)

  1. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testRenaming_noPermissions() throws Exception {
        System.setSecurityManager(
            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

                if (readClassPathFiles.implies(p)) {
                  throw new SecurityException("Disallowed: " + p);
                }
              }
            };
        System.setSecurityManager(disallowFilesSecurityManager);
        try {
          file.exists();
          fail("Did not get expected SecurityException");
        } catch (SecurityException expected) {
        }
        ClassPath classPath = ClassPath.from(getClass().getClassLoader());
    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)
  3. android/guava-tests/test/com/google/common/base/EnumsTest.java

        for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testRenaming_noPermissions() throws Exception {
        System.setSecurityManager(
            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/ClassPathTest.java

                if (readClassPathFiles.implies(p)) {
                  throw new SecurityException("Disallowed: " + p);
                }
              }
            };
        System.setSecurityManager(disallowFilesSecurityManager);
        try {
          file.exists();
          fail("Did not get expected SecurityException");
        } catch (SecurityException expected) {
        }
        ClassPath classPath = ClassPath.from(getClass().getClassLoader());
    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)
  6. guava-tests/test/com/google/common/base/EnumsTest.java

        for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/Striped64.java

       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
      private static sun.misc.Unsafe getUnsafe() {
        try {
          return sun.misc.Unsafe.getUnsafe();
        } catch (SecurityException tryReflectionInstead) {
        }
        try {
          return java.security.AccessController.doPrivileged(
              new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
                @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  8. maven-core/src/test/resources/apiv4-repo/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar

    reflect.Constructor logImplctor; private void LogSource(); public static void setLogImplementation(String) throws LinkageError, ExceptionInInitializ, NoSuchMethodExceptio, SecurityException, ClassNotFoundExcepti; public static void setLogImplementation(Class) throws LinkageError, ExceptionInInitializ, NoSuchMethodExceptio, SecurityException; public static Log getInstance(String); public static Log getInstance(Class); public static Log makeNewLogInstance(String); public static String[] getLogNames(); static...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Tue Dec 19 19:08:55 GMT 2023
    - 30.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

         * @return an Unsafe instance if successful
         */
        @SuppressWarnings("removal") // b/318391980
        private static Unsafe getUnsafe() {
          try {
            return Unsafe.getUnsafe();
          } catch (SecurityException tryReflectionInstead) {
            // We'll try reflection instead.
          }
          try {
            return AccessController.doPrivileged(
                (PrivilegedExceptionAction<Unsafe>)
                    () -> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/Striped64.java

       *
       * @return a sun.misc.Unsafe
       */
      @SuppressWarnings("removal") // b/318391980
      private static sun.misc.Unsafe getUnsafe() {
        try {
          return sun.misc.Unsafe.getUnsafe();
        } catch (SecurityException tryReflectionInstead) {
        }
        try {
          return java.security.AccessController.doPrivileged(
              new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() {
                @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top