Why does @GwtIncompatible doesn't work for you? The result is the same as 
your proposed @GwtUnreachable annotation.

You might need to refactor your code a bit if GWT complains about imports 
used by downloadJre() but that would probably be the same case for 
@GwtUnreachable. I used @GwtIncompatible once to avoid super-source and it 
did the job just fine (used it for some shared number format class).

Also instead of super sourcing no-op implementations for everything that 
downloadJre() uses (but GWT does not support), you should super source the 
whole download() method. Basically you implement the download() method once 
for a JRE environment and then provide a super sourced version of 
download() that works in the browser with GWT. Because your download() 
method is probably in a larger class you should refactor it out into its 
own class so you only need to super source as less code as possible.

-- J.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to