[jboss-jira] [JBoss JIRA] Created: (JGRP-810) Message.setFlag is using addition instead of bit-wise or

Micah Hainline (JIRA) jira-events at lists.jboss.org
Wed Aug 6 13:41:56 EDT 2008


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


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