[
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