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.



Reply via email to