Interception on constructor causes ClassNotFoundException
问题 I'm trying to intercept constructors annotated with @Inject . That worked fine in the context of a small unit test. However in the context of a DI container like Spring it fails with a ClassNotFoundException . I managed to narrow down on the root cause. Calling getDeclaredConstructors on the instrumented class will trigger this exception. Interestingly enough, if we first create an instance of that class, the problem disappears. For example: public class InterceptConstructorTest { @Test