From 9c9f2bd7c34e641f882d8111ab6c967549d3b4ce Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Fri, 28 Oct 2011 09:23:11 -0700 Subject: [PATCH] Making Sfl4jTestJarsRunner use its own classloader for loading the test --- .../org/eclipse/jetty/util/log/Slf4jTestJarsRunner.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/log/Slf4jTestJarsRunner.java b/jetty-util/src/test/java/org/eclipse/jetty/util/log/Slf4jTestJarsRunner.java index 1230e562dd5..f8469236360 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/log/Slf4jTestJarsRunner.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/log/Slf4jTestJarsRunner.java @@ -24,9 +24,9 @@ public class Slf4jTestJarsRunner extends BlockJUnit4ClassRunner { private static class Slf4jTestClassLoader extends URLClassLoader { - public Slf4jTestClassLoader(URL[] urls) + public Slf4jTestClassLoader(URL[] urls, ClassLoader parent) { - super(urls); + super(urls, parent); } @Override @@ -143,7 +143,7 @@ public class Slf4jTestJarsRunner extends BlockJUnit4ClassRunner System.out.println("Classpath entry: " + url); } - slf4jClassLoader = new Slf4jTestClassLoader(urls); + slf4jClassLoader = new Slf4jTestClassLoader(urls, original); } catch (MalformedURLException e) {