roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1512867 - /roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/runnable/TaskScheduler.java
Date Sun, 11 Aug 2013 03:29:54 GMT
Author: gmazza
Date: Sun Aug 11 03:29:54 2013
New Revision: 1512867

URL: http://svn.apache.org/r1512867
Log:
Reverted back to Throwable instead of Exception for TaskScheduler except now throwing ThreadDeath
per JDK explanation: http://docs.oracle.com/javase/7/docs/api/java/lang/ThreadDeath.html

Modified:
    roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/runnable/TaskScheduler.java

Modified: roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/runnable/TaskScheduler.java
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/runnable/TaskScheduler.java?rev=1512867&r1=1512866&r2=1512867&view=diff
==============================================================================
--- roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/runnable/TaskScheduler.java
(original)
+++ roller/trunk/app/src/main/java/org/apache/roller/weblogger/business/runnable/TaskScheduler.java
Sun Aug 11 03:29:54 2013
@@ -182,9 +182,10 @@ public class TaskScheduler implements Ru
                     log.debug(task.getName()+": LAUNCHING task");
                     pool.submit(task);
                 }
-                
-            } catch(Exception e) {
-                log.warn(task.getName()+": Unhandled exception caught", e);
+            } catch (ThreadDeath t) {
+                throw t;
+            } catch (Throwable t) {
+                log.warn(task.getName() + ": Unhandled exception caught", t);
             }
         }
         



Mime
View raw message