Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@annotation won't work if the Aspect is scoped with perthis [SPR-10934] #15562

Closed
spring-issuemaster opened this issue Sep 24, 2013 · 2 comments
Closed

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Sep 24, 2013

Eberhard Wolff opened SPR-10934 and commented

@annotation won't work if the aspect is scoped with perthis. See the class AroundAdvice in the attached project. mvn test fails:

SEVERE: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@fc61093] to prepare test instance [atannotationbug.AtAnnotatioBugTest@146a2afc]
java.lang.IllegalStateException: Failed to load ApplicationContext
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'atAnnotationBugConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is java.lang.IllegalArgumentException: error Type referred to is not an annotation type: a
....
Caused by: java.lang.IllegalArgumentException: error Type referred to is not an annotation type: a
	at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:301)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:208)

If you use @Aspect() without a scoping the test works.


Affects: 3.2.4

Attachments:

Referenced from: commits spring-projects/spring-framework-issues@d63a88e

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented May 5, 2014

Stéphane Nicoll commented

The repro project has been updated to the latest Spring version and added to our repro github repo:
https://github.com/spring-projects/spring-framework-issues/tree/master/SPR-10934

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jan 12, 2019

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.