Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8205397

InetAddress has wrong declaration for readObjectNoData

XMLWordPrintable

    • b20
    • Not verified

        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

              dfuchs Daniel Fuchs
              smarks Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: