On Fri, Oct 31, 2008 at 10:46 AM, WebDude <[EMAIL PROTECTED]> wrote:
> Out of curiosity more than anything, I would like to understand why
> this error occurs.  I've read issue 2862 (http://code.google.com/p/
> google-web-toolkit/issues/detail?id=2862), but I don't quite follow.
>
> How come all of the other maps go through fine.  String by themselves
> go through.  Collections of Strings go through.  Why doesn't a Map
> with Strings as the values go through?  I don't even have to put
> anything into the map.

This is a compiler warning we're talking about, right?  If so, then
the compiler is raising the warning not because of anything you're
doing but because it has found a Map implementation with a final field
(in this case it's the implementation with a field named  "keys" of
type 
com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSet<java.lang.String>).
 This is probably a bug in GWT, not something wrong with your code.
You could probably get rid of the warning if you changed your type
definition to use HashMap<String, String> instead of Map<String,
String> but that has the obvious downside of restricting you to
HashMaps.

Ian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to