You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ta...@apache.org on 2014/09/30 23:12:33 UTC

git commit: Enforce content type always set to java serialized value.

Repository: qpid-jms
Updated Branches:
  refs/heads/master 867c1ba43 -> a9386dac5


Enforce content type always set to java serialized value.

Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/a9386dac
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/a9386dac
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/a9386dac

Branch: refs/heads/master
Commit: a9386dac54cb19936a6b7b0b752bd8b1a303b3c3
Parents: 867c1ba
Author: Timothy Bish <ta...@gmail.com>
Authored: Tue Sep 30 17:12:23 2014 -0400
Committer: Timothy Bish <ta...@gmail.com>
Committed: Tue Sep 30 17:12:23 2014 -0400

----------------------------------------------------------------------
 .../jms/provider/amqp/message/AmqpSerializedObjectDelegate.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/a9386dac/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpSerializedObjectDelegate.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpSerializedObjectDelegate.java b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpSerializedObjectDelegate.java
index 3d974e2..d22d23a 100644
--- a/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpSerializedObjectDelegate.java
+++ b/qpid-jms-client/src/main/java/org/apache/qpid/jms/provider/amqp/message/AmqpSerializedObjectDelegate.java
@@ -95,11 +95,10 @@ public class AmqpSerializedObjectDelegate implements AmqpObjectTypeDelegate {
                message.setBody(new Data(new Binary(bytes)));
             }
         }
-
-        // TODO: ensure content type is [still] set?
     }
 
     @Override
     public void onSend() {
+        this.message.setContentType(CONTENT_TYPE);
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org