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

Specification of ImageInputStreamImpl.finalize() method is not clear

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Not verified



      Name: vpR10011 Date: 06/01/2001



      Description of the javax.imageio.stream.ImageInputStreamImpl.finalize()
      was copied from class java.lang.Object.

      But there is no "throws" part in the signature of
      ImageInputStreamImpl.finalize().

      Moreover, the description of the ImageInputStreamImpl.finalize()
      contains additional section:
      "Overrides:
              finalize in class Object
              Following copied from class: java.lang.Object"

      It isn't clear if the javax.imageio.stream.ImageInputStreamImpl
      overrides Object.finalize() method as the description says.
      Or it inherits the finalize() method from the class Object because
      descriptions of these methods are the same.

      In my opinion if ImageInputStreamImpl.finalize() overrides
      Object.finalize() then specification should describe
      the behavior of the overriding method explicitly.



      ======================================================================

            dricesunw Daniel Rice (Inactive)
            verapsunw Verap Verap (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: