<AWT Dev> JDK 12 RFR of JDK-8203263: Remove unnecessary throws clauses from serialization-related methods

Joseph D. Darcy joe.darcy at oracle.com
Wed Jul 18 22:59:49 UTC 2018


I suspect it might have been a copy-and-paste issue since the 
declaration for readObject has those two exception types:

private void readObject(ObjectInputStream stream)
     throws IOException, ClassNotFoundException;

and (to date) we haven't have programmatic checks of this aspect of the 
serial-related declarations.

Thanks,

-Joe

On 7/18/2018 3:17 PM, Phil Race wrote:
> Looks fine to me. I checked Font and MenuBar in JDK 1.x sources and 
> they were
> like that way back then, so why they declare the additional exception 
> is lost in time ..
>
> -phil.
>
>



More information about the awt-dev mailing list