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

awt.Color constructors don't throw exceptions on out of range parameters

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Not verified

      Description


      According to the spec,

      Color(float, float, float) takes float values between 0 and 1,

      Color(int) takes an int value between 0 and 0xffffff,

      and Color(int, int, int) takes int values between 0 and 255.


      However, each of these, if given values out of their respective ranges,
      does not throw an exception.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gsaab Georges Saab
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: