Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for NoSuchMethodException (0.26 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/platform/Jdk9PlatformTest.kt

        platform.assumeJdk8()
        try {
          SSLSocket::class.java.getMethod("getApplicationProtocol")
          // also present on JDK8 after build 252.
          assertThat(buildIfSupported()).isNotNull()
        } catch (nsme: NoSuchMethodException) {
          assertThat(buildIfSupported()).isNull()
        }
      }
    
      @Test
      fun testToStringIsClassname() {
        assertThat(Jdk9Platform().toString()).isEqualTo("Jdk9Platform")
      }
    
      @Test
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        }
    
        private static Method subscriberMethod() {
          try {
            return DummySubscriber.class.getMethod("handle", Object.class);
          } catch (NoSuchMethodException e) {
            throw new AssertionError(e);
          }
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/exception/NoSuchConstructorRuntimeException.java

    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import java.lang.reflect.Constructor;
    
    import org.codelibs.core.lang.MethodUtil;
    
    /**
     * Exception that wraps a {@link NoSuchMethodException} thrown when a {@link Constructor} cannot be found.
     *
     * @author higa
     */
    public class NoSuchConstructorRuntimeException extends ClRuntimeException {
    
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/eventbus/PackageSanityTests.java

        }
    
        private static Method subscriberMethod() {
          try {
            return DummySubscriber.class.getMethod("handle", Object.class);
          } catch (NoSuchMethodException e) {
            throw new AssertionError(e);
          }
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/exception/NoSuchMethodRuntimeException.java

     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import org.codelibs.core.lang.MethodUtil;
    
    /**
     * Exception that wraps {@link NoSuchMethodException}.
     *
     * @author higa
     */
    public class NoSuchMethodRuntimeException extends ClRuntimeException {
    
        private static final long serialVersionUID = -5673845060079098617L;
    
        /**
         * The target class.
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Jul 05 00:11:05 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/InsecureAndroidTrustManager.kt

        try {
          delegate::class.java.getMethod(
            "checkServerTrusted",
            Array<X509Certificate>::class.java,
            String::class.java,
            String::class.java,
          )
        } catch (_: NoSuchMethodException) {
          null
        }
    
      /** Android method to clean and sort certificates, called via reflection. */
      @Suppress("unused", "UNCHECKED_CAST")
      fun checkServerTrusted(
        chain: Array<out X509Certificate>,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/Slf4jConfigurationFactory.java

                        }
                    } catch (IOException
                            | ClassNotFoundException
                            | NoSuchMethodException
                            | InvocationTargetException
                            | IllegalAccessException
                            | InstantiationException ex) {
                        // ignore and move on to the next
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 08 08:49:11 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

            } else {
              try {
                // also present on JDK8 after build 252.
                SSLSocket::class.java.getMethod("getApplicationProtocol")
                true
              } catch (nsme: NoSuchMethodException) {
                false
              }
            }
        }
    
        fun buildIfSupported(): Jdk9Platform? = if (isAvailable) Jdk9Platform() else null
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu May 29 16:52:38 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

        }
    
        @Test
        @DisplayName("Invalid: looking up constructor on interface fails")
        void testNoConstructorLookup() {
            // Act & Assert: interfaces have no constructors
            assertThrows(NoSuchMethodException.class, () -> SessionSetupHandler.class.getDeclaredConstructor());
        }
    
        @Test
        @DisplayName("Invalid: resolving class by null name throws NPE")
        void testClassForNameWithNull() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  10. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

            .isNotNull();
    
        for (String propertyName : new String[] {"value", "absent"}) {
          Method method = null;
          try {
            method = annotationClass.getMethod(propertyName);
          } catch (NoSuchMethodException e) {
            throw new AssertionError("Annotation is missing required method", e);
          }
          Class<?> returnType = method.getReturnType();
          assertTrue(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top