From 7eb1147daa38db6809b235bc8efa688e1c7a8cba Mon Sep 17 00:00:00 2001 From: Constantin Nickel Date: Sat, 4 Apr 2015 04:02:24 +0200 Subject: [PATCH] Use ClassLoader of dao interface for proxy --- src/main/java/com/iciql/DaoProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 implements InvocationHandler, Dao { throw new IciqlException("Dao {0} must be an interface!", daoInterface.getName()); } - ClassLoader classLoader = db.getClass().getClassLoader(); + ClassLoader classLoader = daoInterface.getClassLoader(); Set> interfaces = new HashSet>(); interfaces.add(Dao.class); -- 2.39.5