Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-05 Thread Christoph Langer
On Tue, 5 Mar 2024 18:20:39 GMT, Alexey Ivanov wrote: > It looks good to me. > > The only question I have is for the fallback in `awt_Win32GraphicsDevice.cpp`. > > Bailing out quickly makes the code cleaner. In this case, if `::GetDIBits` > fails, we can bail out too. > > If the fallback is n

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9]

2024-03-05 Thread Christoph Langer
On Wed, 6 Mar 2024 07:50:08 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >> [JDK-8269529](https://bugs.ope

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-05 Thread Christoph Langer
On Tue, 5 Mar 2024 18:00:51 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> load awt.dll before display check > > src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 35: >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9]

2024-03-05 Thread Christoph Langer
> The assertions reported in the bug were observed spuriously and here and > there broke tests in some Windows configurations. > For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), > [JDK-8269529](https://bugs.openjdk.org/browse/JDK-8269529) or > [JDK-8323664](https://bugs.o

Re: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v10]

2024-03-05 Thread Renjith Kannath Pariyangad
> Hi Reviewers, > > Updated manual printer test cases with 'PassFailJFrame', also removed unused > variables. Added 'SkippedException' in case of printer missing or not > configured. > > Please review and let me know your suggestions. > > Regards, > Renjith Renjith Kannath Pariyangad has upda

Re: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v11]

2024-03-05 Thread Renjith Kannath Pariyangad
> Hi Reviewers, > > Updated manual printer test cases with 'PassFailJFrame', also removed unused > variables. Added 'SkippedException' in case of printer missing or not > configured. > > Please review and let me know your suggestions. > > Regards, > Renjith Renjith Kannath Pariyangad has upda

Re: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10]

2024-03-05 Thread Renjith Kannath Pariyangad
On Tue, 5 Mar 2024 13:07:30 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with >> one additional commit since the last revision: >> >> Updated instruction > > test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 74: > >> 72:

Integrated: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed

2024-03-05 Thread Abhishek Kumar
On Thu, 22 Feb 2024 11:11:01 GMT, Abhishek Kumar wrote: > Menu mnemonic doesn't toggle between show and hide state when F10 is pressed. > Behavior is not similar to windows native application. Fix is to ensure that > menu mnemonic state toggles between show and hide. > > Can be verified with S

Re: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v12]

2024-03-05 Thread Renjith Kannath Pariyangad
> Hi Reviewers, > > Updated manual printer test cases with 'PassFailJFrame', also removed unused > variables. Added 'SkippedException' in case of printer missing or not > configured. > > Please review and let me know your suggestions. > > Regards, > Renjith Renjith Kannath Pariyangad has upda

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-03-05 Thread Alexey Ivanov
On Fri, 16 Feb 2024 08:45:59 GMT, Christoph Langer wrote: >> src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp >> line 191: >> >>> 189: return; >>> 190: } >>> 191: VERIFY(::GetDIBits(hBMDC, hBM, 0, 1, NULL, gpBitmapInfo, >>> DIB_RGB_COLORS)); >> >> I t

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-05 Thread Alexey Ivanov
On Fri, 1 Mar 2024 08:01:08 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >> [JDK-8269529](https://bugs.ope

Re: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2]

2024-03-05 Thread Alexey Ivanov
> The implementation of `Win32ShellFolder2.compareTo` is inconsistent: there > are cases where > `a < b & b < c but a == c` > which *violates its general contract*. > > In particular, it happens for the personal folder (*Documents*) if it is > listed *twice*: as a special and as a regular fo

RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent

2024-03-05 Thread Alexey Ivanov
The implementation of `Win32ShellFolder2.compareTo` is inconsistent: there are cases where `a < b & b < c but a == c` which *violates its general contract*. In particular, it happens for the personal folder (*Documents*) if it is listed *twice*: as a special and as a regular folder. The eva

RE: how to get find out the keyboard shortcut for the paste action?

2024-03-05 Thread mark.yagnatinsky
Thanks, this was educational. I never even thought about how localization might affect all this. -Original Message- From: Aleksei Ivanov Sent: Tuesday, March 5, 2024 10:41 AM To: Yagnatinsky, Mark : Markets Pre Trade ; micklen...@gmail.com; client-libs-dev@openjdk.org Subject: Re: how

Re: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions [v2]

2024-03-05 Thread Alexey Ivanov
On Mon, 4 Mar 2024 18:10:04 GMT, Phil Race wrote: > And capitalise "We", and "In" since they begin sentences I agree, yet it's not always followed in the comments. > If we are going to fix that, we might as well fix the entire sentence. Thank you for your suggestion. The sentence didn't sound

Re: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions [v2]

2024-03-05 Thread Alexey Ivanov
> A trivial change in a comment: consequent → _consecutive_ positions. > > This was found in [a code > review](https://github.com/openjdk/jdk/pull/8328#discussion_r872596373) for > [JDK-8285306](https://bugs.openjdk.org/browse/JDK-8285306). Alexey Ivanov has updated the pull request incremental

Re: how to get find out the keyboard shortcut for the paste action?

2024-03-05 Thread Aleksei Ivanov
Hello Mark, As far as I know, the shortcuts are localisable. For example, you use Ctrl+S to save a file in an English version, yet users of Spanish version of Windows use Ctrl+G (for Guardar) instead. At the same time, the most common actions — Cut, Copy and Paste as well as Undo and Redo —

Re: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v3]

2024-03-05 Thread Alexey Ivanov
On Tue, 13 Feb 2024 12:06:46 GMT, Renjith Kannath Pariyangad wrote: >> test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 48: >> >>> 46: "For non-windows OS, this test PASSes.\n" + >>> 47: "You must have at least 2 printers available to perform >>> this test.

Re: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v9]

2024-03-05 Thread Alexey Ivanov
On Mon, 4 Mar 2024 06:48:18 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> Updated manual printer test cases with 'PassFailJFrame', also removed unused >> variables. Added 'SkippedException' in case of printer missing or not >> configured. >> >> Please review and let me know y

Re: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10]

2024-03-05 Thread Alexey Ivanov
On Mon, 4 Mar 2024 06:33:09 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> Updated manual printer test cases with 'PassFailJFrame', also removed unused >> variables. Added 'SkippedException' in case of printer missing or not >> configured. >> >> Please review and let me know y

Re: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10]

2024-03-05 Thread Alexey Ivanov
On Mon, 4 Mar 2024 06:33:09 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> Updated manual printer test cases with 'PassFailJFrame', also removed unused >> variables. Added 'SkippedException' in case of printer missing or not >> configured. >> >> Please review and let me know y

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5]

2024-03-05 Thread Maxim Kartashev
On Tue, 5 Mar 2024 10:44:53 GMT, Tejesh R wrote: >> Maxim Kartashev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Made the test to waitForIdle() > > test/jdk/java/awt/Frame/Iconify/IconifiedToFront.java line 41: > >> 39: >> 40: publi

Re: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v6]

2024-03-05 Thread Alexey Ivanov
On Tue, 13 Feb 2024 14:01:40 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with >> one additional commit since the last revision: >> >> Fixed compiler error > > test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 53: > >> 51:

Re: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v11]

2024-03-05 Thread Alexey Ivanov
On Mon, 4 Mar 2024 06:04:07 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> Updated manual printer test cases with 'PassFailJFrame', also removed unused >> variables. Added 'SkippedException' in case of printer missing or not >> configured. >> >> Please review and let me know y

Re: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6]

2024-03-05 Thread Abhishek Kumar
On Tue, 5 Mar 2024 12:17:07 GMT, Alexey Ivanov wrote: >>>private static final int EXPECTED = 5; >> >> this var is used only in main, so I kept it as local variable. > > There's a difference between _a local variable_ that it is now and _a > constant_ declared at the class level. In the latter c

Re: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v7]

2024-03-05 Thread Alexey Ivanov
On Tue, 5 Mar 2024 12:27:28 GMT, Abhishek Kumar wrote: >> Menu mnemonic doesn't toggle between show and hide state when F10 is >> pressed. Behavior is not similar to windows native application. Fix is to >> ensure that menu mnemonic state toggles between show and hide. >> >> Can be verified wi

Re: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v7]

2024-03-05 Thread Abhishek Kumar
> Menu mnemonic doesn't toggle between show and hide state when F10 is pressed. > Behavior is not similar to windows native application. Fix is to ensure that > menu mnemonic state toggles between show and hide. > > Can be verified with SwingSet2 application. > CI tests are green with the fix.

Re: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6]

2024-03-05 Thread Alexey Ivanov
On Tue, 5 Mar 2024 12:13:05 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 58: >> >>> 56: public static void main(String[] args) throws Exception { >>> 57: >>> UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); >>>

Re: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6]

2024-03-05 Thread Abhishek Kumar
On Tue, 5 Mar 2024 11:44:56 GMT, Alexey Ivanov wrote: >private static final int EXPECTED = 5; this var is used only in main, so I kept it as local variable. - PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1512718810

Re: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6]

2024-03-05 Thread Alexey Ivanov
On Tue, 5 Mar 2024 06:08:00 GMT, Abhishek Kumar wrote: >> Menu mnemonic doesn't toggle between show and hide state when F10 is >> pressed. Behavior is not similar to windows native application. Fix is to >> ensure that menu mnemonic state toggles between show and hide. >> >> Can be verified wi

Re: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2]

2024-03-05 Thread Alexey Ivanov
On Tue, 5 Mar 2024 11:07:13 GMT, Alexey Ivanov wrote: >> Ensure access to the `filesLoader` field of `BasicDirectoryModel` is >> synchronized. >> >> Without synchronization, a thread checks if `filesLoader` is not null and >> creates a new `FilesLoader` thread. If the thread is pre-empted betw

Re: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5]

2024-03-05 Thread Abhishek Kumar
On Tue, 5 Mar 2024 08:18:38 GMT, Prasanta Sadhukhan wrote: > Also, the enabled state are still not handled The enabled state is not handled in Metal LAF also, tried adding the enabledText property by setting ui property -- `UIManager.getDefaults().put("CheckBox.enabledText", checkboxColor);`

Re: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2]

2024-03-05 Thread Alexey Ivanov
On Tue, 5 Mar 2024 09:24:52 GMT, Andrey Turbanov wrote: >> Alexey Ivanov has updated the pull request incrementally with four >> additional commits since the last revision: >> >> - Replace synchronized invalidateFileCache with synchronized block inside >> - Declare DoChangeContents constructo

Re: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2]

2024-03-05 Thread Alexey Ivanov
> Ensure access to the `filesLoader` field of `BasicDirectoryModel` is > synchronized. > > Without synchronization, a thread checks if `filesLoader` is not null and > creates a new `FilesLoader` thread. If the thread is pre-empted between these > two operations, another thread or even several t

Re: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2]

2024-03-05 Thread Alexey Ivanov
On Tue, 5 Mar 2024 00:48:13 GMT, Sergey Bylokhov wrote: >> Alexey Ivanov has updated the pull request incrementally with four >> additional commits since the last revision: >> >> - Replace synchronized invalidateFileCache with synchronized block inside >> - Declare DoChangeContents constructo

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5]

2024-03-05 Thread Tejesh R
On Tue, 5 Mar 2024 10:16:58 GMT, Maxim Kartashev wrote: >> XToolkit implements `toFront()` essentially by sending the >> `_NET_ACTIVE_WINDOW` message to activate the window. This has no effect when >> the target window is in the iconified state. So the fix is to cancel that >> state prior to

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v4]

2024-03-05 Thread Maxim Kartashev
On Tue, 5 Mar 2024 09:31:25 GMT, Tejesh R wrote: >> Maxim Kartashev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Fixed for Windows also >> >> And made the test not dependent on swing. > > test/jdk/java/awt/Frame/Iconify/Iconified

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5]

2024-03-05 Thread Maxim Kartashev
> XToolkit implements `toFront()` essentially by sending the > `_NET_ACTIVE_WINDOW` message to activate the window. This has no effect when > the target window is in the iconified state. So the fix is to cancel that > state prior to sending the message. > > The test verifies that the fix works

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v4]

2024-03-05 Thread Tejesh R
On Tue, 5 Mar 2024 08:55:05 GMT, Maxim Kartashev wrote: >> XToolkit implements `toFront()` essentially by sending the >> `_NET_ACTIVE_WINDOW` message to activate the window. This has no effect when >> the target window is in the iconified state. So the fix is to cancel that >> state prior to

Re: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache

2024-03-05 Thread Andrey Turbanov
On Mon, 4 Mar 2024 20:21:30 GMT, Alexey Ivanov wrote: > Ensure access to the `filesLoader` field of `BasicDirectoryModel` is > synchronized. > > Without synchronization, a thread checks if `filesLoader` is not null and > creates a new `FilesLoader` thread. If the thread is pre-empted between t

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux

2024-03-05 Thread Maxim Kartashev
On Fri, 23 Feb 2024 21:51:30 GMT, Phil Race wrote: >> XToolkit implements `toFront()` essentially by sending the >> `_NET_ACTIVE_WINDOW` message to activate the window. This has no effect when >> the target window is in the iconified state. So the fix is to cancel that >> state prior to sendi

Re: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache

2024-03-05 Thread Andrey Turbanov
On Mon, 4 Mar 2024 20:21:30 GMT, Alexey Ivanov wrote: > Ensure access to the `filesLoader` field of `BasicDirectoryModel` is > synchronized. > > Without synchronization, a thread checks if `filesLoader` is not null and > creates a new `FilesLoader` thread. If the thread is pre-empted between t

Re: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v4]

2024-03-05 Thread Maxim Kartashev
> XToolkit implements `toFront()` essentially by sending the > `_NET_ACTIVE_WINDOW` message to activate the window. This has no effect when > the target window is in the iconified state. So the fix is to cancel that > state prior to sending the message. > > The test verifies that the fix works

Re: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5]

2024-03-05 Thread Prasanta Sadhukhan
On Tue, 5 Mar 2024 05:28:01 GMT, Abhishek Kumar wrote: >> JLabel text is not painted with the LAF defined foreground color in GTK LAF. >> In GTK LAF the foreground color is retrieved by using native system APIs. >> Fix is to return the foreground color if it is set by LAF defined property >> o

Re: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4]

2024-03-05 Thread Prasanta Sadhukhan
On Tue, 5 Mar 2024 06:54:40 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JRadioButton/4314194/bug4314194.java line 43: >> >>> 41: import javax.swing.UIManager; >>> 42: import javax.swing.UnsupportedLookAndFeelException; >>> 43: import javax.swing.plaf.nimbus.NimbusLookAndFeel; >> >> this