You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2010/12/29 22:17:45 UTC

[jira] Created: (OWB-510) return null instead of an unusable proxy if a resource is missing

return null instead of an unusable proxy if a resource is missing
-----------------------------------------------------------------

                 Key: OWB-510
                 URL: https://issues.apache.org/jira/browse/OWB-510
             Project: OpenWebBeans
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.0
            Reporter: David Jencks
            Assignee: Gurkan Erdogdu
             Fix For: 1.1.0


Currently if the ResourceInjectionService returns null for a resource we build a proxy that is guaranteed to never work.  I think this is really confusing for users.  Instead, as Mark suggested, lets return null if the resource is null.  In addition, the ResourceInjectionService implementation can throw an exception if it does not want to return null.

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


[jira] Resolved: (OWB-510) return null instead of an unusable proxy if a resource is missing

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks resolved OWB-510.
------------------------------

    Resolution: Fixed

fixed in rev 1053774

> return null instead of an unusable proxy if a resource is missing
> -----------------------------------------------------------------
>
>                 Key: OWB-510
>                 URL: https://issues.apache.org/jira/browse/OWB-510
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.1.0
>
>
> Currently if the ResourceInjectionService returns null for a resource we build a proxy that is guaranteed to never work.  I think this is really confusing for users.  Instead, as Mark suggested, lets return null if the resource is null.  In addition, the ResourceInjectionService implementation can throw an exception if it does not want to return null.

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