quickfixj icon indicating copy to clipboard operation
quickfixj copied to clipboard

`FieldType.CHAR` does not define `Character.class` as java type.

Open ishabandi67 opened this issue 1 year ago • 3 comments
trafficstars

Describe the bug FieldType.CHAR does not define a javaType for itself and defaults to String.class as it's java type.

To Reproduce Pick up any FIX message, with a CharField (for example : RootPartyIDSource) Create a rawstring with any delimiter (example: | ) Try to parse the message using : MessageUtils.parse() The field returned is a StringField instead of CharField.

Expected behavior FieldType.CHAR.getJavaType() should return Character.class like other primitive types.

system information:

  • OS: [Windows]
  • Java version [JDK 17]
  • QFJ Version [e.g. 2.3.1]

#819

ishabandi67 avatar Jun 06 '24 21:06 ishabandi67