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

Repeated values in RemoteValueType enum #4

Closed
mattinbits opened this issue Mar 4, 2013 · 2 comments
Closed

Repeated values in RemoteValueType enum #4

mattinbits opened this issue Mar 4, 2013 · 2 comments

Comments

@mattinbits
Copy link
Contributor

Hi,

In RemoteValueType enum in the thrift definition, the value 8 represents ValueType_Button and ValueType_Max.

This creates an issue in the generated Java code of RemoteValueType.java since it produces a case statement which repeats the case of value 8.

Not sure whether this is problem with the enum specification in the Thrift file, or a problem with the generated Java not handling a valid instance of a repeated value.

Matt

@ekarak
Copy link
Member

ekarak commented Mar 4, 2013

I assume min and max are only used in C/C++ to check if you get an integer from the outside world inside these bounds, so you can safely remove them from the ozw.thrift file. Feel free to patch me up!

@ekarak
Copy link
Member

ekarak commented Mar 23, 2013

patched up, closing

@ekarak ekarak closed this as completed Mar 23, 2013
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

No branches or pull requests

2 participants