Skip to content

Commit

Permalink
Change class loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiang Zhong committed Jun 10, 2022
1 parent 2274df6 commit b63abe3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static <T> T createQueryEntity(Class<T> cl) throws InstantiationException
.method(ElementMatchers.not(ElementMatchers.isClone().or(ElementMatchers.isFinalizer()).or(ElementMatchers.isEquals()).or(ElementMatchers.isHashCode()).or(ElementMatchers.isToString())))
.intercept(MethodDelegation.to(new MyMethodInterceptor()))
.make()
.load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
.load(GenerateQuery.class.getClassLoader(), ClassLoadingStrategy.Default.WRAPPER)
.getLoaded();
}
return (T) proxied.newInstance();
Expand Down

0 comments on commit b63abe3

Please sign in to comment.