[weld-issues] [JBoss JIRA] Updated: (WELD-944) Improve error message for missing class of interceptor or decorator.

Ondrej Zizka (JIRA) jira-events at lists.jboss.org
Mon Jul 18 10:04:23 EDT 2011


     [ https://issues.jboss.org/browse/WELD-944?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ondrej Zizka updated WELD-944:
------------------------------

    Affects Version/s: 1.1.1.Final
          Component/s: Interceptors and Decorators


> Improve error message for missing class of interceptor or decorator.
> --------------------------------------------------------------------
>
>                 Key: WELD-944
>                 URL: https://issues.jboss.org/browse/WELD-944
>             Project: Weld
>          Issue Type: Enhancement
>          Components: Interceptors and Decorators
>    Affects Versions: 1.1.1.Final
>            Reporter: Ondrej Zizka
>
> Based on WELD-940:
> When an interceptor or decorator is defined in beans.xml, but the class is missing, current error message is a bit misleading:
> {quote}
> WELD-001417 Enabled interceptor class <class>org.jboss.weld.environment.se.jpa.JpaTransactionInterceptor</class> in jar:file:/mnt/ssd1/data/.m2/repository/org/jboss/jawabot/JawaBot-core/2.0.0-SNAPSHOT/JawaBot-core-2.0.0-SNAPSHOT.jar!/META-INF/beans.xml at 11 is neither annotated @Interceptor nor registered through a portable extension
>         at org.jboss.weld.bootstrap.Validator.validateEnabledInterceptorClasses(Validator.java:466)
> {quote}
> Maybe we should check whether the class is loaded, and if not, log WARN or ERROR about it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list