Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-763

Wrong constant values in NoSides

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.6.0
    • Component/s: Message Generation
    • Labels:
      None

      Description

      NoSides extends IntField, but constants for ONE_SIDE and BOTH_SIDES are defined as char.

      public class NoSides extends IntField {
      static final long serialVersionUID = 20050617;
      public static final int FIELD = 552;
      public static final char ONE_SIDE = '1';
      public static final char BOTH_SIDES = '2';
      ...

      When you call:
      message.set(new NoSides(NoSides.ONE_SIDE));
      Then the wrong value 49 (Ascii code of '1') instead of 1 is sent.

        Attachments

          Activity

            People

            • Assignee:
              chrjohn Christoph John
              Reporter:
              ilevin Isaac Levin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: