- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 56 for classLoader (0.19 seconds)
-
src/test/java/org/codelibs/fess/thumbnail/impl/HtmlTagBasedGeneratorTest.java
HtmlTagBasedGenerator generator = new HtmlTagBasedGenerator(); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); File outputFile = File.createTempFile("generator_", ".png"); String imagePath = "thumbnail/600x400.png"; try (ImageInputStream input = ImageIO.createImageInputStream(classLoader.getResourceAsStream(imagePath))) { generator.saveImage(input, outputFile);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.5K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.build-logic.groovy-dsl-gradle-plugin.gradle.kts
tasks.withType<Test>().configureEach { val testVersionProvider = javaLauncher.map { it.metadata.languageVersion } jvmArgumentProviders.add(CommandLineArgumentProvider { //allow ProjectBuilder to inject legacy types into the system classloader if (testVersionProvider.get().canCompileOrRun(9)) { listOf("--add-opens", "java.base/java.lang=ALL-UNNAMED") } else { emptyList() } })
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Jan 30 15:37:56 GMT 2026 - 2.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
@AndroidIncompatible // "Parent ClassLoader may not be null"; maybe avoidable if we try? public void testGetChecked_classUnloading() throws Exception { WeakReference<?> classUsedByGetChecked = doTestClassUnloading(); GcFinalization.awaitClear(classUsedByGetChecked); } /** * Loads {@link WillBeUnloadedException} in a separate {@code ClassLoader}, calls {@code
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
@AndroidIncompatible // "Parent ClassLoader may not be null"; maybe avoidable if we try? public void testGetChecked_classUnloading() throws Exception { WeakReference<?> classUsedByGetChecked = doTestClassUnloading(); GcFinalization.awaitClear(classUsedByGetChecked); } /** * Loads {@link WillBeUnloadedException} in a separate {@code ClassLoader}, calls {@code
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 16.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
* @throws ClassNotFoundRuntimeException * If the class cannot be found * @see Class#forName(String, boolean, ClassLoader) */ @SuppressWarnings("unchecked") public static <T> Class<T> forName(final String className, final ClassLoader loader) throws ClassNotFoundRuntimeException { assertArgumentNotEmpty("className", className); try {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 25.6K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt
} /** * The build environment. * * WARNING: Every val in here must not change for they same daemon. If it does, changes will go undetected, * since this whole object is kept in the classloader between builds. * Anything that changes must be in a val with a get() method that recomputes the value each time. */ object BuildEnvironment { /**
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 25 08:51:12 GMT 2026 - 4.9K bytes - Click Count (1) -
guava-tests/test/com/google/common/io/ResourcesTest.java
// Now set the context loader to one that should find the resource. URL baseUrl = tempFile.getParentFile().toURI().toURL(); URLClassLoader loader = new URLClassLoader(new URL[] {baseUrl}); ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(loader); URL url = Resources.getResource(tempFile.getName());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/concurrent/CommonPoolUtil.java
*/ public static void execute(final Runnable task) { ForkJoinPool.commonPool().execute(() -> { final Thread currentThread = Thread.currentThread(); final ClassLoader orignal = currentThread.getContextClassLoader(); currentThread.setContextClassLoader(CommonPoolUtil.class.getClassLoader()); try { task.run(); } catch (final Exception e) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 1.7K bytes - Click Count (0) -
android/guava/src/com/google/common/base/FinalizableReferenceQueue.java
} if (isAndroid()) { // We need not worry about class unloading under Android. Plus, this approach wouldn't work. return null; } ClassLoader systemLoader; try { systemLoader = ClassLoader.getSystemClassLoader(); } catch (SecurityException e) { logger.info("Not allowed to access system class loader."); return null; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 19:26:59 GMT 2026 - 15.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ResourcesTest.java
// Now set the context loader to one that should find the resource. URL baseUrl = tempFile.getParentFile().toURI().toURL(); URLClassLoader loader = new URLClassLoader(new URL[] {baseUrl}); ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(loader); URL url = Resources.getResource(tempFile.getName());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0)