Hi everyone, I am interested in a feature to exclude methods from GWT compilation. Ideally based on a configurable set of annotations that when present will cause the GWT compiler to ignore these methods.
I know similar features have been requested/discussed in the past. My use case for this is different though. I'd like to leverage Arquillian (http://www.jboss.org/arquillian.html) for GWT integration tests to be able to test applications in various runtime containers. Arquillian also supports combining client- and server-side tests in the same test class. This is were the method exclusion feature comes in. Some methods in that test class will contain non-translatable code that can safely be ignored when compiling to JS. I have created a (admittedly hackish) prototype for an Arquillian GWT extension which overwrites com.google.gwt.dev.javac.JdtCompiler to make this work. Here's an example test class showing an in-container test and a standard GWT test case executing an RPC to the currently managed container: https://github.com/csadilek/arquillian-extension-gwt/blob/master/src/test/java/org/jboss/arquillian/gwt/client/test/GreeterRpcTest.java Is there any interest in adding support for a method exclusion feature and/or accepting contributions for it? Cheers, Christian -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3l01TdiF_6YJ. 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.
