Summary: | compiler warning for serializable classes that do not explicitly declare serialVersionUID | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jim des Rivieres <jeem> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | akiezun, erich_gamma, John_Wiegand |
Version: | 3.0 | ||
Target Milestone: | 3.1 M1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Jim des Rivieres
2004-07-13 12:18:54 EDT
*** Bug 69959 has been marked as a duplicate of this bug. *** *** Bug 67835 has been marked as a duplicate of this bug. *** Cannot implement for 3.0.1 since it would require to add a new API ID on IProblem (for quickfix). Added optional diagnosis, enabled as a warning by default as per request. Added IProblem.MissingSerialVersion problem ID. New JavaCore option: * COMPILER / Reporting Missing Declaration of serialVersionUID Field on Serializable Class * When enabled, the compiler will issue an error or a warning whenever a serializable class is missing a local declaration * of a serialVersionUID field. This field must be declared as static final and be of type long. * - option id: "org.eclipse.jdt.core.compiler.problem.missingSerialVersion" * - possible values: { "error", "warning", "ignore" } * - default: "warning" Fixed. I updated the "howto" of the batch compiler usage. |