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

ICC_ColorSpace#minVal/maxVal have the opposite description

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 22
    • 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

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

              Created:
              Updated:
              Resolved: