[jboss-svn-commits] JBoss Portal SVN: r5669 - trunk/test/src/main/org/jboss/portal/test/framework/agent

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 16 13:49:38 EST 2006


Author: julien at jboss.com
Date: 2006-11-16 13:49:35 -0500 (Thu, 16 Nov 2006)
New Revision: 5669

Modified:
   trunk/test/src/main/org/jboss/portal/test/framework/agent/JBossTestAgent.java
Log:
improve javadoc

Modified: trunk/test/src/main/org/jboss/portal/test/framework/agent/JBossTestAgent.java
===================================================================
--- trunk/test/src/main/org/jboss/portal/test/framework/agent/JBossTestAgent.java	2006-11-16 18:48:45 UTC (rev 5668)
+++ trunk/test/src/main/org/jboss/portal/test/framework/agent/JBossTestAgent.java	2006-11-16 18:49:35 UTC (rev 5669)
@@ -41,13 +41,15 @@
    private static final ThreadLocal local = new ThreadLocal();
 
    /**
-    * Record the exception only if we have a session otherwise we may leek the exception in the thread local.
+    * Record the exception that will be reused later by the same agent to be aware of the recorded exception. 
     *
     * @param e the deployment exception to log.
     */
    public static void record(DeploymentException e)
    {
       Session session = (Session)local.get();
+
+      // Record the exception only if we have a session otherwise we may leek the exception in the thread local.
       if (session != null && session.e == null)
       {
          session.e = e;




More information about the jboss-svn-commits mailing list