CVS update: JGroups/src/org/jgroups/util Util.java

"Bela Ban" <[email protected]> Tue, 28 Sep 2010 14:32:41 +0000
Newsgroups gmane.comp.java.javagroups.cvs
Message-ID <[email protected]>
  User: belaban 
  Date: 10/09/28 14:32:40

  Modified:    src/org/jgroups/util Tag: Branch_JGroups_2_8 Util.java
  Log:
  propagating uncaughtException() up to the parent thread group
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.244.2.1 +5 -1      JGroups/src/org/jgroups/util/Util.java
  
  Index: Util.java
  ===================================================================
  RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/util/Util.java,v
  retrieving revision 1.244
  retrieving revision 1.244.2.1
  diff -u -r1.244 -r1.244.2.1
  --- Util.java	18 Dec 2009 10:40:28 -0000	1.244
  +++ Util.java	28 Sep 2010 14:32:40 -0000	1.244.2.1
  @@ -35,7 +35,7 @@
   /**
    * Collection of various utility routines that can not be assigned to other classes.
    * @author Bela Ban
  - * @version $Id: Util.java,v 1.244 2009/12/18 10:40:28 belaban Exp $
  + * @version $Id: Util.java,v 1.244.2.1 2010/09/28 14:32:40 belaban Exp $
    */
   public class Util {
   
  @@ -74,6 +74,10 @@
       private static ThreadGroup GLOBAL_GROUP=new ThreadGroup("JGroups") {
           public void uncaughtException(Thread t, Throwable e) {
               LogFactory.getLog("org.jgroups").error("uncaught exception in " + t + " (thread group=" + GLOBAL_GROUP + " )", e);
  +            final ThreadGroup tgParent = getParent();
  +            if(tgParent != null) {
  +                tgParent.uncaughtException(t,e);
  +            }
           }
       };
   
  
  
  

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev