Skip to content

Conversation

the-thing
Copy link
Contributor

Changes

  • Custom FIX tags are copied to "parent" components.

Unfortunately it is not possible to do a reverse operation as the custom fields copied to "parent" would pollute every child component when retrieving it via "get*" methods. This is something that we don't want, especially when is an existing test case quickfix.MessageTest#testComponent.

Arguably we could change the class generation and add extra "get*" methods with additional arguments indicating that all (or selected ones) fields from "parent" components should be copied, but I think it might be a little overhead. The first attempt was done in #210, but I think this is unnecessary clutter.

I updated the javadoc for quickfix.MessageComponent#copyFrom and quickfix.MessageComponent#copyTo to point out the difference in behaviour.

@chrjohn chrjohn added this to the QFJ 2.2.0 milestone May 19, 2020
@chrjohn chrjohn merged commit 0c4aa71 into quickfix-j:master Jun 3, 2020
@the-thing the-thing deleted the QFJ-636 branch June 3, 2020 14:59
jli8000 pushed a commit to jli8000/quickfixj that referenced this pull request Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants