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

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

    XMLWordPrintable

Details

    • 1.1
    • sparc
    • solaris_2.5.1
    • 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

              gsaab Georges Saab
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: