Mark Struberg created OWB-987:
---------------------------------
Summary: improve getReference type handling
Key: OWB-987
URL: https://issues.apache.org/jira/browse/OWB-987
Project: OpenWebBeans
Issue Type: Improvement
Affects Versions: 1.2.6
Reporter: Mark Struberg
Assignee: Mark Struberg
Priority: Minor
Fix For: 2.0.0
If no specific bean type is given for getReference we currently use
bean.getBeanClass(). But this is actually wrong for producer methods and
producer fields as those will return the containing class.
This is only a minor enhancement as it only hits us if we enter the
getEjbOrJmsProxyReference path. This gets used if we @Inject a pure EJB in
which case the EJB container might not even take this information into account.
--
This message was sent by Atlassian JIRA
(v6.2#6252)