[ 
https://issues.apache.org/jira/browse/OWB-553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arne Limburg updated OWB-553:
-----------------------------

    Attachment: OWB-553.patch

Hi Mark,

I have a patch that works for me. it is against the 1.0.0-tag. And it needs 
some work to be done, since the methods isInstanceProviderInjection and 
isEventProviderInjection are copy-pasted from the AbstractInjectable class. 
They should be moved to somewhere central (WebBeansUtil?).

> Injection of javax.inject.Provider fails with OWBInjector
> ---------------------------------------------------------
>
>                 Key: OWB-553
>                 URL: https://issues.apache.org/jira/browse/OWB-553
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Injection and Lookup
>    Affects Versions: 1.0.0
>            Reporter: Arne Limburg
>            Assignee: Mark Struberg
>            Priority: Critical
>             Fix For: 1.2.0
>
>         Attachments: OWB-553.patch, provider-bug.zip
>
>
> When a javax.inject.Provider is injected with the OWBInjector access to 
> provider.get() results in a NullPointerException. The consequence is, that 
> javax.inject.Providers cannot be injected into ServletListeners, Servlets and 
> Filters (tested with Tomcat 6) and EJBs (guessed).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to