You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2013/01/01 18:54:12 UTC
[jira] [Resolved] (OWB-723) Interceptors doesn't work for beans got
from stereotype annotated producer methods
[ https://issues.apache.org/jira/browse/OWB-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OWB-723.
-------------------------------
Resolution: Won't Fix
Fix Version/s: 1.1.8
> Interceptors doesn't work for beans got from stereotype annotated producer methods
> ----------------------------------------------------------------------------------
>
> Key: OWB-723
> URL: https://issues.apache.org/jira/browse/OWB-723
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.6
> Reporter: Marco Lübcke
> Assignee: Arne Limburg
> Fix For: 1.1.8
>
> Attachments: stereotyped_producer_tests.diff
>
>
> Openwebbeans breaks CDI specs, if a producer method is annotated with a stereotype, which includes interceptors. The produced beans won't be intercepted.
> A first debugging shows, that the error may be in org.apache.webbeans.intercept.InterceptorHandler.invoke(Object, Method, Object[], CreationalContextImpl<?>):231:
> ---
> if (!isNotInterceptedOrDecoratedMethod &&
> !ClassUtil.isObjectMethod(methodName) && bean instanceof InjectionTargetBean<?>)
> ---
> The bean is of type {{ProducerMethodBean}}, which is not an instance of {{InjectionTargetBean}}, the if-block won't be executed.
> Attached you'll find a test case.
--
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