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

contradiction in description of getDestinationType()

    • beta2
    • generic
    • generic



      Name: vrR10176 Date: 06/09/2001



      Api spec (jdk1.4.0beta-b67) says about the method
      javax.imageio.IIOParam.getDestinationType():

      "public ImageTypeSpecifier getDestinationType()
        Returns the type of image to be returned by the read, if one
      was set by a call to setDestination(ImageTypeSpecifier), as an
      ImageTypeSpecifier. If none was set, null is returned.
                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      Returns:
        an ImageTypeSpecifier describing the destination type, or null.
      Throws:
        IllegalStateException - if no type was set."
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      The sentences of this description "If none was set, null is returned."
      and "IllegalStateException - if no type was set." are inconsistent.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: