JDK-6562388 : Files compiled by make/java/java should be compiled with -Xlint:serial -Werror
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Future Project
  • OS: generic
  • CPU: generic
  • Submitted: 2007-05-25
  • Updated: 2012-01-11
  • Resolved: 2011-02-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
We should eventually detect for missing serialVersionUID declarations in the entire build.  However, we will start with those .java files which are compiled by make/java/java and related packages (e.g. make/java/nio, make/java/util, make/sun/misc, ...).

Comments
SUGGESTED FIX Add serialVersionUID declarations as determined by serialver to classes as needed. Modify the makefiles to declare "OTHER_JAVACFLAGS += -Xlint:serial -Werror" which will cause the build to fail if new serializable classes are added without an explicit serialVersionUID.
25-05-2007

EVALUATION A good start.
25-05-2007