MessageFactory
returns null - create(FIX5.0SP2, AE, 457)
instead of an instance of NoUnderlyingSecurityAltId
group
#822
Labels
Describe the bug
quickfix.fix50sp2.MessageFactory.create(FIX5.0SP2, AE, 457) returns null instead of an instance of
NoUnderlyingSecurityAltId
groupTo Reproduce
Create a simple Junit to call this method with the above mentioned parameters.
Expected behavior
Add
case "457"
undercase "AE"
(L617) in the nested switch statements to make sure we return the correct instance because it's valid group forquickfix.fix50sp2.TradeCaptureReport.class
i.e. it is clearly defined in FIX50SP2.xmli.e. (
TradeCaptureReport.UnderlyingInstrument.UndSecAltIDGrp.NoUnderlyingSecurityAltID
)system information:
Additional context
This issue doesn't seem to exist in fix44 or earlier. Possibly an issue with MessageFactory.xsl and how FIX50SP2 behaves due to the diff in session and app level messages.
Use case: we store fix messages in json format and while converting them back to TradeCaptureReport instance, we use MessageFactory.create(String beginString, String messageType, int correspondingFieldId) to create internal groups. The above bug, returns null and we currently handle it by just skipping the population of this group as it's not of any use to us currently.
The text was updated successfully, but these errors were encountered: