]> source.dussan.org Git - iciql.git/commitdiff
Use ClassLoader of dao interface for proxy 12/head
authorConstantin Nickel <nickel.c@supergonzo.com>
Sat, 4 Apr 2015 02:02:24 +0000 (04:02 +0200)
committerConstantin Nickel <nickel.c@supergonzo.com>
Sat, 4 Apr 2015 02:02:24 +0000 (04:02 +0200)
src/main/java/com/iciql/DaoProxy.java

index cafd6f7fe546d1dc7527eba19a3decf222a1c2c5..d27753f312d5a8f32826b91338ff71d12e2b0456 100644 (file)
@@ -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);