If your problem is that the annotations is making your GWT module
compilation fail, maybe you should try to add your annotations to the GWT
compilation so you don't need to "remove them". Substituting an annotation
with an dummy annotation makes no senses at all XD, are more or less "value
classes", is like substituting a string with a dummy string... but,
sometimes the class might has dependencies to a enums or a Class<T> where
the enum or the T is incompatible, in this situation just add a super
source with the dummy annotation (pretty weird) or a GwtIncompatible in the
annotation or annotation method. Frequently you just need to create a GWT
module pointing to the annotation package, for example, we did that for
jackson adding a module like this:

file://src/com/fasterxml/jackson/annotation/Jackson.gwt.xml

<module>
    <source path="">
        <exclude name="**/JsonAutoDetect*"/>
        <exclude name="**/JsonFormat*"/>
        <exclude name="**/JsonIdentityInfo*"/>
        <exclude name="**/*ObjectId*"/>
    </source></module>


On Mon, Aug 29, 2016 at 8:01 PM Thomas Broyer <[email protected]> wrote:

> I can't see any reason to do that. In case you'd really need to do that,
> you could use a different classpath, like with any Java
> application/compilation (note that super-sources won't work, as annotations
> are -partially- loaded from bytecode, not only source code). Details will
> depend on how you build your project.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to