Skip to content

Commit 73a4387

Browse files
fix: Use current class loader for the ByteBuddy wrapper (#2172)
1 parent 3efeaeb commit 73a4387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/appium/java_client/proxy/Helpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static <T> T createProxy(
136136
.defineField("methodCallListeners", MethodCallListener[].class, Visibility.PRIVATE)
137137
.implement(HasMethodCallListeners.class).intercept(FieldAccessor.ofBeanProperty())
138138
.make()
139-
.load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
139+
.load(Helpers.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
140140
.getLoaded()
141141
.asSubclass(cls);
142142
});

0 commit comments

Comments
 (0)