JDK-8326661 : sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8,11,17,21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-02-26
  • Updated: 2024-05-06
  • Resolved: 2024-03-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21 JDK 23 JDK 8
11.0.24-oracleFixed 17.0.12-oracleFixed 21.0.4-oracleFixed 23 b14Fixed 8u421Fixed
Related Reports
Relates :  
Relates :  
Description
JDK uses LCMS as a default colour management module. So the test ColConvTest.java expects that every profile is generated by LCMS. That does not look correct. 
For example if some other profile (not generated by LCMS is used) the following tests will be failed even if LCMS library still used for colour conversion:

sun/java2d/cmm/ColorConvertOp/ColConvCCMTest.java 
sun/java2d/cmm/ColorConvertOp/MTColConvTest.java
Comments
Fix request [11u] I backport this for parity with 11.0.24-oracle. No risk, only tests change. Clean backport. Test pass. SAP nightly testing passed.
28-03-2024

Fix request [17u] I backport this for parity with 17.0.11-oracle. No risk, only tests change. Clean backport.The failed GHA test is not related. Test pass. SAP nightly testing passed.
28-03-2024

Fix request [21u] I backport this for parity with 21.0.3-oracle. No risk, only a test change. Clean backport. The failed GHA test is not related. Test pass. SAP nightly testing passed.
28-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2626 Date: 2024-03-27 02:34:54 +0000
27-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/411 Date: 2024-03-27 02:10:03 +0000
27-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2331 Date: 2024-03-26 07:19:58 +0000
26-03-2024

Changeset: 1f43fa0f Author: Dmitry Markov <dmarkov@openjdk.org> Date: 2024-03-12 10:09:02 +0000 URL: https://git.openjdk.org/jdk/commit/1f43fa0f8b0f956b41015e0ebc257e15a11ad99b
12-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18097 Date: 2024-03-03 09:01:49 +0000
03-03-2024

JDK uses LCMS as a default colour management module but the test sun/java2d/cmm/ColorConvertOp/ColConvTest.java has some redundant LCMS check. In particular the method isOpenProfile() retrieves profile header and expects to see ‘lcms’ ID there. It used to be OK until recent LCMS update where the CMM started to keep original profile ID instead of writing ‘lcms’ to returned header. In other words starting from LCMS 2.16 if NOT LCMS-generated profile is used the test ColConvTest and related tests likely will fail.
03-03-2024