From 7a797909aedd180bad12cbc5cf0656c594b27e12 Mon Sep 17 00:00:00 2001 From: dreis Date: Mon, 7 Nov 2016 17:35:54 +0100 Subject: [PATCH] Reinstate LaunchedURLClassLoader's registration as parallel capable Closes gh-7334 --- .../springframework/boot/loader/LaunchedURLClassLoader.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/LaunchedURLClassLoader.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/LaunchedURLClassLoader.java index 0ac84d8765..4d70a94f80 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/LaunchedURLClassLoader.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/LaunchedURLClassLoader.java @@ -37,6 +37,10 @@ import org.springframework.boot.loader.jar.Handler; */ public class LaunchedURLClassLoader extends URLClassLoader { + static { + ClassLoader.registerAsParallelCapable(); + } + /** * Create a new {@link LaunchedURLClassLoader} instance. * @param urls the URLs from which to load classes and resources