[
https://jira.jboss.org/browse/WELD-551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pete Muir closed WELD-551.
--------------------------
Resolution: Rejected
Apologies, I misunderstood your forum post.
Actually, Weld is correct, the spec says that for a producer getBeanClass()
must return the class of the declaring bean, not the return type of the
method/field.
You have no easy way to do this, but of course, for the example you show, you
could just use Object.class, and loose the validation that the type is correct.
> Produces bean's BeanClass is not right
> --------------------------------------
>
> Key: WELD-551
> URL: https://jira.jboss.org/browse/WELD-551
> Project: Weld
> Issue Type: Bug
> Components: Built-in beans
> Affects Versions: 1.0.2.CR1
> Reporter: he youlin
>
> see
> http://www.seamframework.org/Community/HowToGetProducesBeanInstanceInWeld102snapshot
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues