From 5ddd2f13faa12c5a45ebafcb229c570031678a78 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Mon, 17 Dec 2007 09:49:10 +0000 Subject: [PATCH] Thrift: Fix a bug in the Java runtime. Reviewed By: mcslee Test Plan: Looked at the C++ version side-by-side. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665396 13f79535-47bb-0310-9956-ffa450edef68 --- lib/java/src/protocol/TBinaryProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/java/src/protocol/TBinaryProtocol.java b/lib/java/src/protocol/TBinaryProtocol.java index 2e487cdd..b9167d24 100644 --- a/lib/java/src/protocol/TBinaryProtocol.java +++ b/lib/java/src/protocol/TBinaryProtocol.java @@ -185,7 +185,7 @@ public class TBinaryProtocol extends TProtocol { if (version != VERSION_1) { throw new TProtocolException(TProtocolException.BAD_VERSION, "Bad version in readMessageBegin"); } - message.type = (byte)(version & 0x000000ff); + message.type = (byte)(size & 0x000000ff); message.name = readString(); message.seqid = readI32(); } else { -- 2.17.1