[
https://issues.apache.org/jira/browse/THRIFT-5717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733810#comment-17733810
]
Jens Geyer commented on THRIFT-5717:
------------------------------------
{code}
struct Foo {
1: map< string, i32> string_map
2: map< uuid, i32> uuid_map
3: set< uuid> uuid_set
}
{code}
produces
{code}
@:isVar public var string_map(get,set) : StringMap< haxe.Int32>;
@:isVar public var uuid_map(get,set) : ObjectMap< String, haxe.Int32>;
@:isVar public var uuid_set(get,set) : ObjectSet< String>;
{code}
> uuid sets and map keys may throw on some Haxe targets
> -----------------------------------------------------
>
> Key: THRIFT-5717
> URL: https://issues.apache.org/jira/browse/THRIFT-5717
> Project: Thrift
> Issue Type: Bug
> Components: Haxe - Compiler
> Affects Versions: 0.18.0, 0.18.1
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Major
>
> Thrift maps<> and sets<> using uuid keys may throw an error like
> {code}
> ObjectMap<String, {}> Cannot create property '__id__'
> {code}
> when used with certain targets (e.g. JScript)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)