From: <one...@us...> - 2003-04-15 04:19:20
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/proxy In directory sc8-pr-cvs1:/tmp/cvs-serv25173/hibernate/proxy Modified Files: CGLIBLazyInitializer.java Log Message: fixed 2 problems with proxies * interface proxies were not being used properly * some method invocations were not being properly proxied Index: CGLIBLazyInitializer.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/proxy/CGLIBLazyInitializer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CGLIBLazyInitializer.java 5 Apr 2003 07:48:45 -0000 1.5 --- CGLIBLazyInitializer.java 15 Apr 2003 04:19:17 -0000 1.6 *************** *** 25,29 **** try { return (HibernateProxy) Enhancer.enhance( ! persistentClass, interfaces, new CGLIBLazyInitializer(persistentClass, interfaces, id, getIdentifierMethod, session), --- 25,31 ---- try { return (HibernateProxy) Enhancer.enhance( ! (interfaces.length==1) ? ! persistentClass : ! null, interfaces, new CGLIBLazyInitializer(persistentClass, interfaces, id, getIdentifierMethod, session), |