Skip to content

Commit

Permalink
THRIFT-5717 uuid sets and map keys may throw on some Haxe targets
Browse files Browse the repository at this point in the history
Client: hx
Patch: Jens Geyer
  • Loading branch information
Jens-G committed Jun 17, 2023
1 parent a2a1f53 commit d1d8ae2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/cpp/src/thrift/generate/t_haxe_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2637,6 +2637,8 @@ string t_haxe_generator::type_name(t_type* ttype, bool in_container, bool in_ini
return "StringMap< " + type_name(tval) + ">";
}
break; // default to ObjectMap<>
case t_base_type::TYPE_UUID:
return "StringMap< " + type_name(tval) + ">"; // uuids are stored as strings
case t_base_type::TYPE_I8:
case t_base_type::TYPE_I16:
case t_base_type::TYPE_I32:
Expand All @@ -2663,6 +2665,8 @@ string t_haxe_generator::type_name(t_type* ttype, bool in_container, bool in_ini
return "StringSet";
}
break; // default to ObjectSet
case t_base_type::TYPE_UUID:
return "StringSet"; // uuids are stored as strings
case t_base_type::TYPE_I8:
case t_base_type::TYPE_I16:
case t_base_type::TYPE_I32:
Expand Down

0 comments on commit d1d8ae2

Please sign in to comment.