openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r922992 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans: config/BeansDeployer.java util/WebBeansUtil.java
Date Sun, 14 Mar 2010 22:51:16 GMT
Author: gerdogdu
Date: Sun Mar 14 22:51:16 2010
New Revision: 922992

URL: http://svn.apache.org/viewvc?rev=922992&view=rev
Log:
Update for TCK

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.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=922992&r1=922991&r2=922992&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
Sun Mar 14 22:51:16 2010
@@ -158,21 +158,10 @@ public class BeansDeployer
             }
 
         }
-        catch (WebBeansConfigurationException e)
-        {
-            logger.error(e);
-            throw e;
-        }
         catch(Exception e)
         {
             logger.error(e);
-            
-            if(e instanceof WebBeansDeploymentException)
-            {
-                throw  (WebBeansDeploymentException)e;
-            }
-            
-            throw new WebBeansDeploymentException(e);
+            WebBeansUtil.throwRuntimeExceptions(e);
         }
     }
     

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java?rev=922992&r1=922991&r2=922992&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Sun Mar 14 22:51:16 2010
@@ -2994,4 +2994,14 @@ public final class WebBeansUtil
         return false;
     }
     
+    public static void throwRuntimeExceptions(Exception e)
+    {
+        if(RuntimeException.class.isAssignableFrom(e.getClass()))
+        {
+            throw (RuntimeException)e;
+        }
+        
+        throw new RuntimeException(e);
+    }
+    
 }
\ No newline at end of file



Mime
View raw message