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

ColorConvertOp - typo for non-ICC conversions needs one-line fix

XMLWordPrintable

    • 2d
    • b06
    • generic
    • generic

        A DESCRIPTION OF THE PROBLEM :
        There is a very simple typo in java/awt/image/ColorConvertOp.java - which has been there since - probably - forever, but at least Java 8. Line 288 has

           color = srcColorSpace.fromCIEXYZ(dstColor);

        it should be

           color = dstColorSpace.fromCIEXYZ(dstColor);

        This is immediately obvious if you look at it, and is such a simple fix. Clearly the conversion will currently be at best incorrect, but will most-likely crash.


        FREQUENCY : always


              rkannathpari Renjith Kannath Pariyangad
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: