[jboss-cvs] JBossAS SVN: r62665 - projects/test/trunk/src/main/java/org/jboss/test/classloader.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Apr 30 17:08:19 EDT 2007
Author: adrian at jboss.org
Date: 2007-04-30 17:08:19 -0400 (Mon, 30 Apr 2007)
New Revision: 62665
Removed:
projects/test/trunk/src/main/java/org/jboss/test/classloader/TestThread.java
Log:
Remove spurious TestThread class added in the wrong place.
Deleted: projects/test/trunk/src/main/java/org/jboss/test/classloader/TestThread.java
===================================================================
--- projects/test/trunk/src/main/java/org/jboss/test/classloader/TestThread.java 2007-04-30 21:05:28 UTC (rev 62664)
+++ projects/test/trunk/src/main/java/org/jboss/test/classloader/TestThread.java 2007-04-30 21:08:19 UTC (rev 62665)
@@ -1,68 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.test.classloader;
-
-import org.jboss.logging.Logger;
-import junit.framework.AssertionFailedError;
-
-/**
- * TestThread.
- *
- * @author <a href="adrian at jboss.com">Adrian Brock</a>
- * @version $Revision: 1.1 $
- */
-public class TestThread extends Thread implements Thread.UncaughtExceptionHandler
-{
- private Logger log = Logger.getLogger(TestThread.class);
-
- private Throwable t;
-
- public TestThread()
- {
- setUncaughtExceptionHandler(this);
- }
-
- public TestThread(String name)
- {
- super(name);
- setUncaughtExceptionHandler(this);
- }
-
- public void uncaughtException(Thread t, Throwable e)
- {
- log.error("Error in thread " + t, e);
- this.t = e;
- }
-
- public void doJoin() throws InterruptedException
- {
- super.join();
- if (t != null)
- {
- if (t instanceof AssertionFailedError)
- throw (AssertionFailedError) t;
- AssertionFailedError e = new AssertionFailedError("Error in thread" + t);
- e.initCause(t);
- throw e;
- }
- }
-}
More information about the jboss-cvs-commits
mailing list