Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Tejesh R
On Wed, 17 Apr 2024 06:18:39 GMT, Tejesh R wrote: >> The logical || operator doesn't check second condition if first condition is >> true. It checks second condition only if first one is false. >> So as per current logic, if RED component is not equal, it doesn't check for >> GREEN and BLUE com

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Abhishek Kumar
On Wed, 17 Apr 2024 06:24:51 GMT, Tejesh R wrote: >> Exactly, similar thing applies to && and hence in failure condition || >> checks for all the colors while && drops off at first failure only. Which is >> why I suggested it would be better for failure cases. > > Yeah, its `!=` here right, the

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v4]

2024-04-16 Thread Tejesh R
On Wed, 17 Apr 2024 04:31:16 GMT, Abhishek Kumar wrote: >> Test was failing on GTK and Windows LAF due to pixel color mismatch. Th >> reason behind this issue was the size of image which is different and that >> results in incorrect pixel comparison. Fix is to ensure that correct pixel >> is m

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Tejesh R
On Wed, 17 Apr 2024 06:09:32 GMT, Abhishek Kumar wrote: >> I meant to use `&&` so that comparisons for failure case fails faster than >> `||`. >> Similar to this: >> ` if ((c1.getRed() == c2.getRed()) >> && (c1.getBlue() == c2.getBlue()) >> && (c1.getGreen() == c2.getGre

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Abhishek Kumar
On Wed, 17 Apr 2024 05:45:38 GMT, Tejesh R wrote: >>> This condition can be optimized since the test is done for all LAF and for >>> each this method is called twice. Instead of using ||, using && would >>> optimized slightly. You can check for `true` where it checks for `==` and >>> returns t

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Tejesh R
On Wed, 17 Apr 2024 05:17:03 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JComboBox/DisabledComboBoxFontTestAuto.java line 125: >> >>> 123: private static boolean isColorMatching(Color c1, Color c2) { >>> 124: if ((c1.getRed() != c2.getRed()) >>> 125: || (c1.getBlue

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Abhishek Kumar
On Wed, 17 Apr 2024 04:25:43 GMT, Tejesh R wrote: > This condition can be optimized since the test is done for all LAF and for > each this method is called twice. Instead of using ||, using && would > optimized slightly. You can check for `true` where it checks for `==` and > returns true. Its

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Abhishek Kumar
On Wed, 17 Apr 2024 04:06:34 GMT, Tejesh R wrote: > I guess `testDir` can be moved inside `testMethod()` method where it is used. Updated. - PR Comment: https://git.openjdk.org/jdk/pull/18644#issuecomment-2060326726

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Tejesh R
On Tue, 16 Apr 2024 04:16:26 GMT, Abhishek Kumar wrote: >> Test was failing on GTK and Windows LAF due to pixel color mismatch. Th >> reason behind this issue was the size of image which is different and that >> results in incorrect pixel comparison. Fix is to ensure that correct pixel >> is m

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v4]

2024-04-16 Thread Abhishek Kumar
> Test was failing on GTK and Windows LAF due to pixel color mismatch. Th > reason behind this issue was the size of image which is different and that > results in incorrect pixel comparison. Fix is to ensure that correct pixel is > matched and the pixel color should remain within tolerance. >

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Tejesh R
On Tue, 16 Apr 2024 04:16:26 GMT, Abhishek Kumar wrote: >> Test was failing on GTK and Windows LAF due to pixel color mismatch. Th >> reason behind this issue was the size of image which is different and that >> results in incorrect pixel comparison. Fix is to ensure that correct pixel >> is m

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Damon Nguyen
On Tue, 16 Apr 2024 04:16:26 GMT, Abhishek Kumar wrote: >> Test was failing on GTK and Windows LAF due to pixel color mismatch. Th >> reason behind this issue was the size of image which is different and that >> results in incorrect pixel comparison. Fix is to ensure that correct pixel >> is m

Re: RFR: 8330107: Separate out "awt" libraries from Awt2dLibraries.gmk [v3]

2024-04-16 Thread Phil Race
On Tue, 16 Apr 2024 10:03:27 GMT, Magnus Ihse Bursie wrote: >> The file to build most of the java.desktop native libraries, >> Awt2dLibraries.gmk, is large and unstructured, making it hard to navigate. >> >> I want to split it into two parts, one for the AWT libraries, and one for >> the 2D li

Re: RFR: 8330107: Separate out "awt" libraries from Awt2dLibraries.gmk [v3]

2024-04-16 Thread Magnus Ihse Bursie
On Tue, 16 Apr 2024 10:03:27 GMT, Magnus Ihse Bursie wrote: >> The file to build most of the java.desktop native libraries, >> Awt2dLibraries.gmk, is large and unstructured, making it hard to navigate. >> >> I want to split it into two parts, one for the AWT libraries, and one for >> the 2D li

Re: RFR: 8330107: Separate out "awt" libraries from Awt2dLibraries.gmk [v3]

2024-04-16 Thread Magnus Ihse Bursie
On Tue, 16 Apr 2024 10:03:27 GMT, Magnus Ihse Bursie wrote: >> The file to build most of the java.desktop native libraries, >> Awt2dLibraries.gmk, is large and unstructured, making it hard to navigate. >> >> I want to split it into two parts, one for the AWT libraries, and one for >> the 2D li

Re: RFR: 8330107: Separate out "awt" libraries from Awt2dLibraries.gmk [v3]

2024-04-16 Thread Phil Race
On Tue, 16 Apr 2024 10:03:27 GMT, Magnus Ihse Bursie wrote: >> The file to build most of the java.desktop native libraries, >> Awt2dLibraries.gmk, is large and unstructured, making it hard to navigate. >> >> I want to split it into two parts, one for the AWT libraries, and one for >> the 2D li

Re: RFR: 8226990: GTK & Nimbus LAF: Tabbed pane's background color is not expected one when change the opaque checkbox. [v4]

2024-04-16 Thread Abhishek Kumar
On Mon, 1 Apr 2024 21:29:09 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> condition combined > > Changes requested by honkar (Reviewer). @honkar-jdk There are few changes after you last re

Re: RFR: 8314592: Add shortcut to SymbolLookup::find [v4]

2024-04-16 Thread Jorn Vernee
On Mon, 15 Apr 2024 14:02:56 GMT, Per Minborg wrote: >> While `SymbolLookup` correctly uses an `Optional` return to denote whether a >> symbol has been found by the lookup or not (which enables composition of >> symbol lookups), many clients end up just calling `Optional::get`, or >> `Optional

Re: RFR: 8289770: Remove Windows version macro from ShellFolder2.cpp

2024-04-16 Thread Alexey Ivanov
On Tue, 16 Apr 2024 06:58:19 GMT, Sergey Bylokhov wrote: >> This clean-up PR removes unused Windows version macro from >> `ShellFolder2.cpp`. >> >> `IS_WINVISTA` was not used at all. >> >> `IS_WINXP` guarded support for icons with alpha channel. It is now safe to >> assume Java runs on a Wind

Re: RFR: 8330107: Separate out "awt" libraries from Awt2dLibraries.gmk

2024-04-16 Thread Magnus Ihse Bursie
On Fri, 12 Apr 2024 22:44:35 GMT, Phil Race wrote: >> @prrace I will need your assistance in confirming that my understanding >> about the AWT vs 2D split is correct. In particular, `libosxui` gave me some >> headache, but after trying to dig into the code my understanding ended up >> being th

Re: RFR: 8330107: Split Awt2dLibraries.gmk into separate AWT and 2D files [v3]

2024-04-16 Thread Magnus Ihse Bursie
> The file to build most of the java.desktop native libraries, > Awt2dLibraries.gmk, is large and unstructured, making it hard to navigate. > > I want to split it into two parts, one for the AWT libraries, and one for the > 2D libraries. I also used this opportunity to change the order to be mor

Re: RFR: 8330107: Split Awt2dLibraries.gmk into separate AWT and 2D files [v2]

2024-04-16 Thread Magnus Ihse Bursie
> The file to build most of the java.desktop native libraries, > Awt2dLibraries.gmk, is large and unstructured, making it hard to navigate. > > I want to split it into two parts, one for the AWT libraries, and one for the > 2D libraries. I also used this opportunity to change the order to be mor

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v2]

2024-04-16 Thread Abhishek Kumar
On Tue, 16 Apr 2024 07:13:02 GMT, Sergey Bylokhov wrote: >> Updated. > > Can the initial bug "JComboBox has correct font color when disabled" be > verified with this change? This change works fine with initial bug. Test failed if I comment out the fix proposed in initial bug for Nimbus LAF. -

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Abhishek Kumar
On Tue, 16 Apr 2024 07:13:48 GMT, Sergey Bylokhov wrote: > As far as I understand the test creates two enabled-JComboBox, then disables > both, and then compares the disabled and enabled images. Why there are some > differences in sizes and colors? Not sure about this.. but there is a mention

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v3]

2024-04-16 Thread Sergey Bylokhov
On Tue, 16 Apr 2024 04:16:26 GMT, Abhishek Kumar wrote: >> Test was failing on GTK and Windows LAF due to pixel color mismatch. Th >> reason behind this issue was the size of image which is different and that >> results in incorrect pixel comparison. Fix is to ensure that correct pixel >> is m

Re: RFR: 8310072: JComboBox/DisabledComboBoxFontTestAuto: Enabled and disabled ComboBox does not match in these LAFs: GTK+ [v2]

2024-04-16 Thread Sergey Bylokhov
On Tue, 16 Apr 2024 04:09:47 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JComboBox/DisabledComboBoxFontTestAuto.java line 58: >> >>> 56: >>> 57: private static void createCombo() { >>> 58: combo = new JComboBox(); >> >> If we can use unicode blank character instead of "Simpl

Re: RFR: 8289770: Remove Windows version macro from ShellFolder2.cpp

2024-04-16 Thread Sergey Bylokhov
On Thu, 11 Apr 2024 09:33:09 GMT, Alexey Ivanov wrote: > This clean-up PR removes unused Windows version macro from `ShellFolder2.cpp`. > > `IS_WINVISTA` was not used at all. > > `IS_WINXP` guarded support for icons with alpha channel. It is now safe to > assume Java runs on a Windows version