|
From: Chris N. <ch...@si...> - 2004-06-24 23:33:14
|
Norris, Tyson wrote: > (Using the CVS version 1.8 Cglib2ApoProxy) I get everything to work fine > with the test case I mentioned below even when both proxies are advised, > unless I remove the equals() method from TestBean. [snip] > So, my question is - why should this affect whether CGLIB can cache the > generated class? I'm back to not understanding if the problem is in > CGLIB, or Cglib2AopProxy. (or, maybe I'm missing some understanding, and > the equals method on my beans truly is required...) The new ProxyCallbackFilter class still uses AopProxyUtils.equalsInProxy in its equals method. equalsInProxy uses equality of the AdvisedSupport TargetSource. Depending on the implementation of TargetSource being used, I think this means it *is* possible for your target bean's equals method to affect CGLIB caching behavior. I'm not qualified to say whether this is desirable or not. Chris |