JDK-8203263 : Remove unnecessary throws clauses from serialization-related methods
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-16
  • Updated: 2018-07-26
  • Resolved: 2018-07-18
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 :  
Relates :  
Description
A handful of serialization-related methods in awt and beans have unnecessary throws clauses on their serialization-related methods. These should be removed.
Comments
Review threads: http://mail.openjdk.java.net/pipermail/awt-dev/2018-July/014166.html http://mail.openjdk.java.net/pipermail/beans-dev/2018-July/000369.html
18-07-2018

For writeObject methods, the serialization spec requires the following declaration for a writeObject method: private void writeObject(ObjectOutputStream stream) throws IOException; https://docs.oracle.com/javase/10/docs/specs/serialization/output.html#the-writeobject-method Declaring writeObject to throw additional exceptions is improper.
17-07-2018