diff options
-rw-r--r-- | src/main/java/com/iciql/DaoProxy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/iciql/DaoProxy.java b/src/main/java/com/iciql/DaoProxy.java index cafd6f7..d27753f 100644 --- a/src/main/java/com/iciql/DaoProxy.java +++ b/src/main/java/com/iciql/DaoProxy.java @@ -78,7 +78,7 @@ final class DaoProxy<X extends Dao> implements InvocationHandler, Dao { throw new IciqlException("Dao {0} must be an interface!", daoInterface.getName()); } - ClassLoader classLoader = db.getClass().getClassLoader(); + ClassLoader classLoader = daoInterface.getClassLoader(); Set<Class<?>> interfaces = new HashSet<Class<?>>(); interfaces.add(Dao.class); |