openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1053774 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/ResourceBean.java
Date Thu, 30 Dec 2010 00:00:50 GMT
Author: djencks
Date: Thu Dec 30 00:00:50 2010
New Revision: 1053774

URL: http://svn.apache.org/viewvc?rev=1053774&view=rev
Log:
OWB-510 return null instead of unusable proxy

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/ResourceBean.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/ResourceBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/ResourceBean.java?rev=1053774&r1=1053773&r2=1053774&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/ResourceBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/ResourceBean.java
Thu Dec 30 00:00:50 2010
@@ -53,7 +53,7 @@ public class ResourceBean<X, T extends A
             ResourceInjectionService resourceService = ServiceLoader.getService(ResourceInjectionService.class);
             X instance = resourceService.getResourceReference(this.resourceReference);
 
-            if (instance != null && Modifier.isFinal(instance.getClass().getModifiers()))
+            if (instance == null || Modifier.isFinal(instance.getClass().getModifiers()))
             {
                 return instance;
             }



Mime
View raw message