[QFJ-631] Wrong checksum calculation in "quickfix.Field.getTotal()" Created: 31/Aug/11 Updated: 02/Apr/15 Resolved: 09/Jun/14 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.5.0 |
Fix Version/s: | 1.6.0 |
Type: | Bug | Priority: | Major |
Reporter: | John | Assignee: | amichair |
Resolution: | Fixed | Votes: | 0 |
Labels: | QuickfixJ, encoding | ||
Environment: |
Java |
Issue Links: |
|
Description |
The "quickfix.Field.getTotal()" method computes the checksum with the following code: A problem arises if the returned character is written with more than 1 character. I wrote a correction: } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } |
Comments |
Comment by John [ 31/Aug/11 ] |
The same applies to "quickfix.Message": private int checkSum(String s) { return (sum + 1) % 256; |