Having switched web application with XML spring configuration from Spring 5.1.11 to Spring 5.2.1 some beans are not woven with AspectJ Load Time Weaving anymore without providing additional javaagent.

Before:

On Apache Tomcat 9.0.20 and Caucho Resin 4.0.62 + Spring 5.1.11 - both application servers worked perfectly without specifying javaagents. Beans defined in XML + autoscan detected ones were woven successfully.

After:

  • Problem 1: beans from autoscan (with and without interfaces) are not woven anymore. Classes are loaded too early - before classloader is ready to apply aspects. Default load time weaver is not applied at that moment.

  • Problem 2: (behavior has not been changed but reasons are not clear) annotation configured beans without interfaces also cannot be woven. Classes are loaded too early, when no transformation can be done.

Reproduce the problem

Application which demonstrates the problem can be found here (with detailed description and results): Minimal Application to Reproduce the Problem

Comment From: sdeleuze

Hi, sorry for the delay, please let us know if you still need us to have a look to this, and if you do, please update the repro with the latest version of Spring Framework and Spring Boot.

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.