You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2014/07/25 10:32:39 UTC

[jira] [Created] (OWB-987) improve getReference type handling

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)