Skip to content

FieldType.CHAR does not define Character.class as java type. #820

Description

@ishabandi67

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions