Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getJavaLangAccess (0.06 sec)

  1. proguard/base.pro

    # into ints.
    
    # Throwables uses internal APIs for lazy stack trace resolution
    -dontnote sun.misc.SharedSecrets
    -keep class sun.misc.SharedSecrets {
      *** getJavaLangAccess(...);
    }
    -dontnote sun.misc.JavaLangAccess
    -keep class sun.misc.JavaLangAccess {
      *** getStackTraceElement(...);
      *** getStackTraceDepth(...);
    }
    
    # FinalizableReferenceQueue calls this reflectively
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 09 00:29:01 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ThrowablesTest.java

            assertThrows(
                ClassCastException.class, () -> getCauseAs(thrown, IllegalStateException.class));
        assertThat(expected).hasCauseThat().isSameInstanceAs(thrown);
      }
    
      @AndroidIncompatible // No getJavaLangAccess in Android (at least not in the version we use).
      @J2ktIncompatible
      @GwtIncompatible // lazyStackTraceIsLazy()
      public void testLazyStackTraceWorksInProd() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

            assertThrows(
                ClassCastException.class, () -> getCauseAs(thrown, IllegalStateException.class));
        assertThat(expected).hasCauseThat().isSameInstanceAs(thrown);
      }
    
      @AndroidIncompatible // No getJavaLangAccess in Android (at least not in the version we use).
      @J2ktIncompatible
      @GwtIncompatible // lazyStackTraceIsLazy()
      public void testLazyStackTraceWorksInProd() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Throwables.java

           */
          Class<?> sharedSecrets = Class.forName(SHARED_SECRETS_CLASSNAME, false, null);
          Method langAccess = sharedSecrets.getMethod("getJavaLangAccess");
          return langAccess.invoke(null);
        } catch (ThreadDeath death) {
          throw death;
        } catch (Throwable t) {
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/StringUtil.java

        static {
            try {
                final Class<?> sharedSecretsClass = Class.forName("sun.misc.SharedSecrets");
                javaLangAccess = sharedSecretsClass.getDeclaredMethod("getJavaLangAccess").invoke(null);
                final Class<?> javaLangAccessClass = Class.forName("sun.misc.JavaLangAccess");
                newStringUnsafeMethod = javaLangAccessClass.getMethod("newStringUnsafe", char[].class);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 21.9K bytes
    - Viewed (0)
Back to top