Skip to content

Commit 8459436

Browse files
committed
Use caller class class loader instead of context class loader. Fixes #25
1 parent e1ec942 commit 8459436

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

groovy/src/main/java/io/cucumber/groovy/GroovyBackend.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ static GroovyBackend getInstance() {
5353
return instanceThreadLocal.get();
5454
}
5555

56-
private static GroovyShell createShell() {
56+
private GroovyShell createShell() {
5757
CompilerConfiguration compilerConfig = new CompilerConfiguration();
58-
return new GroovyShell(Thread.currentThread().getContextClassLoader(), new Binding(), compilerConfig);
58+
return new GroovyShell(this.getClass().getClassLoader(), new Binding(), compilerConfig);
5959
}
6060

6161

0 commit comments

Comments
 (0)