8208060: Additional corrections of serial-related declarations

Reviewed-by: rriggs, lancea
This commit is contained in:
Joe Darcy 2018-07-20 14:46:43 -07:00
parent 9959e34180
commit 07cb147927
9 changed files with 8 additions and 11 deletions

View file

@ -1709,8 +1709,7 @@ class InetAddress implements java.io.Serializable {
return (InetAddressImpl) impl;
}
private void readObjectNoData () throws
IOException, ClassNotFoundException {
private void readObjectNoData () {
if (getClass().getClassLoader() != null) {
throw new SecurityException ("invalid address type");
}