diff --git a/CHANGES.txt b/CHANGES.txt index 61c7bc9025..044fee1068 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -6,6 +6,7 @@ Added: Injectors created by the @Guice annotation are now shared at the l Added: IConfigurationListener is now a public listener Added: When a method fails, only dependents of the same instance will be skipped Added: parallel=instances for factory instance parallel runs +Fixed: ServiceLoader wasn't resolving correctly if no service loader classloader was specified Fixed: Better ordering with mixed priorities and dependencies Fixed: Improved detection of graph cycles in parallel runs Fixed: @BeforeTest was invoked multiple times if a factory is used diff --git a/src/main/java/org/testng/TestNG.java b/src/main/java/org/testng/TestNG.java index fb82d89244..c426492854 100644 --- a/src/main/java/org/testng/TestNG.java +++ b/src/main/java/org/testng/TestNG.java @@ -920,7 +920,7 @@ private void addServiceLoaderListeners() { parameters.add(m_serviceLoaderClassLoader); loadMethod = c.getMethod("load", Class.class, ClassLoader.class); } else { - loadMethod = c.getMethod("load"); + loadMethod = c.getMethod("load", Class.class); } Iterable loader = (Iterable) loadMethod.invoke(c, parameters.toArray());