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 2013/01/20 17:28:12 UTC
[jira] [Resolved] (OWB-764) constructor with multiple
InjectionPoints cause Exception
[ https://issues.apache.org/jira/browse/OWB-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg resolved OWB-764.
-------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.0.1)
1.2.0
> constructor with multiple InjectionPoints cause Exception
> ---------------------------------------------------------
>
> Key: OWB-764
> URL: https://issues.apache.org/jira/browse/OWB-764
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.0
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 1.2.0
>
>
> Currently we get the following Exception for a bean which has:
> @Inject
> public BeanWithTwoParamInjectConstructor(User user, Administrator administrator)
> java.lang.IllegalArgumentException: More than one constructor found for injection: public org.apache.webbeans.newtests.injection.constructor.beans.BeanWithTwoParamInjectConstructor(org.apache.webbeans.newtests.injection.constructor.beans.User,org.apache.webbeans.newtests.injection.constructor.beans.Administrator) and Annotated Parameter,Base Type : class org.apache.webbeans.newtests.injection.constructor.beans.User,Type Closures : null,Annotations : [],Position : 0
> at org.apache.webbeans.portable.InjectionTargetImpl.createConstructor(InjectionTargetImpl.java:415)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira