Reinstate LaunchedURLClassLoader's registration as parallel capable

Closes gh-7334
This commit is contained in:
dreis 2016-11-07 17:35:54 +01:00 committed by Andy Wilkinson
parent adfc5d22ca
commit 7a797909ae
1 changed files with 4 additions and 0 deletions

View File

@ -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