Re: RFR: 8366750: Remove test 'java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java' from problemlist [v2]

2025-09-04 Thread Prasanta Sadhukhan
On Fri, 5 Sep 2025 06:12:35 GMT, Sarvesh Kumar Jain wrote: >> that was for 21 not mainline.. > > there are 2 links, first one is ML, 2nd is 21. ok - PR Review Comment: https://git.openjdk.org/jdk/pull/27085#discussion_r2324205903

Re: RFR: 8366750: Remove test 'java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java' from problemlist [v2]

2025-09-04 Thread Prasanta Sadhukhan
On Fri, 5 Sep 2025 05:31:31 GMT, Sarvesh Kumar Jain wrote: >> The test is problem listed with incorrect bug JDK-6849371, >> The bug JDK-6849371 is for a different test and it is closed. >> A new bug has been raised for ChoiceMouseWheelTest.java test failure. > > Sarvesh Kumar Jain has updated the

Re: RFR: 8366750: Remove test 'java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java' from problemlist [v2]

2025-09-04 Thread Sarvesh Kumar Jain
On Fri, 5 Sep 2025 05:47:08 GMT, Prasanta Sadhukhan wrote: >> Sarvesh Kumar Jain has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Updated with new bugid > > test/jdk/ProblemList.txt line 263: > >> 261: java/awt/print/PrinterJob/PSQuesti

Re: RFR: 8366750: Remove test 'java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java' from problemlist [v2]

2025-09-04 Thread Prasanta Sadhukhan
On Fri, 5 Sep 2025 05:31:31 GMT, Sarvesh Kumar Jain wrote: >> The test is problem listed with incorrect bug JDK-6849371, >> The bug JDK-6849371 is for a different test and it is closed. >> A new bug has been raised for ChoiceMouseWheelTest.java test failure. > > Sarvesh Kumar Jain has updated the

Re: RFR: 8366750: Remove test 'java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java' from problemlist [v2]

2025-09-04 Thread Sarvesh Kumar Jain
> The test is problem listed with incorrect bug JDK-6849371, > The bug JDK-6849371 is for a different test and it is closed. > A new bug has been raised for ChoiceMouseWheelTest.java test failure. Sarvesh Kumar Jain has updated the pull request incrementally with one additional commit since the l

Re: RFR: 8365569: Remove finalize from JavaSoundAudioClip.java

2025-09-04 Thread Phil Race
On Wed, 3 Sep 2025 04:37:21 GMT, Tejesh R wrote: >> No it was not an error. This is content moved from another file. Files are >> an artificial division. It is the same content. > > Ok, so when we create a new file and move the contents from old file as part > of refactoring we retain the copyr

Re: RFR: 8251928: [macos] the printer DPI always be 72, cause some content lost when print out [v5]

2025-09-04 Thread Phil Race
On Thu, 4 Sep 2025 17:42:20 GMT, GennadiyKrivoshein wrote: >> The fix for the https://bugs.openjdk.org/browse/JDK-8251928. >> >> **Description**. >> This PR contains changes to be able to print with DPI higher than 72 on >> macOS, set default CPrinterJob DPI is 300 like in the PSPrinterJob. >>

Re: RFR: 8251928: [macos] the printer DPI always be 72, cause some content lost when print out [v4]

2025-09-04 Thread Phil Race
On Thu, 4 Sep 2025 17:39:19 GMT, GennadiyKrivoshein wrote: > This is the expected behavior, the same as on other OS. I checked the > GraphicsConfiguration on Windows 11, Ubuntu 22.04 and macOS 10.15 with DPI > 300 and A4 format. The device boundaries on macOS are 1 pixel different. The > conso

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v38]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 18:24:02 GMT, Alexey Ivanov wrote: >> Khalid Boulanouare has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Removes MULTI_FRAME_TEST instance variable and cleans up code > > test/jdk/java/awt/Mixing/AWT_Mixing/MixingPanel

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 18:26:21 GMT, Alexey Ivanov wrote: >> Done. > > This is not done. Sorry, I have missed this one. I have done it now. Thanks. - PR Review Comment: https://git.openjdk.org/jdk/pull/25971#discussion_r2323603804

Re: Possible BufferedImage.getRGB optimization

2025-09-04 Thread Philip Race
It doesn't seem like a change that needs a project. I would make sure that call to colorModel.getRGB(..) isn't needed and I think that you aren't doing that. Basically it needs to be sRGB already (as that is the target color space). -phil. On 9/4/25 1:37 PM, Daniel Gredler wrote: Hi Jeremy, L

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 14:12:50 GMT, Alexey Ivanov wrote: >> Khalid Boulanouare has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Organizes imports > > test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java line 28: > >> 26: im

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v38]

2025-09-04 Thread Alexey Ivanov
On Thu, 4 Sep 2025 16:18:42 GMT, Khalid Boulanouare wrote: >> Many Mixing tests failed because the work around click lands on the >> minimizing area in the window control and causes the tests to fail. >> >> This fix changes the width of base frames which allows most of tests to pass. > > Khalid

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Alexey Ivanov
On Thu, 4 Sep 2025 15:54:29 GMT, Khalid Boulanouare wrote: >> test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java line 76: >> >>> 74: return true; >>> 75: } >>> 76: public SimpleOverlappingTestBase() { >> >> Suggestion: >> >> } >> >> public SimpleOverlap

Re: RFR: 8339791: Refactor MiscUndecorated/ActiveAWTWindowTest.java [v3]

2025-09-04 Thread Srinivas Mandalika
On Thu, 4 Sep 2025 08:32:23 GMT, Srinivas Mandalika wrote: >> The java/awt/Frame/MiscUndecorated/ActiveAWTWindowTest.java test uses object >> monitors and wait/notify to synchronise actions in the test. >> >> Using CountDownLatch could make the test simpler, shorter, clearer. >> Tested the cod

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v35]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request incrementally with one ad

RFR: 8366750: Remove test 'java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java' from problemlist

2025-09-04 Thread Sarvesh Kumar Jain
The test is problem listed with incorrect bug JDK-6849371, The bug JDK-6849371 is for a different test and it is closed. A new bug has been raised for ChoiceMouseWheelTest.java test failure. - Commit messages: - correct typographical error - 8366750: Remove test 'java/awt/Choice/Ch

Re: RFR: 8251928: [macos] the printer DPI always be 72, cause some content lost when print out [v4]

2025-09-04 Thread GennadiyKrivoshein
On Wed, 3 Sep 2025 22:26:55 GMT, Phil Race wrote: >> GennadiyKrivoshein has updated the pull request incrementally with one >> additional commit since the last revision: >> >> remove setDevClip usage. Update names. Handle page format orientation. > > src/java.desktop/macosx/classes/sun/lwawt/

Re: RFR: 8251928: [macos] the printer DPI always be 72, cause some content lost when print out [v5]

2025-09-04 Thread GennadiyKrivoshein
> The fix for the https://bugs.openjdk.org/browse/JDK-8251928. > > **Description**. > This PR contains changes to be able to print with DPI higher than 72 on > macOS, set default CPrinterJob DPI is 300 like in the PSPrinterJob. > > As described in the macOS drawing guide, the following steps are

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v30]

2025-09-04 Thread Alexey Ivanov
On Wed, 3 Sep 2025 09:22:17 GMT, Khalid Boulanouare wrote: >> Many Mixing tests failed because the work around click lands on the >> minimizing area in the window control and causes the tests to fail. >> >> This fix changes the width of base frames which allows most of tests to pass. > > Khalid

Re: RFR: 8347277: java/awt/Focus/ComponentLostFocusTest.java fails intermittently [v3]

2025-09-04 Thread Sergey Bylokhov
On Wed, 3 Sep 2025 05:23:02 GMT, Manukumar V S wrote: >> Issue: >> java/awt/Focus/ComponentLostFocusTest.java fails intermittently(2/40) with >> an exception " Execution failed: `main' threw exception: >> java.lang.RuntimeException: TextField got no focus! Test failed." >> I have seen it failin

Re: RFR: 8364363: Update and automate jtreg manual test [v4]

2025-09-04 Thread Damon Nguyen
On Mon, 25 Aug 2025 10:13:04 GMT, Alexey Ivanov wrote: >> @aivanov-jdk Is problem-listing this test the ideal solution? > > @DamonGuy If you believe there's a bug on macOS, I agree with your > evaluation, then problem-listing is a good solution. > > For completeness, post a link to the bug that

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v33]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request incrementally with one ad

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request incrementally with one ad

Re: RFR: 8366844: Update and automate MouseDraggedOriginatedByScrollBarTest.java [v2]

2025-09-04 Thread Alexey Ivanov
On Tue, 26 Aug 2025 22:36:33 GMT, Damon Nguyen wrote: > Do I have to differentiate between X11 and Wayland though? Do you think it's important? Unless proven otherwise, I say this applies to both modes. - PR Review Comment: https://git.openjdk.org/jdk/pull/26636#discussion_r232121

Re: RFR: 8366844: Update and automate MouseDraggedOriginatedByScrollBarTest.java [v4]

2025-09-04 Thread Alexey Ivanov
On Thu, 28 Aug 2025 05:51:40 GMT, Damon Nguyen wrote: >> When testing jtreg manual tests, some tests were out of date. This PR is an >> attempt at updating the test and automating it. >> >> `MouseDraggedOriginatedByScrollBarTest.java` works as expected when compared >> to native apps and outp

Re: RFR: 8339791: Refactor MiscUndecorated/ActiveAWTWindowTest.java [v3]

2025-09-04 Thread lawrence . andrews
On Thu, 4 Sep 2025 08:32:23 GMT, Srinivas Mandalika wrote: >> The java/awt/Frame/MiscUndecorated/ActiveAWTWindowTest.java test uses object >> monitors and wait/notify to synchronise actions in the test. >> >> Using CountDownLatch could make the test simpler, shorter, clearer. >> Tested the cod

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 14:22:01 GMT, Alexey Ivanov wrote: >> Khalid Boulanouare has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Organizes imports > > test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java line > 115: > >> 11

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v38]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request incrementally with one ad

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 14:38:59 GMT, Alexey Ivanov wrote: >> Khalid Boulanouare has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Organizes imports > > test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java line 36: > >> 34: >

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v30]

2025-09-04 Thread Alexey Ivanov
On Thu, 4 Sep 2025 10:49:40 GMT, Alexey Ivanov wrote: >> Khalid Boulanouare has updated the pull request with a new target base due >> to a merge or a rebase. The incremental webrev excludes the unrelated >> changes brought in by the merge/rebase. The pull request contains 46 >> additional com

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v32]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request incrementally with three

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Alexey Ivanov
On Thu, 4 Sep 2025 13:20:32 GMT, Khalid Boulanouare wrote: >> Many Mixing tests failed because the work around click lands on the >> minimizing area in the window control and causes the tests to fail. >> >> This fix changes the width of base frames which allows most of tests to pass. > > Khalid

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v37]

2025-09-04 Thread Alexey Ivanov
On Thu, 4 Sep 2025 13:20:32 GMT, Khalid Boulanouare wrote: >> Many Mixing tests failed because the work around click lands on the >> minimizing area in the window control and causes the tests to fail. >> >> This fix changes the width of base frames which allows most of tests to pass. > > Khalid

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v30]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 12:24:29 GMT, Khalid Boulanouare wrote: >> The above approach may require additional refactoring, and I see that class >> initialisers are used to set values of flags. > > I suggest the following changes : > > > public GlassPaneOverlappingTestBase() { > this(true);

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v30]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 10:57:21 GMT, Alexey Ivanov wrote: >> Khalid Boulanouare has updated the pull request with a new target base due >> to a merge or a rebase. The incremental webrev excludes the unrelated >> changes brought in by the merge/rebase. The pull request contains 46 >> additional com

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v34]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request incrementally with one ad

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v30]

2025-09-04 Thread Khalid Boulanouare
On Thu, 4 Sep 2025 11:30:13 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java line >> 63: >> >>> 61: { >>> 62: multiFramesTest = false; >>> 63: } >> >> I prefer this is done in a constructor rather than a simple initialiser, it

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v31]

2025-09-04 Thread Alexey Ivanov
On Thu, 4 Sep 2025 11:24:53 GMT, Khalid Boulanouare wrote: >> Many Mixing tests failed because the work around click lands on the >> minimizing area in the window control and causes the tests to fail. >> >> This fix changes the width of base frames which allows most of tests to pass. > > Khalid

Re: RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v31]

2025-09-04 Thread Khalid Boulanouare
> Many Mixing tests failed because the work around click lands on the > minimizing area in the window control and causes the tests to fail. > > This fix changes the width of base frames which allows most of tests to pass. Khalid Boulanouare has updated the pull request with a new target base due