Skip to content

Commit

Permalink
fix: Use current class loader for the ByteBuddy wrapper (#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored May 15, 2024
1 parent 3efeaeb commit 73a4387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/appium/java_client/proxy/Helpers.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static <T> T createProxy(
.defineField("methodCallListeners", MethodCallListener[].class, Visibility.PRIVATE)
.implement(HasMethodCallListeners.class).intercept(FieldAccessor.ofBeanProperty())
.make()
.load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
.load(Helpers.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
.getLoaded()
.asSubclass(cls);
});
Expand Down

0 comments on commit 73a4387

Please sign in to comment.