JGiven icon indicating copy to clipboard operation
JGiven copied to clipboard

INFO-level errors from CglibAopProxy when using proxy stages

Open catchin opened this issue 8 years ago • 1 comments

When using Spring proxies as stages (as has been implemented in #254), INFO-level errors from CglibAopProxy show up when executing tests. To reproduce, run com.tngtech.jgiven.integration.spring.test.proxy.SpringProxyTest

The following errors are displayed: [main] INFO org.springframework.aop.framework.CglibAopProxy - Unable to proxy method [final java.lang.String com.tngtech.jgiven.integration.spring.test.proxy.GivenTestStageWithAspect$ByteBuddy$wTRzok1X.toString$accessor$dBOwc753()] because it is final: All calls to this method via a proxy will NOT be routed to the target instance. [main] INFO org.springframework.aop.framework.CglibAopProxy - Unable to proxy method [final boolean com.tngtech.jgiven.integration.spring.test.proxy.GivenTestStageWithAspect$ByteBuddy$wTRzok1X.equals$accessor$dBOwc753(java.lang.Object)] because it is final: All calls to this method via a proxy will NOT be routed to the target instance. ...

The tests are executed successfully, but still, the info message is a bit unnerving...

catchin avatar Jan 13 '17 09:01 catchin

Yes. That is really annoying. I hope anything can be done here.

janschaefer avatar Jan 19 '17 10:01 janschaefer