gwt - Method in RequestContext interface containing Map as return type -
am getting error while trying this. using gwt2.5 , requestfactory.
my server class looks this:
public class ruleconfiguration { public static map<long, list<operator>> getdatatypeoperatormappings() { return datatypeoperatormappinghelper.getinstance().getvaliddatatypetooperatormappings(); } }
and corresponding requestcontextclass looks this
import java.util.list; import java.util.map; @service( value = ruleconfiguration.class ) public interface rulerequestcontext extends requestcontext { request<map<long, list<operatorproxy>>> getdatatypeoperatormappings(); }
but here getting error saying the type java.util.map<"map signature"> cannot used here
what mistake here? kindly help. thanks.
if here https://developers.google.com/web-toolkit/doc/latest/devguiderequestfactory doesn't list map transportable type - list , set. had problem once , solved breaking map 2 arraylist index of 1 data other.
Comments
Post a Comment