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

Bela Ban (JIRA) jira-events at lists.jboss.org
Mon Aug 18 07:16:09 EDT 2008


     [ https://jira.jboss.org/jira/browse/JGRP-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban resolved JGRP-810.
---------------------------

    Resolution: Done


Added tests to MessageTest and fixed on CVS head and 2.6 branch

> 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