Overview

I have a JUnit test which calls a method which in turn uses @annotation call to aspect class.

This setup is working well in spring 6.0.23 version but not in 6.2.6, as @annotation call is not getting triggered and so JUnit test cases are fail for all aspect-related cases.

Kindly help to resolve this issue.

Versions Used

Before upgrade

  • aspectjrt, aspectjweaver: 1.8.7
  • spring-aspect, other spring jars: 6.0.23
  • junit-jupiter: 5.11.0

After upgrade

  • aspectjrt, aspectjweaver: 1.9.24
  • spring-aspect, other spring jars: 6.2.6
  • junit-jupiter: 5.12.2

Comment From: Emil-Stampfly-He

Could you please provide your case with more details because mine is working without any problem, or I simply missed something. Thank you!

Comment From: sbrannen

Hi @AmuthaKondusamy,

Congratulations on submitting your first issue for the Spring Framework! 👍

Unfortunately, a description of the problem is not enough to go on.

As @Emil-Stampfly-He pointed out, if you would like for us to investigate this, please provide a minimal sample application which demonstrates what worked with Spring Framework 6.0.23 and no longer works with Spring Framework 6.2.x.

The sample application can be a ZIP file attached to this issue or a public Git repository -- for example, a Spring Boot application created via https://start.spring.io.

Thanks

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.