[weld-issues] [JBoss JIRA] Closed: (WELD-459) Class-level interceptor for a final class or method-interceptor for a final method not detected as a definition error

Pete Muir (JIRA) jira-events at lists.jboss.org
Sun Aug 15 21:20:12 EDT 2010


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

Pete Muir closed WELD-459.
--------------------------

    Fix Version/s: 1.1.0.BETA1
                       (was: 1.1.0.BETA2)
       Resolution: Done


> Class-level interceptor for a final class or method-interceptor for a final method not detected as a definition error
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: WELD-459
>                 URL: https://jira.jboss.org/browse/WELD-459
>             Project: Weld
>          Issue Type: Bug
>          Components: Interceptors and Decorators
>    Affects Versions: 1.0.1.Final
>            Reporter: Ondrej Skutka
>            Assignee: Marius Bogoevici
>             Fix For: 1.1.0.BETA1
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> Spec says:
> If the bean class of a managed bean declares or inherits a class level interceptor binding or a stereotype with interceptor
> bindings, it must not be declared final, or have any non-static, non-private, final methods. If a managed bean has a class-
> level interceptor binding and is declared final or has a non-static, non-private, final method, the container automatically
> detects the problem and treats it as a definition error.
> If a non-static, non-private method of a bean class of a managed bean declares a method level interceptor binding, neither
> the method nor the bean class may be declared final. If a non-static, non-private, final method of a managed bean has a
> method level interceptor binding, the container automatically detects the problem and treats it as a definition error.
> org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalClassClassLevelInterceptorTest
> org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalClassMethodLevelInterceptorTest
> org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalMethodClassLevelInterceptorTest
> org.jboss.jsr299.tck.tests.interceptors.definition.broken.finalClassInterceptor.FinalMethodMethodLevelInterceptorTest
> In the TCK trunk

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list