[weld-issues] [JBoss JIRA] Reopened: (WELD-318) Wrapping InjectionTarget does not work for Beans with a Producer field
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Wed Jan 13 20:45:30 EST 2010
[ https://jira.jboss.org/jira/browse/WELD-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Douglas reopened WELD-318:
---------------------------------
Assignee: Stuart Douglas (was: Pete Muir)
It is non deterministic, if the producer field is initilised after the bean AbstractProducerBean.initialize calls getDeclaringBean().initialize(environment) which overrides the InjectionTarget.
The test for isInitialized() at the start of the ManagedBean.inilize(environment) call is supposed to prevent this however initialized is never set to true, so this doesn't work. I will commit a fix tonight.
> Wrapping InjectionTarget does not work for Beans with a Producer field
> ----------------------------------------------------------------------
>
> Key: WELD-318
> URL: https://jira.jboss.org/jira/browse/WELD-318
> Project: Weld
> Issue Type: Bug
> Components: Bootstrap and Metamodel API
> Reporter: Stuart Douglas
> Assignee: Stuart Douglas
> Fix For: 1.0.1.CR1
>
>
> I am trying to wrap InjectionTarget to set field values at bean creation time. This works perfectly unless the bean has a producer field.
> When the bean has a producer the InjectionTarget.postConstruct is never called (even though the PostConstruct method on the bean is called).
--
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