db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Zaun (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-309) minor extensions to tck20's JDO_Test and ThreadExceptionHandler
Date Fri, 17 Feb 2006 17:51:25 GMT
    [ http://issues.apache.org/jira/browse/JDO-309?page=comments#action_12366821 ] 

Martin Zaun commented on JDO-309:
---------------------------------

My planned extensions to tck20's ThreadExceptionHandler:

$ svn diff src/java/org/apache/jdo/tck/util/ThreadExceptionHandler.java
Index: src/java/org/apache/jdo/tck/util/ThreadExceptionHandler.java
===================================================================
--- src/java/org/apache/jdo/tck/util/ThreadExceptionHandler.java        (revisio
n 375502)
+++ src/java/org/apache/jdo/tck/util/ThreadExceptionHandler.java        (working
 copy)
@@ -32,7 +32,7 @@
      * Map of uncaught exceptions. The thread is the key and the uncaught
      * Throwable is the value in the map.
      */
-    private Map uncaughtExceptions = new HashMap();
+    private final Map uncaughtExceptions = new HashMap();

     /** Constructor. */
     public ThreadExceptionHandler() {
@@ -53,11 +53,18 @@
     }

     /**
-     * Returns all uncaught exception stored in this ThreadGroup.
+     * Returns all uncaught exceptions stored in this ThreadGroup.
      * Each element in the returned set is a Map.Entry with the
      * thread as the key and the uncaught Throwable is the value.
      */
     public Set getAllUncaughtExceptions() {
         return uncaughtExceptions.entrySet();
     }
+
+    /**
+     * Clears all exceptions in this ThreadGroup.
+     */
+    public void clear() {
+        uncaughtExceptions.clear();
+    }
 }


> minor extensions to tck20's JDO_Test and ThreadExceptionHandler
> ---------------------------------------------------------------
>
>          Key: JDO-309
>          URL: http://issues.apache.org/jira/browse/JDO-309
>      Project: JDO
>         Type: New Feature
>   Components: tck20
>     Reporter: Martin Zaun
>     Priority: Trivial

>
> JDO_Test should be extended for methods collection error messages.
> ThreadExceptionHandler should be extended for clearing stored exceptions.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message