>From the docs in Google, it is not specifically noted if it is required
to re-annotate the getters and setters of serializable lists.
For example, if the following is set:
===============
/**
* This field is a Set that must always contain Strings.
*
* @gwt.typeArgs <java.lang.String>
*/
public Set setOfStrings;
===============
Does one still need to annotate the setter and getter as follows?
===============
/*
* @gwt.typeArgs <java.lang.String>
*/
public List reverseListAndConvertToStrings();
/*
* @gwt.typeArgs c <java.lang.Integer>
*/
public void reverseListAndConvertToStrings( List c );
===============
Or are they inferred from the collection annotation that was initially
done? Just trying to save some possibly unnecessary work.
Also, please consider adding "warning" messages when collections are
found that are not annotated. At the moment, it doesn't show any
warnings at all and as stated in the docs, it will produce not so
efficient code. The warning will help developers to make it run
smoother.
If it produces too much output, consider different compiler
verbosities.
Cheers,
G.
It is not necessary to reannotate the accessor methods of parameterized
fields. We'll discuss the possibly of adding warnings to the compiler
to deal with unparameterized collection fields.
Thanks for your feedback,
Miguel