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:08:12 UTC

[jira] [Created] (OWB-764) constructor with multiple InjectionPoints cause Exception

Mark Struberg created OWB-764:
---------------------------------

             Summary: 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.0.1


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