> If your target class does not implement an interface Spring uses the CGLIB > library to generate a subclass to the target class > When creating the subclass Spring creates > Advice > delegates calls for subclass to Target class > you will need to deploy all of cglib to lib/cglib folder > > if the target object uses interfaces to implement the methods you will need > to use java.lang.reflect.Proxy methods marked as final cannot be advised > > Martin Gainty > > > From: [email protected] > > Date: Mon, 6 Jul 2009 12:21:44 -0700 > > Subject: Re: surefire and spring - Autowiring of methods failed > > To: [email protected] > > > > I've run into the same problem with Cobertura and Spring - what seemed to > > fix it was, in the context file, changing <aop:config> to <aop:config > > proxy-target-class="true">. I'm not entirely sure *why* that worked (I > > dealt with this a couple months ago, and it required a *lot* of googling > > to get any kind of idea of what to do, so I don't remember all the > > details), but that did the trick. > > > > A.
Hello all. That its, I'm using proxy-target-class="true" to force to use CGLib proxy, that do the trick as you suggested. Certainly I'm not going to implement a Interface for this class, I don't expected extend or create other subclases based on this, so for know I will to override the proxy-target-class="true" in the test cases to avoid the issue with Cobertura. thanks for every answerd. -- Cheers. Carlos Chávez. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
