]
Bela Ban updated JGRP-810:
--------------------------
Fix Version/s: 2.6.4
2.7
Message.setFlag is using addition instead of bit-wise or
--------------------------------------------------------
Key: JGRP-810
URL:
https://jira.jboss.org/jira/browse/JGRP-810
Project: JGroups
Issue Type: Bug
Affects Versions: 2.6.3
Reporter: Micah Hainline
Assignee: Bela Ban
Priority: Minor
Fix For: 2.6.4, 2.7
Multiple calls to setFlag will result in unexpected behavior, due to the fact that
addition is being used instead of a bitwise or.
Consider the following:
message.setFlag(Message.OOB);
// message.isFlagSet(Message.OOB) is true
message.setFlag(Message.OOB);
// message.isFlagSet(Message.OOB) is false now!
Similar problems on isFlagSet and clearFlag
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: