Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-810

Message.setFlag is using addition instead of bit-wise or

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.6.4, 2.7
    • 2.6.3
    • None

      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

              rhn-engineering-bban Bela Ban
              micah.hainline Micah Hainline (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: