[webbeans-issues] [JBoss JIRA] Updated: (WBRI-182) InjectionPoint is null when Manager injects Producer Class.

Takeshi Kondo (JIRA) jira-events at lists.jboss.org
Sat Mar 14 10:06:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/WBRI-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Takeshi Kondo updated WBRI-182:
-------------------------------

    Attachment: producer_manager_inject.patch


When Manager inject Manager instance to producer instance, ManagerImpl#currentInjectionPoint is removed. Then InjectionPoint is null.

I changed ManagerImpl#currentInjectionPoint in ThreadLocal to ThreadLocal stack.

> InjectionPoint is null when Manager injects Producer Class.
> -----------------------------------------------------------
>
>                 Key: WBRI-182
>                 URL: https://jira.jboss.org/jira/browse/WBRI-182
>             Project: Web Beans
>          Issue Type: Bug
>          Components: Producer beans
>    Affects Versions: 1.0.0.BETA1
>         Environment: java version "1.5.0_16"
>            Reporter: Takeshi Kondo
>         Attachments: producer_manager_inject.patch
>
>
> ----- sample code -----
> public class InjectManagerProducer {
> 	@Current
> 	Manager manager;
> 	@Produces
> 	Integer create(InjectionPoint point) {
> 		System.out.println(point);
> 		return 10;
> 	}
> }
> -----
> InjectManagerProducer#create method's parameter InjectionPoint is null , when Manager inject InjectManagerProducer class.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the weld-issues mailing list