Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v7]

2023-12-05 Thread Tejesh R
On Tue, 5 Dec 2023 19:35:50 GMT, Abhishek Kumar wrote: >> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. >> For `DIRECTORIES_ONLY `mode, there may not be any directories in home >> directory and due to that test failed. Added the code to create temporary >> directori

Re: RFR: 8321176: [Screencast] make a second attempt on screencast failure, improve pipewire error handling

2023-12-05 Thread Alexander Zvegintsev
On Tue, 5 Dec 2023 16:48:55 GMT, Anton Bobrov wrote: > This patch adds re-try logic to libpipewire screencast error handling as > discussed in PR #16794 and also brings some additional error handling and > thread safety improvements. Specifically around cleanup order where incorrect > ordering

Re: RFR: 8321176: [Screencast] make a second attempt on screencast failure, improve pipewire error handling

2023-12-05 Thread Alexander Zvegintsev
On Tue, 5 Dec 2023 20:45:58 GMT, Anton Bobrov wrote: >> src/java.desktop/unix/classes/sun/awt/screencast/ScreencastHelper.java line >> 223: >> >>> 221: } else if (retVal == ERROR) { >>> 222: throw new RuntimeException( >>> 223: "Screen capture has failed due

Re: proposing the depreciation of java.beans.beancontext.*

2023-12-05 Thread Philip Race
Larry, I submitted https://bugs.openjdk.org/browse/JDK-8321428. I've assigned it to you, on the assumption you are interested. Obviously no particular urgency around this. -phil. On 9/21/23 4:48 PM, Laurence Cable wrote: Hi Phillip, inline ... On 9/21/23 4:16 PM, Philip Race wrote: Hi Larry,

Integrated: 8321325: Remove unused Java_java_awt_MenuComponent_initIDs function

2023-12-05 Thread Sergey Bylokhov
On Tue, 5 Dec 2023 08:30:44 GMT, Sergey Bylokhov wrote: > The Java_java_awt_MenuComponent_initIDs function is empty on Windows and > macOS, on linux it has some code but it is unused. > > This issue is similar to https://bugs.openjdk.org/browse/JDK-8318091 This pull request has now been integr

Re: RFR: 8321176: [Screencast] make a second attempt on screencast failure, improve pipewire error handling

2023-12-05 Thread Anton Bobrov
On Tue, 5 Dec 2023 20:22:32 GMT, Phil Race wrote: >> This patch adds re-try logic to libpipewire screencast error handling as >> discussed in PR #16794 and also brings some additional error handling and >> thread safety improvements. Specifically around cleanup order where >> incorrect orderin

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v4]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 20:38:46 GMT, Phil Race wrote: >> For as long as we've had the macOS port, it seems that queries on the >> GraphicsConfiguration associated with >> a printer would give you null for the defaultTransform. >> Clearly this API isn't a popular one to call in such a context else we

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 20:32:49 GMT, Phil Race wrote: >> With JDK 17, I still see the exception: >> >> >> Exception in thread "main" java.awt.print.PrinterException >> at java.desktop/sun.lwawt.macosx.CPrinterJob.print(CPrinterJob.java:393) >> at PrinterDevice.main(PrinterDevice.java:68)

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Phil Race
On Tue, 5 Dec 2023 20:25:46 GMT, Alexey Ivanov wrote: >> On JDK 17 and earlier you will reach this line with this test as written >> And without that exception, the test would pass when it should fail. > > With JDK 17, I still see the exception: > > > Exception in thread "main" java.awt.print.P

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v3]

2023-12-05 Thread Phil Race
On Tue, 5 Dec 2023 20:28:28 GMT, Alexey Ivanov wrote: >> Phil Race has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8320443 > > test/jdk/java/awt/print/PrinterJob/PrinterDevice.java line 109: > >> 107: GraphicsDevice gd = gConfig

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v3]

2023-12-05 Thread Alexander Zvegintsev
On Tue, 5 Dec 2023 20:13:50 GMT, Phil Race wrote: >> For as long as we've had the macOS port, it seems that queries on the >> GraphicsConfiguration associated with >> a printer would give you null for the defaultTransform. >> Clearly this API isn't a popular one to call in such a context else we

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v4]

2023-12-05 Thread Phil Race
> For as long as we've had the macOS port, it seems that queries on the > GraphicsConfiguration associated with > a printer would give you null for the defaultTransform. > Clearly this API isn't a popular one to call in such a context else we'd have > had lots of reports. > We have a test that wo

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v3]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 20:13:50 GMT, Phil Race wrote: >> For as long as we've had the macOS port, it seems that queries on the >> GraphicsConfiguration associated with >> a printer would give you null for the defaultTransform. >> Clearly this API isn't a popular one to call in such a context else we

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 20:07:56 GMT, Phil Race wrote: >> test/jdk/java/awt/print/PrinterJob/PrinterDevice.java line 71: >> >>> 69: if (failed) { >>> 70: throw new RuntimeException("Test failed but no exception >>> propagated."); >>> 71: } >> >> A comment that `pj.print`

Re: RFR: 8321176: [Screencast] make a second attempt on screencast failure, improve pipewire error handling

2023-12-05 Thread Phil Race
On Tue, 5 Dec 2023 16:48:55 GMT, Anton Bobrov wrote: > This patch adds re-try logic to libpipewire screencast error handling as > discussed in PR #16794 and also brings some additional error handling and > thread safety improvements. Specifically around cleanup order where incorrect > ordering

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Alexander Zvegintsev
On Tue, 5 Dec 2023 19:41:54 GMT, Alexey Ivanov wrote: >> Phil Race has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8320443 > > test/jdk/java/awt/print/PrinterJob/PrinterDevice.java line 52: > >> 50: public class PrinterDevice implements

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Phil Race
On Tue, 5 Dec 2023 20:07:15 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/print/PrinterJob/PrinterDevice.java line 52: >> >>> 50: public class PrinterDevice implements Printable { >>> 51: >>> 52: static volatile boolean failed = false; >> >> Is it really needed? In all the cases w

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Phil Race
On Tue, 5 Dec 2023 19:45:34 GMT, Alexey Ivanov wrote: >> Phil Race has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8320443 > > test/jdk/java/awt/print/PrinterJob/PrinterDevice.java line 30: > >> 28: * @summary Checks that the PrinterGr

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v3]

2023-12-05 Thread Phil Race
> For as long as we've had the macOS port, it seems that queries on the > GraphicsConfiguration associated with > a printer would give you null for the defaultTransform. > Clearly this API isn't a popular one to call in such a context else we'd have > had lots of reports. > We have a test that wo

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v7]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 19:35:50 GMT, Abhishek Kumar wrote: >> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. >> For `DIRECTORIES_ONLY `mode, there may not be any directories in home >> directory and due to that test failed. Added the code to create temporary >> directori

Re: RFR: 8320443: [macos] Test java/awt/print/PrinterJob/PrinterDevice.java fails on macOS [v2]

2023-12-05 Thread Alexey Ivanov
On Mon, 4 Dec 2023 23:31:47 GMT, Phil Race wrote: >> For as long as we've had the macOS port, it seems that queries on the >> GraphicsConfiguration associated with >> a printer would give you null for the defaultTransform. >> Clearly this API isn't a popular one to call in such a context else we

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v7]

2023-12-05 Thread Abhishek Kumar
> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. For > `DIRECTORIES_ONLY `mode, there may not be any directories in home directory > and due to that test failed. Added the code to create temporary directories > and files for the test. > Tested the current change on the

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v6]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 19:21:52 GMT, Abhishek Kumar wrote: >> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. >> For `DIRECTORIES_ONLY `mode, there may not be any directories in home >> directory and due to that test failed. Added the code to create temporary >> directori

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v4]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 18:36:13 GMT, Abhishek Kumar wrote: > > Is it intentional? It's the problem in > > [JDK-6972078](https://bugs.openjdk.org/browse/JDK-6972078)… that > > directories can't be selected. > > Not intentional though. Thought of creating a single folder with the mix of > files and

Integrated: 8318590: JButton ignores margin when painting HTML text

2023-12-05 Thread Damon Nguyen
On Tue, 28 Nov 2023 23:40:45 GMT, Damon Nguyen wrote: > The initial issue was a padding issue for JButton when HTML content was set > as the button's text. > [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), > [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and > [JDK-83

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v5]

2023-12-05 Thread Harshitha Onkar
On Tue, 5 Dec 2023 19:05:12 GMT, Damon Nguyen wrote: > > @DamonGuy Reverted changes fixes the issue. Since you are reverting #12520, > > shouldn't the corresponding test HtmlButtonWithTextAndIcon.java be reverted > > too? Copyright years need to be updated for some files. > > Alexander brought

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v6]

2023-12-05 Thread Harshitha Onkar
On Tue, 5 Dec 2023 19:11:48 GMT, Damon Nguyen wrote: >> The initial issue was a padding issue for JButton when HTML content was set >> as the button's text. >> [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), >> [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and >> [JD

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v6]

2023-12-05 Thread Abhishek Kumar
> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. For > `DIRECTORIES_ONLY `mode, there may not be any directories in home directory > and due to that test failed. Added the code to create temporary directories > and files for the test. > Tested the current change on the

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v5]

2023-12-05 Thread Damon Nguyen
On Tue, 5 Dec 2023 18:18:53 GMT, Damon Nguyen wrote: >> The initial issue was a padding issue for JButton when HTML content was set >> as the button's text. >> [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), >> [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and >> [JD

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v6]

2023-12-05 Thread Damon Nguyen
> The initial issue was a padding issue for JButton when HTML content was set > as the button's text. > [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), > [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and > [JDK-8302173](https://bugs.openjdk.org/browse/JDK-8302173) are

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v5]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 18:34:52 GMT, Abhishek Kumar wrote: >> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. >> For `DIRECTORIES_ONLY `mode, there may not be any directories in home >> directory and due to that test failed. Added the code to create temporary >> directori

Re: RFR: 8320365: IPPPrintService.getAttributes() causes blanket re-initialisation

2023-12-05 Thread Alexander Zvegintsev
On Mon, 20 Nov 2023 23:58:30 GMT, Phil Race wrote: > Whilst reviewing the fix for https://bugs.openjdk.org/browse/JDK-7001133 I > realised that although the proposed > changes there may help, the problem would be inconsequential except that if > anything causes an app to > call PrintService.get

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v4]

2023-12-05 Thread Abhishek Kumar
On Tue, 5 Dec 2023 13:49:44 GMT, Alexey Ivanov wrote: >> Abhishek Kumar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review comment fix > > test/jdk/com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java > line 217:

Re: RFR: 8319938: TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array" [v4]

2023-12-05 Thread Abhishek Kumar
On Tue, 5 Dec 2023 14:00:33 GMT, Alexey Ivanov wrote: > So, `FILES_AND_DIRECTORIES` mode is tested with directories only. Is it > intentional? It's the problem in > [JDK-6972078](https://bugs.openjdk.org/browse/JDK-6972078)… that directories > can't be selected. Yes, it is tested with directo

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v4]

2023-12-05 Thread Abhishek Kumar
On Tue, 5 Dec 2023 18:09:39 GMT, Alexey Ivanov wrote: >> Abhishek Kumar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Review comment fix > > Is it possible to shorten the subject of the issue? It is too long and wordy, > yet it doesn'

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v5]

2023-12-05 Thread Abhishek Kumar
> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. For > `DIRECTORIES_ONLY `mode, there may not be any directories in home directory > and due to that test failed. Added the code to create temporary directories > and files for the test. > Tested the current change on the

Re: RFR: 8320365: IPPPrintService.getAttributes() causes blanket re-initialisation

2023-12-05 Thread Alexey Ivanov
On Mon, 20 Nov 2023 23:58:30 GMT, Phil Race wrote: > Whilst reviewing the fix for https://bugs.openjdk.org/browse/JDK-7001133 I > realised that although the proposed > changes there may help, the problem would be inconsequential except that if > anything causes an app to > call PrintService.get

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v5]

2023-12-05 Thread Harshitha Onkar
On Tue, 5 Dec 2023 18:18:53 GMT, Damon Nguyen wrote: >> The initial issue was a padding issue for JButton when HTML content was set >> as the button's text. >> [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), >> [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and >> [JD

Re: RFR: 8316497 : ColorConvertOp - typo for non-ICC conversions needs one-line fix

2023-12-05 Thread Alexey Ivanov
On Thu, 30 Nov 2023 03:34:08 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > There was a typo for color conversion instead of dstColorSpace function > srcColorSpace was used. Please review and let me know your suggestions if > any. > > Renjith. The fix looks good to me. I agree w

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v5]

2023-12-05 Thread Alexander Zvegintsev
On Tue, 5 Dec 2023 18:15:40 GMT, Damon Nguyen wrote: >> The initial issue was a padding issue for JButton when HTML content was set >> as the button's text. >> [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), >> [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and >> [JD

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v5]

2023-12-05 Thread Damon Nguyen
> The initial issue was a padding issue for JButton when HTML content was set > as the button's text. > [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), > [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and > [JDK-8302173](https://bugs.openjdk.org/browse/JDK-8302173) are

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v4]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 12:17:55 GMT, Abhishek Kumar wrote: >> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. >> For `DIRECTORIES_ONLY `mode, there may not be any directories in home >> directory and due to that test failed. Added the code to create temporary >> directori

Re: RFR: 8321325: Remove unused Java_java_awt_MenuComponent_initIDs function

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 08:30:44 GMT, Sergey Bylokhov wrote: > The Java_java_awt_MenuComponent_initIDs function is empty on Windows and > macOS, on linux it has some code but it is unused. > > This issue is similar to https://bugs.openjdk.org/browse/JDK-8318091 Marked as reviewed by aivanov (Review

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v4]

2023-12-05 Thread Damon Nguyen
> The initial issue was a padding issue for JButton when HTML content was set > as the button's text. > [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), > [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and > [JDK-8302173](https://bugs.openjdk.org/browse/JDK-8302173) are

Integrated: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab

2023-12-05 Thread Alisen Chung
On Tue, 28 Nov 2023 22:34:44 GMT, Alisen Chung wrote: > Added delays to stabilize test, test passes 50 times consecutively This pull request has now been integrated. Changeset: db5613af Author:Alisen Chung URL: https://git.openjdk.org/jdk/commit/db5613af89a2d4ab5a8998ad1d43384778974

Re: RFR: 8321325: Remove unused Java_java_awt_MenuComponent_initIDs function

2023-12-05 Thread Phil Race
On Tue, 5 Dec 2023 08:30:44 GMT, Sergey Bylokhov wrote: > The Java_java_awt_MenuComponent_initIDs function is empty on Windows and > macOS, on linux it has some code but it is unused. > > This issue is similar to https://bugs.openjdk.org/browse/JDK-8318091 Marked as reviewed by prr (Reviewer).

Integrated: 8320349: Simplify FileChooserSymLinkTest.java by using single-window testUI

2023-12-05 Thread Alexey Ivanov
On Fri, 17 Nov 2023 20:21:32 GMT, Alexey Ivanov wrote: > Update `FileChooserSymLinkTest.java` to simplify its implementation by > replacing `List` with `JFrame` of its `createTestUI` which now uses > `PassFailJFrame.Builder testUI(PassFailJFrame.WindowCreator)` instead of > `PassFailJFrame.Bui

Re: RFR: 8320349: Simplify FileChooserSymLinkTest.java by using single-window testUI [v3]

2023-12-05 Thread Alexey Ivanov
> Update `FileChooserSymLinkTest.java` to simplify its implementation by > replacing `List` with `JFrame` of its `createTestUI` which now uses > `PassFailJFrame.Builder testUI(PassFailJFrame.WindowCreator)` instead of > `PassFailJFrame.Builder testUI(PassFailJFrame.WindowListCreator)`. > > The

Re: RFR: 8318590: JButton ignores margin when painting HTML text [v3]

2023-12-05 Thread Phil Race
On Thu, 30 Nov 2023 18:34:18 GMT, Damon Nguyen wrote: >> The initial issue was a padding issue for JButton when HTML content was set >> as the button's text. >> [JDK-8282772](https://bugs.openjdk.org/browse/JDK-8282772), >> [JDK-8015854](https://bugs.openjdk.org/browse/JDK-8015854), and >> [J

Re: RFR: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab [v4]

2023-12-05 Thread Harshitha Onkar
On Tue, 5 Dec 2023 17:25:54 GMT, Alisen Chung wrote: >> Added delays to stabilize test, test passes 50 times consecutively > > Alisen Chung has updated the pull request incrementally with one additional > commit since the last revision: > > updated test delays Fix looks good and works on old

Re: RFR: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab [v4]

2023-12-05 Thread Alexander Zvegintsev
On Tue, 5 Dec 2023 17:25:54 GMT, Alisen Chung wrote: >> Added delays to stabilize test, test passes 50 times consecutively > > Alisen Chung has updated the pull request incrementally with one additional > commit since the last revision: > > updated test delays Marked as reviewed by azvegint

Re: RFR: 8320349: Simplify FileChooserSymLinkTest.java by using single-window testUI [v2]

2023-12-05 Thread Alexey Ivanov
> Update `FileChooserSymLinkTest.java` to simplify its implementation by > replacing `List` with `JFrame` of its `createTestUI` which now uses > `PassFailJFrame.Builder testUI(PassFailJFrame.WindowCreator)` instead of > `PassFailJFrame.Builder testUI(PassFailJFrame.WindowListCreator)`. > > The

Re: RFR: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab [v2]

2023-12-05 Thread Alisen Chung
On Tue, 5 Dec 2023 01:12:12 GMT, Alexander Zvegintsev wrote: >> Updated changes not reflected on the PR. > > I don't see the 100 ms changes either, looks like you didn't push the commit. oops! just pushed - PR Review Comment: https://git.openjdk.org/jdk/pull/16867#discussion_r1416

Re: RFR: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab [v3]

2023-12-05 Thread Alisen Chung
On Tue, 5 Dec 2023 06:26:03 GMT, Alisen Chung wrote: >> Added delays to stabilize test, test passes 50 times consecutively > > Alisen Chung has updated the pull request incrementally with one additional > commit since the last revision: > > updated test @azvegint @honkar-jdk i've updated the

Re: RFR: 8317288: [macos] java/awt/Window/Grab/GrabTest.java: Press on the outside area didn't cause ungrab [v4]

2023-12-05 Thread Alisen Chung
> Added delays to stabilize test, test passes 50 times consecutively Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: updated test delays - Changes: - all: https://git.openjdk.org/jdk/pull/16867/files - new: https://g

Integrated: 8320303: Allow PassFailJFrame to accept single window creator

2023-12-05 Thread Alexey Ivanov
On Fri, 17 Nov 2023 20:01:55 GMT, Alexey Ivanov wrote: > Enhance `PassFailJFrame` for single-window test UI which is the most common > case so that there's no need to return `List.of`. > > With this change, the lambda or method reference passed to `Builder.testUI` > will return Window instead

Re: RFR: 8321176: [Screencast] make a second attempt on screencast failure, improve pipewire error handling

2023-12-05 Thread Anton Bobrov
On Tue, 5 Dec 2023 16:48:55 GMT, Anton Bobrov wrote: > This patch adds re-try logic to libpipewire screencast error handling as > discussed in PR #16794 and also brings some additional error handling and > thread safety improvements. Specifically around cleanup order where incorrect > ordering

RFR: 8321176: [Screencast] make a second attempt on screencast failure, improve pipewire error handling

2023-12-05 Thread Anton Bobrov
This patch adds re-try logic to libpipewire screencast error handling as discussed in PR #16794 and also brings some additional error handling and thread safety improvements. Specifically around cleanup order where incorrect ordering lead to native memory corruption issues, and lock/unlock accou

Re: RFR: 8316497 : ColorConvertOp - typo for non-ICC conversions needs one-line fix

2023-12-05 Thread Renjith Kannath Pariyangad
On Thu, 30 Nov 2023 19:20:50 GMT, Sergey Bylokhov wrote: >> Hi Reviewers, >> There was a typo for color conversion instead of dstColorSpace function >> srcColorSpace was used. Please review and let me know your suggestions if >> any. >> >> Renjith. > > Can this patch be covered by the new te

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking [v2]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 14:24:09 GMT, Prasanta Sadhukhan wrote: > But it can be a bug in the code that it never gave a chance second time..I > think it should get a chance to reload the URL again in case it is invalid > the 1st time so I guess the change should be the one where if url is invalid,

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking [v2]

2023-12-05 Thread Prasanta Sadhukhan
On Tue, 5 Dec 2023 14:09:42 GMT, Alexey Ivanov wrote: > > > if the URL is invalid, the image isn't loaded > > > > > > As per your change, if URL is invalid ie url = null, image is not loaded > > but `loadedImage` is set to true so it will not give another chance to load > > the URL again via

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking [v2]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 07:59:19 GMT, Prasanta Sadhukhan wrote: >> CSS.BackgroundImage.getImage uses double-checked locking but the loadedImage >> field isn't declared as volatile. Without the volatile modifier, >> double-checked locking implementation is broken. > > Prasanta Sadhukhan has updated

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v4]

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 12:17:55 GMT, Abhishek Kumar wrote: >> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. >> For `DIRECTORIES_ONLY `mode, there may not be any directories in home >> directory and due to that test failed. Added the code to create temporary >> directori

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking

2023-12-05 Thread Prasanta Sadhukhan
On Tue, 5 Dec 2023 13:02:36 GMT, Alexey Ivanov wrote: > if the URL is invalid, the image isn't loaded if (!loadedImage) { URL url = CSS.getURL(base, svalue); if (url != null) { image = new ImageIcon();

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking

2023-12-05 Thread Alexey Ivanov
On Tue, 5 Dec 2023 07:55:22 GMT, Prasanta Sadhukhan wrote: > > > > It is probably easy just drop the usage of loadedImage and use the > > > > image instead? > > > > > > > > > Ideally. Yet there's a corner case: if `url` is null, there's nothing to > > > load; and it doesn't make sense to re-

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v3]

2023-12-05 Thread Abhishek Kumar
On Tue, 5 Dec 2023 12:12:34 GMT, Abhishek Kumar wrote: >> To eliminate duplicating code for disposing of the frame, create a helper >> method and call it from the `finally` block. > >> `fileChooser.setFileSelectionMode` that you call below should be called on >> EDT, I suggest moving it into th

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v3]

2023-12-05 Thread Abhishek Kumar
On Mon, 4 Dec 2023 21:00:58 GMT, Alexey Ivanov wrote: >> Abhishek Kumar has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Test update > > test/jdk/com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java > line 1: > >> 1:

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v3]

2023-12-05 Thread Abhishek Kumar
On Mon, 4 Dec 2023 20:53:51 GMT, Alexey Ivanov wrote: >> test/jdk/com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java >> line 143: >> >>> 141: createAndShowUI(); >>> 142: fileChooser.setCurrentDirectory(testDir); >>> 143: }); >>

Re: RFR: 8319938: com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java fails with "getSelectedFiles returned empty array for LAF: javax.swing.plaf.metal.MetalLookAndFeel" [v4]

2023-12-05 Thread Abhishek Kumar
> The test fails for JFileChooser selection mode set to `DIRECTORIES_ONLY`. For > `DIRECTORIES_ONLY `mode, there may not be any directories in home directory > and due to that test failed. Added the code to create temporary directories > and files for the test. > Tested the current change on the

RFR: 8321325: Remove unused Java_java_awt_MenuComponent_initIDs function

2023-12-05 Thread Sergey Bylokhov
The Java_java_awt_MenuComponent_initIDs function is empty on Windows and macOS, on linux it has some code but it is unused. This issue is similar to https://bugs.openjdk.org/browse/JDK-8318091 - Commit messages: - date - cleanup Changes: https://git.openjdk.org/jdk/pull/16965/fil

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking [v2]

2023-12-05 Thread Prasanta Sadhukhan
> CSS.BackgroundImage.getImage uses double-checked locking but the loadedImage > field isn't declared as volatile. Without the volatile modifier, > double-checked locking implementation is broken. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the

Re: RFR: 8319925: CSS.BackgroundImage incorrectly uses double-checked locking

2023-12-05 Thread Prasanta Sadhukhan
On Mon, 4 Dec 2023 21:51:15 GMT, Sergey Bylokhov wrote: > > > It is probably easy just drop the usage of loadedImage and use the image > > > instead? > > > > > > Ideally. Yet there's a corner case: if `url` is null, there's nothing to > > load; and it doesn't make sense to re-try, the URL won