I have been having the very same warning on my code since I installed
GWT1.5.2. It never caused the application to fail, though

On Oct 31, 7:17 pm, walden <[EMAIL PROTECTED]> wrote:
> Ian,
>
> Actually, that OrderedConstantSet is an extension of
> HashMap<String,String>, so changing to HashMap isn't going to help.  I
> know because I tried it already, too.
>
> I could understand if the compiler traced a dependency to a class with
> a final field, but in this case, the relationship between my
> serializable Map and the one from i18n package seems "associative"
> through the type HashMap<String,String>, not actually a dependency.
> Wierd.
>
> I was going to post on this problem when I first noticed, but then it
> was working, so I didn't bother.  But now I'd really like to know
> what's up.
>
> Walden
>
> On Oct 31, 11:52 am, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
>
> > 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.St­ring>).
> >  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