On Tuesday, September 9, 2014 6:45:46 PM UTC+2, Thomas Broyer wrote:
-- Hmm, it might be that Maps are only supported as properties within proxies. Unit tests only cover that at least (and IIRC, we were aware of the limitation but nobody worked on that final step).
It seems that doesn't matter where it is used: it gives warning when used as proxy's property too (and again if I invert use case and use Map inside a List):
public class EntityA {
public Map<EntityA, EntityB> getSimpleMap() { return Collections.emptyMap(); }
public Map<EntityA, List<EntityB>> getListWithinMap() { return Collections.emptyMap(); }
public List<Map<EntityA, EntityB>> getMapWithinList() { return Collections.emptyList(); }
}
@ProxyFor(EntityA.class)
public interface EntityAProxy extends EntityProxy {
Map<EntityAProxy, EntityBProxy> getSimpleMap(); /* ok */
Map<EntityAProxy, List<EntityBProxy>> getListWithinMap(); /* error */
List<Map<EntityAProxy, EntityBProxy>> getMapWithinList(); /* error */
}
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment