Summary: Previous implementation supported only stringy params (strings and stringified bools). Current one exposes a proper variant `Annot.t`, with support for all possible param values in Java except numbers (more on that below). This change is required for implementing `Nullsafe(LOCAL)` as the annotation used to specify nullsafe behaviour has a more complex structure than what we've dealt with before. **Why support for number values was not added**: supporting numbers requires using `int64`. Unfortunately, adding another variant `Vnum int64` to `Annot.t` causes a runtime failure on assert in `MaximumSharing.ml:133`. It seems that it might be enough to flip `fail_on_nonstring` from `true` to `false`, but since this would require additional testing and is not required for my case, I'll leave checking this to whoever needs to use numeric annot params in future. Reviewed By: ezgicicek Differential Revision: D19855923 fbshipit-source-id: 878e33856master
parent
ddfa6fc96e
commit
44f41d2929
Loading…
Reference in new issue