![]() |
|
|
|
|
Issue Type:
|
Enhancement
|
|
Affects Versions:
|
2.1.0.Final |
|
Assignee:
|
Jozef Hartinger
|
|
Components:
|
Interceptors and Decorators, Resolution |
|
Created:
|
30/Oct/13 8:57 AM
|
|
Description:
|
When a bean archive is set to bean-discovery-mode="annotated" and an @Interceptor does not have @Dependent, the error message is very misleading (and incorrect): WELD-001417: Enabled interceptor class <class>nl.topicus.digdag.bean.rest.RequestClosingInterceptor</class> in vfs:/home/papegaaij/wildfly-8.0.0.Beta2-SNAPSHOT/standalone/deployments/digdag-authenticator.war/WEB-INF/lib/digdag-common-1.2-SNAPSHOT.jar/META-INF/beans.xml@6 is neither annotated @Interceptor nor registered through a portable extension
The class does have the @Interceptor annotation, but is not loaded as a bean, due to the missing @Dependent annotation. I'd expect WELD to report that the class does not have @Dependent. Perhaps WELD can check if the class is available and actually check the annotations and report accordingly?
|
|
Environment:
|
Wildfly master build on 2013-10-24
|
|
Project:
|
Weld
|
|
Priority:
|
Minor
|
|
Reporter:
|
Emond Papegaaij
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues