java - Annotation for GWT compiler to ignore method -


Is it possible to create an annotation (or some other way) to force the GWT compiler to not compile a method? is? I have a class that I also use on an app engine (in the shared folder) and only one server side is needed for a method that causes the GWT not to be compiled. I should ignore GWT method now (not appending).

I either put an annotation, or pre-compilation script which erases the method before compiling. Both methods will work for me, it would be best if I still compile via Eclipse IDE.

Anyone else thought or tried about it?

Not yet. Very recently this kind of annotation was added to @ com.google.gwt.core.shared.GwtIncompatible ("Why Details ...") . It applies to classes or methods.

But the patch code was not released yet! The official status is Fixed Not Related . And I personally can confirm that this is not in the current GWT version 2.5.1. I hope for the upcoming 2.5.2.

See:

Note, there is already the same annotation com In the .google.gwt.thirdparty.guava.common.annotations.GwtIncompatible + gwt-dev.jar , although this does not work, the compiler still wants to compile in my shared class < Em> incompatible method

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -