-
Notifications
You must be signed in to change notification settings - Fork 539
References inside messageHeader not working #435
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
…ded at Token.referencedName() and use in JavaGenerator. Issue #435.
@billsegall Worth tracking this one to see the changes that need to be applied to the Golang version. |
C++ has been changed to follow Java (as of commit 323ece0). Might be good to check and see if that addresses the issue. |
…for Booster to catch issues like #435. Fixed includes and declarations use correct name.
now it should be working, I think. |
@tmontgomery not fully resolved - MessageHeader.h do not include required headers. |
MessageHeader.h is only designed to include the MessageHeader type itself. It doesn't include any others. |
@tmontgomery I think a message header should support the minimum four fields and it is OK to add on additional fields at the end. The Java implementation now allows this. The spec does not say it must only be these four fields. |
@mjpt777 true. The spec does not forbid it. But the IR HeaderStructure class only picks up those 4 token names. So, the IR itself doesn't contain anything else for the header structure. |
I believe this would effect the OTF as well, for example. |
There is a default header with a minimum set of requirements. An OTF implementation could use its own extended header decoder. |
It could, yes. But the header structure that is used for generating the codec MessageHeader seems to ignore all other fields than the named ones. And that header structure is also used for OTF, IIRC. |
It's in the Ir class. Which creates the HeaderStructure which when capturing tokens, seems to ignore everything but the named fields. So, it would effect Java OTF and the generators. For C++, I tried looking at this. A ref won't be seen in the generated MessageHeader because it isn't in the header structure at that point. Or it seems that way. |
I'm pretty certain I tried this today in the Java version and it worked. |
Actually, I think it is more subtle. Update: 2 wrongs don't make a right. Looking in the wrong place and looking at wrong methods. |
Should work now. |
Resolved! Thanks |
[golang] Issue #435 References inside messageHeader not working
Hello Devs,
Example:
Generated C++ code looks like:
But class Flags not generated and I believe class name should be UpdateFlags (not Flags)
Thanks
The text was updated successfully, but these errors were encountered: