ome / ome-model

OME model (specification, code generator, implementation)
Other
13 stars 26 forks source link

EnumHandlers: Failure to check types correctly #132

Closed rleigh-codelibre closed 1 year ago

rleigh-codelibre commented 3 years ago

For each of the generated EnumHandler classes, the types are evaluated in the wrong order. None of the Positive(Integer|Long|Float) types will be used because they are extending the NonNegative(Integer|Long|Float) types and these are checked first, and will match the Positive cases too.

Should be fixable by changing the ordering.