Our team is revisiting this issue again in hopes that some lateral (i.e. non-reflection) workarounds could be added to GWT 2.6.1 or GWT 3.0.
In particular, the original problem with protobuf-generated Java classes is that Reflection isn't emulated in GWT. I admit that emulating reflection is of dubious value, at best. However, it turns out this can be side-stepped by compiling with the LITE_RUNTIME flag, which excludes reflection code, solving 80% of the problem.
The next problem has to do with very common classes/methods that are not emulated by GWT, but reasonably could be. These include parts of java.io.* (Issue 604), String.format (Issue 3945), and a few others (try compiling the attached .proto file into Java). Adding emulation for these would be very beneficial far beyond just protocol buffers.
What would it take to get these side-issues included in 2.6.1/3.0 ?
-- In particular, the original problem with protobuf-generated Java classes is that Reflection isn't emulated in GWT. I admit that emulating reflection is of dubious value, at best. However, it turns out this can be side-stepped by compiling with the LITE_RUNTIME flag, which excludes reflection code, solving 80% of the problem.
The next problem has to do with very common classes/methods that are not emulated by GWT, but reasonably could be. These include parts of java.io.* (Issue 604), String.format (Issue 3945), and a few others (try compiling the attached .proto file into Java). Adding emulation for these would be very beneficial far beyond just protocol buffers.
What would it take to get these side-issues included in 2.6.1/3.0 ?
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment