Skip to content

Commit ef56ffa

Browse files
committed
fix: 修复FastBeanCopier可能报找不到类问题.
1 parent 88bbcfc commit ef56ffa

File tree

1 file changed

+2
-2
lines changed
  • hsweb-core/src/main/java/org/hswebframework/web/proxy

1 file changed

+2
-2
lines changed

hsweb-core/src/main/java/org/hswebframework/web/proxy/Proxy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Proxy<I> extends URLClassLoader {
3131
@Getter
3232
private final String classFullName;
3333

34-
private final List<ClassLoader> loaders = new ArrayList<>();
34+
private final Set<ClassLoader> loaders = new HashSet<>();
3535
private Class<I> targetClass;
3636

3737
@SneakyThrows
@@ -130,7 +130,7 @@ public Proxy(Class<I> superClass, Class<?>[] classPaths, String... classPathStri
130130
}
131131

132132
loaders.add(ClassUtils.getDefaultClassLoader());
133-
133+
loaders.add(Proxy.class.getClassLoader());
134134
classPool.insertClassPath(new LoaderClassPath(this));
135135

136136
className = superClass.getSimpleName() + "$Proxy" + counter.getAndIncrement();

0 commit comments

Comments
 (0)