Skip to content
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

Incorrect generated code for optional (tagged) data members of exceptions in C# #889

Closed
bernardnormier opened this issue Jun 9, 2020 · 0 comments
Assignees
Milestone

Comments

@bernardnormier
Copy link
Member

slice2cs 3.7 generates incorrect code for optional data members of exceptions - the optional members should be marshaled/unmarshaled after the non-optional members and sorted by tag.

For example:

exception A 
{ 
    string name; 
    optional(3) string another; 
    string m;
}

exception B extends A
{ 
    int x; 
    optional(3) int y; 
    optional(1) int z;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants