openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1073731 - in /openwebbeans/trunk: webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
Date Wed, 23 Feb 2011 13:14:16 GMT
Author: struberg
Date: Wed Feb 23 13:14:16 2011
New Revision: 1073731

URL: http://svn.apache.org/viewvc?rev=1073731&view=rev
Log:
OWB-461 remove e.printStackTrace() from our tomcat plugins

Modified:
    openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
    openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java

Modified: openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java?rev=1073731&r1=1073730&r2=1073731&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
(original)
+++ openwebbeans/trunk/webbeans-tomcat6/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
Wed Feb 23 13:14:16 2011
@@ -109,7 +109,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }        
     }
 
@@ -186,7 +186,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
     }
     
@@ -381,7 +381,7 @@ public class ContextLifecycleListener im
         }
         catch (Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
 
     }
@@ -457,9 +457,9 @@ public class ContextLifecycleListener im
             {
                 return clazz.getDeclaredField((String)parameters);
             }
-            catch (Exception exception)
+            catch (NoSuchFieldException e)
             {
-                return exception;
+                throw new RuntimeException(e);
             }
         }
 

Modified: openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java?rev=1073731&r1=1073730&r2=1073731&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
(original)
+++ openwebbeans/trunk/webbeans-tomcat7/src/main/java/org/apache/webbeans/web/tomcat/ContextLifecycleListener.java
Wed Feb 23 13:14:16 2011
@@ -109,7 +109,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }        
     }
 
@@ -186,7 +186,7 @@ public class ContextLifecycleListener im
         }
         catch(Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
     }
     
@@ -381,7 +381,7 @@ public class ContextLifecycleListener im
         }
         catch (Exception e)
         {
-            e.printStackTrace();
+            throw new RuntimeException(e);
         }
 
     }
@@ -457,9 +457,9 @@ public class ContextLifecycleListener im
             {
                 return clazz.getDeclaredField((String)parameters);
             }
-            catch (Exception exception)
+            catch (NoSuchFieldException e)
             {
-                return exception;
+                throw new RuntimeException(e);
             }
         }
 



Mime
View raw message