I worked around the issue by serializing down to a String instead of a Map.
That way I dont have to worry about the obfuscation mess, since the String
type is supported for communicating from JavaScript to Java.


On Mon, Sep 22, 2008 at 12:07 PM, Oscar <[EMAIL PROTECTED]> wrote:

> I have a class, call it Foo(), that I am passing between 2 Frames by
> serializing it down to a Map of Strings.  It looks something like
> this:
>
> class Foo {
> ...
>
> public Map<String, String> toMap() { /* put all values I care about
> into a hashmap as strings */ }
>
> public static Foo fromMap(Map<String, String> map) { /* deserialize
> */ }
> }
>
> The issue is that when JavaScript obfuscation is turned on I get
> errors when calling fromMap() because Map.get() seems to be undefined.
> As long as obfuscation isnt enabled everything works as expected.   Is
> it possible to have an exclusion list for the obfuscation so that Foo
> doesn't get obfuscated?  Since Map.get() seems to be the issue, I
> suppose that is the class I would need to exclude.
>
> Alternatively, is it possible to pass an object between 2 Frames some
> other way that doesnt require me to serialize down to Strings?
>

--~--~---------~--~----~------------~-------~--~----~
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