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

Typos in javadoc of OIS.readObjectOverride and OOS.writeObjectOverride

XMLWordPrintable

    • b24
    • generic
    • generic
    • Not verified

        The public javadoc for following methods:
         
        java.io.ObjectInputStream.readObjectOverride()
        see link below:
        http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectInputStream.html#readObjectOverride(
         
        java.io.ObjectOutputStream.writeObjectOverride(Object obj)
        see link below:
        http://java.sun.com/j2se/1.5.0/docs/api/java/io/ObjectOutputStream.html#writeObjectOverride(java.lang.Object
         
        contains several typos related with wrong wording about using classes in executed context. Suggested fixes are listed below:
         
        javadoc for method java.io.ObjectInputStream.readObjectOverride():
         
        > This method is called by trusted subclasses of ObjectOutputStream
        > that constructed ObjectOutputStream using the protected no-arg
        > constructor. The subclass is expected to provide an override method
        > with the modifier "final".
         
        should be fixed as:
         
        This method is called by trusted subclasses of ObjectInputStream
        that constructed ObjectInputStream using the protected no-arg
        constructor. The subclass is expected to provide an override method
        with the modifier "final".
         
        javadoc for method java.io.ObjectOutputStream.writeObjectOverride(Object obj):
         
        > Method used by subclasses to override the default writeObject
        > method. This method is called by trusted subclasses of
        > ObjectInputStream that constructed ObjectInputStream using the
        > protected no-arg constructor. The subclass is expected to provide
        > an override method with the modifier "final".
         
        should be fixed as:
         
        Method used by subclasses to override the default writeObject
        method. This method is called by trusted subclasses of
        ObjectOutputStream that constructed ObjectOutputStream using the
        protected no-arg constructor. The subclass is expected to provide an
        override method with the modifier "final".

              chegar Chris Hegarty
              aozerov Andrey Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: