Just one more piece of information:

After removing the final and assigning the variable to itself we got
the same behavior in DevMode and Production Mode
String uniqueId = DOM.createUniqueId();
uniqueId = uniqueId;

It seems that the problem lies with the optimizer.

Anyone else faced similar issues?

Steve

On Feb 4, 1:12 pm, Steve Lancey <[email protected]> wrote:
> Hi,
>
> We are experiencing a strange problem: We have a piece of code in our
> application that is generating a html string which we are displaying
> at one point in the application flow.
> With GWT 1.5.x - GWT 1.7.x this worked without any issues. Moving to
> GWT 2 this functionality is broken:
> As a matter of fact, it is working in DevMode or with -draftCompile or
> with -style = Detailed || pretty, but NOT in production mode.
>
> E.g. one of the things that happen in production mode: a final
> variable (final String uniqueId = DOM.createUniqueId();) becomes null
> at one point. How is this even possible?
>
> Thanks + Regards,
>
> Steve

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