-
Notifications
You must be signed in to change notification settings - Fork 643
FieldType.CHAR
does not define Character.class
as java type.
#820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
FieldType.CHAR
does not define Character.class
as java type.
Hi @ishabandi67 |
Use case: |
Could you post a code snippet where the validation is failing? When parsing the message and creating a FIX message it is assumed that all fields are strings anyway since that is the format in which they are sent over the wire. |
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:
#819
The text was updated successfully, but these errors were encountered: