fixio icon indicating copy to clipboard operation
fixio copied to clipboard

FixMessageImpl add MsgSeqNum throw Unparseable int:

Open mvpwjz opened this issue 2 years ago • 0 comments

image When my MsgSeqNum is 1, I want add it to FixMessageImpl, so I invoke message.add(int tagNum, byte[] value). First I turn MsgSeqNum from int to byte[], The byte array i get is [0, 0, 0, 1], it will go to IntField. In this function, It find if (digit > 9 || digit < 0) It will throw a expetion, but [0, 0, 0, 1] to int.The result is 1, but by the function it throw a exception so I think it will be a bug.

mvpwjz avatar Sep 14 '22 10:09 mvpwjz