Issue 10 in gwt-rpc-plus: Maps do not support structs as key

8 views
Skip to first unread message

gwt-rp...@googlecode.com

unread,
Dec 27, 2010, 8:40:21 PM12/27/10
to dotspots-o...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 10 by miller.garym: Maps do not support structs as key
http://code.google.com/p/gwt-rpc-plus/issues/detail?id=10

I have a simply model that is valid thrift and the thrift compiler does not
have an issue with it. See example below.
But the gwt-rpc-plus compiler throws an exception

Exception in thread "main" java.lang.RuntimeException: Unavailable type:
Map from A to list<A>

There's a map in GwtCodeGenBase, keyTypeMap that seems to contain value map
keys.
Is there any way the extend this?
I don't know enough about gwt-rpc-list to understand if this is a
fundamental limitation.

struct A {
1:string name;
}
struct B {
1:map<A, list<A>> parentToChildren;
}

Reply all
Reply to author
Forward
0 new messages