FYI: we took this discussion to the dev list: http://markmail.org/message/hqtlopjmruxw6ty4
@SuppressWarnings is out of the picture now, but the rest is still up for discussion. Andrus On Oct 4, 2011, at 12:48 PM, Durchholz, Joachim wrote: > Are generated classes ever instantiated via new? > If not, SerialVersionUID does not serve any useful purpose, it's the > programmer-written subclass that gets asked for the SerialVersionUID. > In that case, it may help to declare the generated classes abstract. Abstract > classes cannot be deserialized, so the compiler should not complain. > > An aside note: > Adding @SuppressWarnings might not be the best way to go, most warning names > are not standardized and hence differ between compilers. > I'm not sure whether "serial" is a standardized warning. I think it isn't but > don't know the reference doc to use for checking. > > Regards, > Jo >