openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1668047 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Date Fri, 20 Mar 2015 15:20:07 GMT
Author: rmannibucau
Date: Fri Mar 20 15:20:07 2015
New Revision: 1668047

URL: http://svn.apache.org/r1668047
Log:
webBeansUtil.isConstructorOk can throw TypeNotPresentException

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java?rev=1668047&r1=1668046&r2=1668047&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
Fri Mar 20 15:20:07 2015
@@ -1140,7 +1140,14 @@ public class BeansDeployer
         final WebBeansUtil webBeansUtil = webBeansContext.getWebBeansUtil();
 
         // done separately to be able to swallow the logging when not relevant and avoid
to pollute logs
-        if (!webBeansUtil.isConstructorOk(type))
+        try
+        {
+            if (!webBeansUtil.isConstructorOk(type))
+            {
+                return false;
+            }
+        }
+        catch (final TypeNotPresentException cnfe)
         {
             return false;
         }



Mime
View raw message