Remove now unnecessary override of createClassLoader

Resolves #810
This commit is contained in:
onobc
2022-02-13 10:20:02 -06:00
committed by Oleg Zhurakousky
parent f96f612721
commit 59d02ed652

View File

@@ -20,7 +20,6 @@ import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -159,13 +158,6 @@ class FunctionArchiveDeployer extends JarLauncher {
}
}
// TODO remove this method all together once https://github.com/spring-projects/spring-boot/pull/20851 is addressed
@Override
protected ClassLoader createClassLoader(Iterator<Archive> archives) throws Exception {
URLClassLoader cl = (URLClassLoader) super.createClassLoader(archives);
return this.createClassLoader(cl.getURLs());
}
@Override
protected ClassLoader createClassLoader(URL[] urls) throws Exception {
String classAsPath = DeployerContextUtils.class.getName().replace('.', '/') + ".class";