Arbitrary bean wrapping does not work for Spring Data JPA
jonatan-ivanov opened this issue · comments
If I create a Spring Data Repository
(e.g.: public interface AbcRepository extends PagingAndSortingRepository<Abc, UUID>
), and set chaos.monkey.watcher.beans
(i.e.: abcRepository), it seems ChaosMonkeyBeanPostProcessor
does not wrap the bean properly (the proxy is the same as the original bean according to the debugger).
Expected Behavior
Setting chaos.monkey.watcher.beans
on Spring Data's Repository
bean should result in wrapping the bean.
Current Behavior
The bean is not wrapped.
Possible Solution
I did not dig that deep, so no idea at the moment.
Steps to Reproduce
I have a reproducer here but chaos-monkey needs to be enabled and chaos.monkey.watcher.beans
set.
Context (Environment)
Spring Boot 2.7.0
Temurin-18+36 (build 18+36)
As this also works in a simpler project, I'm going to assume this is the same issue as #317