JDK-8208060 : Additional corrections of serial-related declarations
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.sql
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-07-20
  • Updated: 2018-09-18
  • Resolved: 2018-07-20
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 12
12 b04Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Serial-related declarations have strictly stated structural requirements in the serial specification:

https://docs.oracle.com/javase/10/docs/specs/serialization/index.html

Since, to date, these strictures are not checked at compile-time, it is easy to mis-declare a serial related field or method.

Various methods and fields in the JDK are slightly mis-declared, such as extraneous exception types declared to be thrown, and the declarations should be fixed.


Comments
Review thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2018-July/054519.html
20-07-2018