[jboss-remoting-commits] JBoss Remoting SVN: r5039 - remoting2/branches/2.2/src/main/org/jboss/remoting/ident.

jboss-remoting-commits at lists.jboss.org jboss-remoting-commits at lists.jboss.org
Wed Apr 15 00:37:17 EDT 2009


Author: ron.sigal at jboss.com
Date: 2009-04-15 00:37:16 -0400 (Wed, 15 Apr 2009)
New Revision: 5039

Modified:
   remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java
Log:
JBREM-1104: Ported David Lloyd's fix to 2.2 branch.

Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java	2009-04-15 02:00:56 UTC (rev 5038)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/ident/Identity.java	2009-04-15 04:37:16 UTC (rev 5039)
@@ -208,7 +208,10 @@
       }
       catch(Exception ex)
       {
-         throw new RuntimeException("Exception creating identity: " + ex.getMessage());
+         String type = ex.getClass().getName();
+         final RuntimeException rex = new RuntimeException("Exception creating identity: " + type + ": " + ex.getMessage());
+         rex.setStackTrace(ex.getStackTrace());
+         throw rex;
       }
    }
 




More information about the jboss-remoting-commits mailing list