JGiven
JGiven copied to clipboard
INFO-level errors from CglibAopProxy when using proxy stages
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...
Yes. That is really annoying. I hope anything can be done here.