Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
In lines https://github.com/apache/avro/blob/master/lang/c%2B%2B/impl/json/JsonIO.cc#L79 and https://github.com/apache/avro/blob/master/lang/c%2B%2B/impl/json/JsonIO.cc#L87, the expression will always evaluate to True since stArrayN and stObjectN are none-zero.
Presumably, the author meant to do:
if (curState == stArray0 || curState == stArrayN) {
and
if (curState == stObject0 || curState == stObject0) {
respectively.
Attachments
Issue Links
- links to