JDK-8227392 : Colors with alpha are painted incorrectly on Linux, after JDK-8214579
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11.0.5,11.0.5-oracle,13,14
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-07-05
  • Updated: 2021-11-19
  • Resolved: 2019-07-16
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 13 JDK 14
11.0.5-oracleFixed 13 b30Fixed 14Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Testsuite name:JCK manual
Test name:api/java_awt/interactive/ColorTests.html
Product tested:OracleJDK 13b26(64bit)/JCK13b09
                        OpenJDK 13b26(64bit)/JCK13b09
OS/architecture:Oel7.5 uek x64 

Actual behavior:
The panel on the right does not display the color of the float alpha value indicated,please refer to ColorTest0003.png.
Comments
11u Fix Request: I would like to backport this patch to 11u, as it is on Oracle 11u backport list. The original patch does not apply cleanly. However, the conflict is minor, as quarantined test is not on 11u's problem list.
05-08-2019

URL: https://hg.openjdk.java.net/jdk/jdk13/rev/20c686ec8135 User: alitvinov Date: 2019-07-16 14:30:22 +0000
16-07-2019

Verified that this bug is caused by the fix for the bug JDK-8214579. The reported tests: "ColorTest0003", "ColorTest0004" from the test "api/java_awt/interactive/ColorTests.html" fail with JDK 14 compiled from the latest version of the code in "jdk/client" repository and do not fail with JDK 14 compiled from the same source code but with backed out JDK-8214579. Intend to back out the mentioned fix from JDK 14, JDK 13, JDK 11.0.5-oracle and do not see a practical value in leaving it in JDK 14, because it will just complicate process of porting of the new future version of the fix for issue reported in JDK-8214579 to JDK 13, JDK 11 updates.
10-07-2019

Review thread: https://mail.openjdk.java.net/pipermail/2d-dev/2019-July/010179.html
10-07-2019

I suppose for 13 it is safest to back out 8214579. A re-do of that fix maybe should consider that it the problem was for 16 bit Xserver depth, that we do not enable Xrender in such a case since it apparently does not have the necessary support. I haven't done anything to verify this approach, but it might be the easiest thing to do if Xrender can't be easily made to support 16 bit without causing other regressions.
09-07-2019