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

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

  Modified:    src/org/jgroups/util Util.java
  Log:
  pass uncaughtExcption() on to parent thread group
  
  Revision  Changes    Path
  1.275     +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.274
  retrieving revision 1.275
  diff -u -r1.274 -r1.275
  --- Util.java	17 Sep 2010 13:03:55 -0000	1.274
  +++ Util.java	28 Sep 2010 15:10:31 -0000	1.275
  @@ -37,7 +37,7 @@
   /**
    * Collection of various utility routines that can not be assigned to other classes.
    * @author Bela Ban
  - * @version $Id: Util.java,v 1.274 2010/09/17 13:03:55 belaban Exp $
  + * @version $Id: Util.java,v 1.275 2010/09/28 15:10:31 belaban Exp $
    */
   public class Util {
   
  @@ -79,6 +79,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