THRIFT-5717 uuid sets and map keys may throw on some Haxe targets
Client: hx
Patch: Jens Geyer
diff --git a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
index 166f78e..f51f801 100644
--- a/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_haxe_generator.cc
@@ -2637,6 +2637,8 @@
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:
@@ -2663,6 +2665,8 @@
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: