[jboss-jira] [JBoss JIRA] Updated: (JGRP-810) Message.setFlag is using addition instead of bit-wise or
Bela Ban (JIRA)
jira-events at lists.jboss.org
Sat Aug 9 16:37:50 EDT 2008
[ https://jira.jboss.org/jira/browse/JGRP-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list