RFR: 8364583: ColorConvertOp fails for CMYK → RGB conversion

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Nov 4 12:26:08 UTC 2025


On Tue, 14 Oct 2025 05:25:44 GMT, Phil Race <prr at openjdk.org> wrote:

> color is initially returned as 4 element array but we over-write with 3 element and so next time through the loop it is used by but is too short.
> More details in JBS.

Marked as reviewed by psadhukhan (Reviewer).

test/jdk/java/awt/image/ColorConvertOp/ColorConvertOpCMYK.java line 49:

> 47:         ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_sRGB);
> 48:         ColorConvertOp convertOp = new ColorConvertOp(cs, null);
> 49:         BufferedImage rgb = convertOp.filter(source, null);

rgb variable can be removed...

-------------

PR Review: https://git.openjdk.org/jdk/pull/27785#pullrequestreview-3416180330
PR Review Comment: https://git.openjdk.org/jdk/pull/27785#discussion_r2490306903


More information about the client-libs-dev mailing list