Register JarUrlClassLoader as parallel capable

See gh-41665
This commit is contained in:
rajin 2024-08-01 18:43:12 +09:00 committed by Andy Wilkinson
parent cc88a1db97
commit c808d44c11
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ import org.springframework.boot.loader.launch.LaunchedClassLoader;
*/
public abstract class JarUrlClassLoader extends URLClassLoader {
static {
ClassLoader.registerAsParallelCapable();
}
private final URL[] urls;
private final boolean hasJarUrls;