openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1072640 - /openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
Date Sun, 20 Feb 2011 17:25:07 GMT
Author: struberg
Date: Sun Feb 20 17:25:07 2011
New Revision: 1072640

URL: http://svn.apache.org/viewvc?rev=1072640&view=rev
Log:
OWB-461 don't catch Throwables because java.lang.Errors must not get catched!

Modified:
    openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java

Modified: openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java?rev=1072640&r1=1072639&r2=1072640&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
(original)
+++ openwebbeans/trunk/webbeans-porting/src/main/java/org/apache/webbeans/test/tck/StandaloneContainersImpl.java
Sun Feb 20 17:25:07 2011
@@ -83,7 +83,7 @@ public class StandaloneContainersImpl im
             this.lifeCycle.startApplication(null);
 
         }
-        catch (Throwable e)
+        catch (Exception e)
         {
             e.printStackTrace();
             this.excpetion = new DeploymentException("Standalone Container Impl.", e);
@@ -116,7 +116,7 @@ public class StandaloneContainersImpl im
                         EjbPlugin plugin = (EjbPlugin) WebBeansContext.getInstance().getPluginLoader().getEjbPlugin();
                         plugin.setUseInTest(true);
                     }
-                    catch (Throwable e)
+                    catch (Exception e)
                     {
                         // Not worry
                     }
@@ -138,7 +138,7 @@ public class StandaloneContainersImpl im
 
             this.lifeCycle.startApplication(null);
         }
-        catch (Throwable e)
+        catch (Exception e)
         {
             e.printStackTrace();
             this.excpetion = new DeploymentException("Standalone Container Impl.", e);



Mime
View raw message