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

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.5.1
    • Not verified


      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.

            Assignee:
            Georges Saab
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: