Files
spring-cloud-sleuth/spring-cloud-sleuth-core
Patrick Strawderman 94762465c6 Fix proxying of executors with final methods (#1385)
When proxying the various Executor interfaces in ExecutorbeanPostProcessor, the decision of whether or not to use a cglib proxy
was determined by checking if the bean's class is final, but final methods would also cause issues when using cglib. A common
example of such an implementation is DelegatingSecurityContextScheduledExecutorService, which has final methods.

To resolve the issue with ThreadPoolTaskExecutor, AsyncTaskExecutor, and ExecutorService, fall back to the JDK proxy if the
bean has any final methods.

fixes #1336
2019-07-02 10:04:34 +02:00
..