[ 
https://issues.apache.org/jira/browse/OWB-340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Carman updated OWB-340:
-----------------------------

    Attachment: OWB-340.patch

Here's a patch that gets rid of the immediate exceptions for when there is not 
exactly one suitable constructor found.  If the constructor is null when 
someone tries to use it, we throw an exception at that point.  The only problem 
here is that we don't convey the fact that there could be multiple suitable 
constructors found.  It merely says "No suitable constructor found for bean 
<blah>."

> BeanManagerImpl.createInjectionTarget() Throws Exception When No Constructor 
> Found
> ----------------------------------------------------------------------------------
>
>                 Key: OWB-340
>                 URL: https://issues.apache.org/jira/browse/OWB-340
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.0
>            Reporter: James Carman
>            Assignee: Gurkan Erdogdu
>         Attachments: OWB-340.patch
>
>
> Instead of throwing an exception, we should just return an InjectionTarget 
> object that returns an empty set of AnnotatedConstructors from 
> getConstructors().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to