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

typos in description of setSourceRegion() method

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: vrR10176 Date: 05/08/2001



      Api spec (jdk1.4.0beta-b63) says about method
      javax.imageio.IIOParam.setSourceRegion():

      "public void setSourceRegion(Rectangle sourceRegion)
        Sets the source region of interest.
      ...
      Throws:
        IllegalArgumentException - if sourceRegion is null-null and
                                                      ~~~~~~~~~
          either sourceRegion.x or sourceRegion.y is negative.
        IllegalArgumentException - if sourceRegion is null-null and
                                                      ~~~~~~~~~
          either sourceRegion.width or sourceRegion.height is negative or 0.
        IllegalStateException - if subsampling is such that this region
          will have a subsampled width of zero."

      Obviously used in description 'null-null' is a typo.

      Also in sentence "IllegalStateException - if subsampling is
      such that this region will have a subsampled width of zero."
      words 'or height' should be added. The sentence should be read
      as "IllegalStateException - if subsampling is such that this
      region will have a subsampled width or height of zero."

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: