Skip to content

Commit

Permalink
Fixed: ServiceLoader wasn't resolving correctly if no service loader …
Browse files Browse the repository at this point in the history
…classloader was specified.
  • Loading branch information
cbeust committed Aug 8, 2011
1 parent 10a202a commit f38bbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Added: Injectors created by the @Guice annotation are now shared at the <test> 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
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/testng/TestNG.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<ITestNGListener> loader =
(Iterable<ITestNGListener>) loadMethod.invoke(c, parameters.toArray());
Expand Down

0 comments on commit f38bbfa

Please sign in to comment.