This content has been marked as final.
Show 4 replies
-
1. Re: Abstract method and Interceptor
v.masterov Dec 18, 2011 2:08 AM (in response to v.masterov)My Environment:
Jboss AS 7.0.2 with Weld 1.0.4.Final, Seam 3.1-SNAPSHOT -
2. Re: Abstract method and Interceptor
jharting Jan 10, 2012 4:04 AM (in response to v.masterov)Have you considered adding @Inherited to the definition of the @Simple annotation?
-
3. Re: Abstract method and Interceptor
v.masterov Jan 10, 2012 12:22 PM (in response to v.masterov)Yes, I have tried this, but without any improvement.
-
4. Re: Abstract method and Interceptor
jharting Jan 11, 2012 9:03 AM (in response to v.masterov)I can reproduce your problem. However, this behavior is required by the specification. It says:
Suppose a class X is extended directly or indirectly by the bean class of a managed bean or session bean Y.
If X (AbstractSimpleBean in your case) declares a non-static method x() annotated with an interceptor binding type Z (@Simple in your case) then Y (SimpleBean) inherits the binding if and only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x().