qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgr...@apache.org
Subject svn commit: r496637 - /incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java
Date Tue, 16 Jan 2007 09:31:45 GMT
Author: rgreig
Date: Tue Jan 16 01:31:44 2007
New Revision: 496637

URL: http://svn.apache.org/viewvc?view=rev&rev=496637
Log:
QPID-245 Field table now uses long str type for ascii string - temporary interop hack.

Modified:
    incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java

Modified: incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java?view=diff&rev=496637&r1=496636&r2=496637
==============================================================================
--- incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java
(original)
+++ incubator/qpid/trunk/qpid/java/common/src/main/java/org/apache/qpid/framing/FieldTable.java
Tue Jan 16 01:31:44 2007
@@ -278,7 +278,8 @@
     {
         AMQTypedValue value = getProperty(string);
         if ((value != null) && ((value.getType() == AMQType.WIDE_STRING) ||
-                                (value.getType() == AMQType.ASCII_STRING)))
+                                (value.getType() == AMQType.ASCII_STRING ||
+                                (value.getType() == AMQType.LONG_STRING))))
         {
             return (String) value.getValue();
         }
@@ -446,7 +447,7 @@
         }
         else
         {
-            return setProperty(string, AMQType.ASCII_STRING.asTypedValue(value));
+            return setProperty(string, AMQType.LONG_STRING.asTypedValue(value));
         }
 
     }



Mime
View raw message