ICC_ColorSpace#minVal/maxVal have the opposite description

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 22
    • Component/s: client-libs
    • None
    • 2d
    • source
    • minimal
    • spec update only
    • Java API
    • SE

      Summary

      Typo in the spec which changes the meaning of the ICC_ColorSpace#minVal/maxVal fields to the opposite.

      Solution

      The specification should be updated according to the actual behavior of these fields.

      Specification

      src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java

            /**
      --     * The maximum normalized component values.
      +      * The minimum normalized component values.
             */
            private float[] minVal;
       
            /**
      --     * The minimum normalized component values.
      +      * The maximum normalized component values.
             */
            private float[] maxVal;
      

      link for convenience https://github.com/openjdk/jdk/pull/15216

            Assignee:
            Sergey Bylokhov
            Reporter:
            Sergey Bylokhov
            Alexander Zvegintsev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: