activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r704508 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java
Date Tue, 14 Oct 2008 12:15:36 GMT
Author: dejanb
Date: Tue Oct 14 05:15:36 2008
New Revision: 704508

URL: http://svn.apache.org/viewvc?rev=704508&view=rev
Log:
fix for AMQ-1978

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java?rev=704508&r1=704507&r2=704508&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java
Tue Oct 14 05:15:36 2008
@@ -146,4 +146,12 @@
         }
         return super.getSize();
     }
+    
+    public String toString() {
+        try {
+            getText();
+        } catch (JMSException e) {
+        }
+        return super.toString();
+    }
 }



Mime
View raw message