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 165b21b commit 29f9f0aCopy full SHA for 29f9f0a
src/main/java/org/seasar/doma/jdbc/ClassHelper.java
@@ -42,7 +42,7 @@ public interface ClassHelper {
42
default <T> Class<T> forName(String className) throws Exception {
43
try {
44
@SuppressWarnings("unchecked")
45
- Class<T> clazz = (Class<T>) Class.forName(className);
+ Class<T> clazz = (Class<T>) Thread.currentThread().getContextClassLoader().loadClass(className);
46
return clazz;
47
} catch (ClassNotFoundException e) {
48
throw new WrapException(e);
0 commit comments