On 08/04/2010 10:24 AM, Florian Weimer wrote:
Inner exception classes probably should be non-static.
You mean static, surely?
And many incidentally serializable classes already receive a warning under -Xlint due to a missing serialVersionUID field. If necessary, the warning could be restricted to classes with a declared serialVersionUID member, or class definitions explicitly implementing the Serializable interface.
No, I agree with the initial proposal, full-stop: serializable inner classes = warning under -Xlint:serial.
-- - DML ☍
