We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cfcd39 commit 237eb5fCopy full SHA for 237eb5f
src/java/nginx/clojure/Coroutine.java
@@ -380,8 +380,7 @@ private boolean isInstrumented(Runnable proto) {
380
public static void prepareNative() {
381
useNative = true;
382
try {
383
- nativeCoroutineBuilder = (NativeCoroutineBuilder) Thread.currentThread().getContextClassLoader()
384
- .loadClass("nginx.clojure.NativeCoroutineBuilderImp").newInstance();
+ nativeCoroutineBuilder = (NativeCoroutineBuilder) Coroutine.class.forName("nginx.clojure.NativeCoroutineBuilderImp").newInstance();
385
} catch (Throwable e) {
386
throw new IllegalStateException("can not load nginx.clojure.NativeCoroutineBuilderImp", e);
387
}
0 commit comments