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

Inconsistent use of semicolon in the code snippet of java.io.Serializable javadoc

    XMLWordPrintable

Details

    Description

      A DESCRIPTION OF THE PROBLEM :
      Near the top of the Javadoc for the java.io.Serializable interface, the following paragraph is written:
       Classes that require special handling during the serialization and deserialization process must implement special methods with these exact signatures:

       private void writeObject(java.io.ObjectOutputStream out)
           throws IOException
       private void readObject(java.io.ObjectInputStream in)
           throws IOException, ClassNotFoundException;
       private void readObjectNoData()
           throws ObjectStreamException;
       
      Note that the first abstract method declaration does not have a semicolon at the end, while the other two have a semicolon at the end.


      Attachments

        Issue Links

          Activity

            People

              rriggs Roger Riggs
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: