[
https://issues.apache.org/jira/browse/OWB-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bergmark closed OWB-302.
----------------------------
Resolution: Not A Problem
This appears to be the correct behavior based on the way we have Decorators
implemented.
To summarize, Decorators are not directly injected into the InjectionPoint that
resolves to the Bean they decorate. As they are not injected, then @Inject
InjectionPoint should be null inside a Decorator. Similarly the second
Decorator in the chain is not directly injected into the first, so @Inject
InjectionPont should also be null inside subsequent Decorators.
Instead we have a MethodHandler that gets called when the decorated bean is
invoked that handles the call stack for the Decorator chain.
This approach seems to break the way the TCK is trying to verify the Decorator
call stack.
> InjectionPoint injections (both method and field based) in Decorators result
> in null
> ------------------------------------------------------------------------------------
>
> Key: OWB-302
> URL: https://issues.apache.org/jira/browse/OWB-302
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Interceptor and Decorators
> Affects Versions: M3
> Reporter: Joe Bergmark
> Assignee: Joe Bergmark
> Fix For: 1.0.0
>
>
> InjectionPoint injections in Decorators result in null. This appears to be a
> recent behavior change, previously the
> javax.enterprise.inject.spi.InjectionPoint would be injected but would
> reference the Decorator itself rather than the bean it was decorating.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.