Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for URLClassLoader (0.05 sec)

  1. guava-tests/test/com/google/common/reflect/ClassPathTest.java

      public void testClassPathEntries_urlClassLoader_withParent() throws Exception {
        URL url1 = new URL("file:/a");
        URL url2 = new URL("file:/b");
        URLClassLoader parent = new URLClassLoader(new URL[] {url1}, null);
        URLClassLoader child = new URLClassLoader(new URL[] {url2}, parent) {};
        assertThat(ClassPath.getClassPathEntries(child))
            .containsExactly(new File("/a"), parent, new File("/b"), child)
            .inOrder();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

      public void testClassPathEntries_urlClassLoader_withParent() throws Exception {
        URL url1 = new URL("file:/a");
        URL url2 = new URL("file:/b");
        URLClassLoader parent = new URLClassLoader(new URL[] {url1}, null);
        URLClassLoader child = new URLClassLoader(new URL[] {url2}, parent) {};
        assertThat(ClassPath.getClassPathEntries(child))
            .containsExactly(new File("/a"), parent, new File("/b"), child)
            .inOrder();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 23K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/EnumsTest.java

      // (and therefore its ClassLoader) from being unloaded, then this WeakReference will never be
      // cleared.
      @J2ktIncompatible
      private WeakReference<?> doTestClassUnloading() throws Exception {
        URLClassLoader shadowLoader = new URLClassLoader(getClassPathUrls(), null);
        @SuppressWarnings("unchecked")
        Class<TestEnum> shadowTestEnum =
            (Class<TestEnum>) Class.forName(TestEnum.class.getName(), false, shadowLoader);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java

    import java.lang.ref.Cleaner.Cleanable;
    import java.lang.ref.Reference;
    import java.lang.ref.ReferenceQueue;
    import java.lang.ref.WeakReference;
    import java.net.ServerSocket;
    import java.net.URL;
    import java.net.URLClassLoader;
    import java.util.Set;
    import java.util.concurrent.atomic.AtomicBoolean;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    import org.junit.After;
    import org.junit.Test;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top