JDK-8205397 : InetAddress has wrong declaration for readObjectNoData
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8,11
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-06-20
  • Updated: 2018-07-07
  • Resolved: 2018-06-27
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 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The java.net.InetAddress class has the declaration

    private void readObjectNoData (ObjectInputStream s) throws
                         IOException, ClassNotFoundException { ...

This is incorrect; it should not have an ObjectInputStream parameter. The recommended declaration from the java.io.Serializable doc is as follows:

    private void readObjectNoData() throws ObjectStreamException