qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [8/8] qpid-jms git commit: fix problem in test peer frame parser relating to reading channel numbers
Date Fri, 06 Mar 2015 16:35:50 GMT
fix problem in test peer frame parser relating to reading channel numbers


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

Branch: refs/heads/master
Commit: 4ab807b789712d241f76bfddcf5cb75279b01bcd
Parents: f51836b
Author: Robert Gemmell <robbie@apache.org>
Authored: Fri Mar 6 16:24:11 2015 +0000
Committer: Robert Gemmell <robbie@apache.org>
Committed: Fri Mar 6 16:25:13 2015 +0000

----------------------------------------------------------------------
 .../java/org/apache/qpid/jms/test/testpeer/TestFrameParser.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/4ab807b7/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestFrameParser.java
----------------------------------------------------------------------
diff --git a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestFrameParser.java
b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestFrameParser.java
index a562038..893a399 100644
--- a/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestFrameParser.java
+++ b/qpid-jms-client/src/test/java/org/apache/qpid/jms/test/testpeer/TestFrameParser.java
@@ -277,7 +277,7 @@ class TestFrameParser
                     // type
 
                     int type = currentInput.get() & 0xFF;
-                    int channel = currentInput.getShort() & 0xFF;
+                    int channel = currentInput.getShort() & 0xFFFF;
 
                     // note that this skips over the extended header if it's present
                     if(dataOffset!=8)


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


Mime
View raw message