- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for URLClassLoader (0.2 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
*/ package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; import java.lang.reflect.Method; import java.net.URLClassLoader; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CancellationException; import java.util.concurrent.Executor; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java
} return urls.build().toArray(new URL[0]); } /** Returns the URLs in the class path. */ static URL[] getClassPathUrls() { return ClassPathUtil.class.getClassLoader() instanceof URLClassLoader ? ((URLClassLoader) ClassPathUtil.class.getClassLoader()).getURLs() : parseJavaClassPath(); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Sep 13 20:26:15 GMT 2017 - 2.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
// cleared. @J2ktIncompatible @GwtIncompatible // weak references 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);
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) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
} @AndroidIncompatible // Android forbids null parent ClassLoader 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))
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Jul 07 16:50:33 GMT 2023 - 24.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
} @AndroidIncompatible // Android forbids null parent ClassLoader 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))
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) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureCancellationCauseTest.java
*/ package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; import java.lang.reflect.Method; import java.net.URLClassLoader; import java.util.HashMap; import java.util.Map; import java.util.concurrent.CancellationException; import java.util.concurrent.Executor; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java
URLClassLoader sepLoader = new URLClassLoader(getClassPathUrls(), myLoader.getParent()); // sepLoader is the loader that we will use to load the parallel FinalizableReferenceQueue (FRQ) // and friends, and that we will eventually expect to see garbage-collected. The assumption // is that the ClassLoader of this test is a URLClassLoader, and that it loads FRQ itself
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 16 03:24:50 GMT 2021 - 13.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderIteratorTest.java
import static org.junit.Assert.assertThat; import java.net.URL; import java.net.URLClassLoader; import org.junit.Test; /** * @author koichik */ public class ClassLoaderIteratorTest { /** * @throws Exception */ @Test public void test() throws Exception { final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null);
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractFutureInnocuousThreadTest.java
* See the License for the specific language governing permissions and * limitations under the License. */ package com.google.common.util.concurrent; import java.net.URLClassLoader; import java.security.Permission; import java.util.HashMap; import java.util.Map; import java.util.PropertyPermission; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ForkJoinPool;
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) -
src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java
*/ @Test public void testIsAncestor() throws Exception { final ClassLoader cl1 = new URLClassLoader(new URL[] { new URL("file:/foo") }, null); final ClassLoader cl2 = new URLClassLoader(new URL[] { new URL("file:/bar") }, cl1); final ClassLoader cl3 = new URLClassLoader(new URL[] { new URL("file:/baz") }, cl2); assertThat(ClassLoaderUtil.isAncestor(cl3, cl2), is(true));
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3K bytes - Viewed (0)