From gli at openjdk.org Fri Mar 1 01:02:52 2024 From: gli at openjdk.org (Guoxiong Li) Date: Fri, 1 Mar 2024 01:02:52 GMT Subject: RFR: 8327040: Problemlist ActionListenerCalledTwiceTest.java test failing in macos14 In-Reply-To: References: Message-ID: On Thu, 29 Feb 2024 11:00:33 GMT, Prasanta Sadhukhan wrote: > javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java is failing in macos14 due to apple os upgrade. More information in [JDK-8316151](https://bugs.openjdk.org/browse/JDK-8316151) > problemlist the test for now.. Looks good. ------------- Marked as reviewed by gli (Committer). PR Review: https://git.openjdk.org/jdk/pull/18058#pullrequestreview-1910131981 From psadhukhan at openjdk.org Fri Mar 1 03:12:54 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 1 Mar 2024 03:12:54 GMT Subject: Integrated: 8327040: Problemlist ActionListenerCalledTwiceTest.java test failing in macos14 In-Reply-To: References: Message-ID: On Thu, 29 Feb 2024 11:00:33 GMT, Prasanta Sadhukhan wrote: > javax/swing/JMenuItem/ActionListenerCalledTwice/ActionListenerCalledTwiceTest.java is failing in macos14 due to apple os upgrade. More information in [JDK-8316151](https://bugs.openjdk.org/browse/JDK-8316151) > problemlist the test for now.. This pull request has now been integrated. Changeset: 0d354503 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/0d354503620eb7f6da7b1b8aa6143ba18ced8f12 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod 8327040: Problemlist ActionListenerCalledTwiceTest.java test failing in macos14 Reviewed-by: prr, gli ------------- PR: https://git.openjdk.org/jdk/pull/18058 From psadhukhan at openjdk.org Fri Mar 1 03:17:46 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 1 Mar 2024 03:17:46 GMT Subject: RFR: 8327007: javax/swing/JSpinner/8008657/bug8008657.java fails In-Reply-To: References: Message-ID: <4VfJO0JRZ561Q7HqCiEe7TcB50MQVCjZxiX2h7zDQjk=.c0dc6e35-ce4a-48c9-a321-059929d85469@github.com> On Thu, 29 Feb 2024 09:34:05 GMT, Prasanta Sadhukhan wrote: > Test failed with the exception java.lang.IllegalArgumentException: (start <= value <= end) with no history of failing till date. > Investigation shows SpinnerDateModel constructor condition is not satisfied because > It seems it's a leap year problem that is being manifested.. > > As per test, > initDate Thu Feb 29 13:49:08 IST 2024 [ obtained by calendar.getTime();] > earliestDate Tue Feb 28 13:49:08 IST 2023 [obtained by calendar.add(Calendar.YEAR, -1);] > latestDate Wed Feb 28 13:49:08 IST 2024 [obtained by calendar.add(Calendar.YEAR, 1);] > > Now, as per SpinnerDateModel constructor > earliestDate <= initDate condition is satisfied > but > latestDate >= initDate is not > so [start <= value <= end](https://github.com/openjdk/jdk/blob/998d0baab0fd051c38d9fd6021628eb863b80554/src/java.desktop/share/classes/javax/swing/SpinnerDateModel.java#L185) condition fails > > Not sure it anything can be done in Calendar class for this but fix is done in test taking leapyear into account so that we add a day if it's a leapyear when we consecutively do Calendar.add(YEAR, -1) and Calendar.add(YEAR,1) on leapyear date of 29Feb > Surely this just needs a one line fix > > diff --git a/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java b/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java > index cbeb0c185bb..49918278e34 100644 > --- a/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java > +++ b/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java > @@ -137,6 +137,7 @@ static void createDateSpinner() { > calendar.add(Calendar.YEAR, -1); > Date earliestDate = calendar.getTime(); > calendar.add(Calendar.YEAR, 1); > + calendar.add(Calendar.DAY_OF_MONTH, 1); > Date latestDate = calendar.getTime(); > SpinnerModel dateModel = new SpinnerDateModel(initDate, > earliestDate, Yes, I did thought about that but thought should we do it irrespectively of leap year or not, so atlast I thought of doing it for leapyear only so that it doesn't affect anyother scenarios... But if you want to add 1 day to it irrespectively and cutshort the added code, I can do it too... ------------- PR Comment: https://git.openjdk.org/jdk/pull/18054#issuecomment-1972396322 From srl at openjdk.org Fri Mar 1 06:17:11 2024 From: srl at openjdk.org (Steven Loomis) Date: Fri, 1 Mar 2024 06:17:11 GMT Subject: RFR: 8195675: Call to insertText with single character from custom Input Method ignored Message-ID: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> 8195675: Call to insertText with single character from custom Input Method ignored ------------- Commit messages: - 8195675: Update AWTView.m - 8195675: [MacOS] fix Keyman input methods on mac Changes: https://git.openjdk.org/jdk/pull/17921/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17921&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8195675 Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/17921.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17921/head:pull/17921 PR: https://git.openjdk.org/jdk/pull/17921 From prr at openjdk.org Fri Mar 1 07:04:55 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 1 Mar 2024 07:04:55 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v7] In-Reply-To: References: Message-ID: On Thu, 29 Feb 2024 22:24:14 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer 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 11 additional commits since the last revision: > > - Change implementation of headless determination on Windows > - Merge branch 'master' into JDK-8185862 > - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() > - Merge branch 'master' into JDK-8185862 > - Get rid of global variables and restore old handling wrt calling ::GetDIBits > - Merge branch 'master' into JDK-8185862 > - Little cleanup > - Review Feedback Alexey > - Merge branch 'master' into JDK-8185862 > - Add comments > - ... and 1 more: https://git.openjdk.org/jdk/compare/db1cc14f...f43da52f Does this new version really work for you ?? I'm getting Execution failed: `main' threw exception: java.lang.UnsatisfiedLinkError: 'boolean sun.awt.PlatformGraphicsInfo.hasDisplays0()' eg from java\awt\Modal\ModalBlockingTests\UnblockedDialogAppModalTest.java It is at least 840 tests that fail .. Since I do see the method in your change .. and in my local copy too, I assume I correctly applied your patch +Java_sun_awt_PlatformGraphicsInfo_hasDisplays0(JNIEnv *env, jclass thisClass) { .. so I wonder if awt.dll is not loaded in time ? It isn't on demand. It needs an explicit loadLibrary("awt") on all paths that can't rely on something else to do it. What tests did you run and in what environment ? ------------- PR Comment: https://git.openjdk.org/jdk/pull/17614#issuecomment-1972620307 From clanger at openjdk.org Fri Mar 1 08:01:08 2024 From: clanger at openjdk.org (Christoph Langer) Date: Fri, 1 Mar 2024 08:01:08 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: > 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.openjdk.org/browse/JDK-8323664) came up due to this. > > The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. > However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. > > I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. > > Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: load awt.dll before display check ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17614/files - new: https://git.openjdk.org/jdk/pull/17614/files/f43da52f..7a00a647 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=07 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=06-07 Stats: 17 lines in 1 file changed: 16 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17614.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17614/head:pull/17614 PR: https://git.openjdk.org/jdk/pull/17614 From clanger at openjdk.org Fri Mar 1 08:01:10 2024 From: clanger at openjdk.org (Christoph Langer) Date: Fri, 1 Mar 2024 08:01:10 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v7] In-Reply-To: References: Message-ID: On Thu, 29 Feb 2024 22:24:14 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer 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 11 additional commits since the last revision: > > - Change implementation of headless determination on Windows > - Merge branch 'master' into JDK-8185862 > - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() > - Merge branch 'master' into JDK-8185862 > - Get rid of global variables and restore old handling wrt calling ::GetDIBits > - Merge branch 'master' into JDK-8185862 > - Little cleanup > - Review Feedback Alexey > - Merge branch 'master' into JDK-8185862 > - Add comments > - ... and 1 more: https://git.openjdk.org/jdk/compare/0924cb1e...f43da52f You're right, the awt lib needs to be loaded before checking isHeadless(). I just looked at the crash in test test/jdk/javax/swing/plaf/windows/6921687/bug6921687.java and resolved it. But the test obviously is not concerned about the headless environment so it doesn't stress that code path. I reproduced the problem with a simple program that just calls GraphicsEnvironment.isHeadless() and fixed it. Please try the headless tests again. Thanks a lot for your help! ------------- PR Comment: https://git.openjdk.org/jdk/pull/17614#issuecomment-1972696714 From gli at openjdk.org Fri Mar 1 10:16:42 2024 From: gli at openjdk.org (Guoxiong Li) Date: Fri, 1 Mar 2024 10:16:42 GMT Subject: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions In-Reply-To: References: Message-ID: On Thu, 29 Feb 2024 15:13:16 GMT, Alexey Ivanov wrote: > 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). Looks good. ------------- Marked as reviewed by gli (Committer). PR Review: https://git.openjdk.org/jdk/pull/18067#pullrequestreview-1910785862 From abhiscxk at openjdk.org Fri Mar 1 10:24:45 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 10:24:45 GMT Subject: RFR: 8326458: Menu mnemonic doesn't toggle between show and hide in Windows LAF when F10 is pressed. [v2] In-Reply-To: <9ZScjChjnZVtMVj6kU_bM-f9FHuBGQx9-ttkX-7xuFk=.9d28d2ba-85b2-4159-96ec-d4cd98cc1fd9@github.com> References: <9ZScjChjnZVtMVj6kU_bM-f9FHuBGQx9-ttkX-7xuFk=.9d28d2ba-85b2-4159-96ec-d4cd98cc1fd9@github.com> Message-ID: On Thu, 29 Feb 2024 11:24:38 GMT, Alexey Ivanov wrote: > You could add @modules java.desktop/com.sun.java.swing.plaf.windows to jtreg tags and access the com.sun.java.swing.plaf.windows.WindowsLookAndFeel.isMnemonicHidden method to verify that the mnemonics are shown or hidden based on how many times you (the Robot) pressed F10 key as well as the menu bar is active or not. How to check for menubar whether it is active or not? Should I check the keyboard focus? ------------- PR Comment: https://git.openjdk.org/jdk/pull/17961#issuecomment-1972919487 From abhiscxk at openjdk.org Fri Mar 1 10:38:21 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 10:38:21 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4] In-Reply-To: References: Message-ID: > 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 otherwise return the default color by calling native APIs. > Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: extended fix for disabled checkbox and radiobutton ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17763/files - new: https://git.openjdk.org/jdk/pull/17763/files/4403e6cc..2ccca3f3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17763&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17763&range=02-03 Stats: 19 lines in 3 files changed: 16 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/17763.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17763/head:pull/17763 PR: https://git.openjdk.org/jdk/pull/17763 From abhiscxk at openjdk.org Fri Mar 1 10:42:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 10:42:55 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4] In-Reply-To: References: Message-ID: On Fri, 1 Mar 2024 10:38:21 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 otherwise return the default color by calling native APIs. >> Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > extended fix for disabled checkbox and radiobutton @prsadhuk I have assigned [JDK-8298153](https://bugs.openjdk.org/browse/JDK-8298153) to me and extended the fix for checkbox and radiobutton here. Fix can be verified using the existing test `test/jdk/javax/swing/JRadioButton/4314194/bug4314194.java`. Removed the test `javax/swing/JRadioButton/4314194/bug4314194.java` from problemlist and tested in CI which is ok. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17763#issuecomment-1972947440 From aivanov at openjdk.org Fri Mar 1 10:44:43 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 1 Mar 2024 10:44:43 GMT Subject: RFR: 8326458: Menu mnemonic doesn't toggle between show and hide in Windows LAF when F10 is pressed. [v2] In-Reply-To: References: <9ZScjChjnZVtMVj6kU_bM-f9FHuBGQx9-ttkX-7xuFk=.9d28d2ba-85b2-4159-96ec-d4cd98cc1fd9@github.com> Message-ID: <4b2Qpx83gAuZrUoUa25JRTWn9T55lfU1ysvrIyYMbgI=.3401db3e-b7b3-4086-bf72-1d154609b1fe@github.com> On Fri, 1 Mar 2024 10:22:16 GMT, Abhishek Kumar wrote: > > You could add @modules java.desktop/com.sun.java.swing.plaf.windows to jtreg tags and access the com.sun.java.swing.plaf.windows.WindowsLookAndFeel.isMnemonicHidden method to verify that the mnemonics are shown or hidden based on how many times you (the Robot) pressed F10 key as well as the menu bar is active or not. > > How to check for menubar whether it is active or not? Should I check the keyboard focus? You have it in the code: MenuElement[] selectedPath = msm.getSelectedPath(); if (selectedPath.length > 0 && (selectedPath[0] instanceof JMenuBar)) { ------------- PR Comment: https://git.openjdk.org/jdk/pull/17961#issuecomment-1972951361 From abhiscxk at openjdk.org Fri Mar 1 11:39:09 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 11:39:09 GMT Subject: RFR: 8326458: Menu mnemonic doesn't toggle between show and hide in Windows LAF when F10 is pressed. [v4] In-Reply-To: References: Message-ID: > 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. Link posted in JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Test case added ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17961/files - new: https://git.openjdk.org/jdk/pull/17961/files/5a0643f5..3adc468d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=02-03 Stats: 136 lines in 2 files changed: 133 ins; 3 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/17961.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17961/head:pull/17961 PR: https://git.openjdk.org/jdk/pull/17961 From abhiscxk at openjdk.org Fri Mar 1 11:39:09 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 11:39:09 GMT Subject: RFR: 8326458: Menu mnemonic doesn't toggle between show and hide in Windows LAF when F10 is pressed. [v3] In-Reply-To: References: Message-ID: <3m33F5uJ8mU3M-VjRlWlCkt8__2gUbhlg923a4ZPbKc=.2cbf97e8-3353-4d9e-8d5c-1763b17d4ec5@github.com> On Thu, 29 Feb 2024 07:48:09 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 SwingSet2 application. >> CI tests are green with the fix. Link posted in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update > > > You could add @modules java.desktop/com.sun.java.swing.plaf.windows to jtreg tags and access the com.sun.java.swing.plaf.windows.WindowsLookAndFeel.isMnemonicHidden method to verify that the mnemonics are shown or hidden based on how many times you (the Robot) pressed F10 key as well as the menu bar is active or not. > > > > > > How to check for menubar whether it is active or not? Should I check the keyboard focus? > > You have it in the code: > > ```java > MenuElement[] selectedPath = msm.getSelectedPath(); > if (selectedPath.length == 0) { > throw new RuntimeException(); > } > if (selectedPath[0] != menuBar || selectedPath[1] != fileMenu) { > throw new RuntimeException(); > } > ``` > > where menuBar is the `JMenuBar` that you created in the test and `fileMenu` is the first `JMenu` in the menu bar. Added the test case. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17961#issuecomment-1973029404 From aivanov at openjdk.org Fri Mar 1 15:20:53 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 1 Mar 2024 15:20:53 GMT Subject: RFR: 8326458: Menu mnemonic doesn't toggle between show and hide in Windows LAF when F10 is pressed. [v4] In-Reply-To: References: Message-ID: <9JVE-TH49B-kvVvfCjSKqvdGUwKnTzJXG1JX7QjSERk=.1564aa9c-26ae-4c46-bc66-fe588cfb403a@github.com> On Fri, 1 Mar 2024 11:39:09 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 SwingSet2 application. >> CI tests are green with the fix. Link posted in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Test case added Changes requested by aivanov (Reviewer). src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsMenuBarUI.java line 1: > 1: /* Please, update the copyright year. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 1: > 1: /* You're modifying `WindowsMenuBarUI`, so the test belongs under `JMenuBar`. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 31: > 29: * @modules java.desktop/com.sun.java.swing.plaf.windows > 30: * @summary Verifies if menu mnemonics toggle between show or hide > 31: * on F10 press in windows LAF. ?Between? implies ?and? (instead of ?or?). However, we can drop that part completely as ?toggle? implies it changes from on to off and so on. Suggestion: * @summary Verifies if menu mnemonics toggle on F10 press in Windows LAF test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 66: > 64: SwingUtilities.invokeAndWait(() -> { > 65: createAndShowUI(); > 66: }); I'm for using method references: Suggestion: SwingUtilities.invokeAndWait(TestMenuMnemonic::createAndShowUI); test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 75: > 73: robot.waitForIdle(); > 74: robot.delay(50); > 75: robot.keyRelease(KeyEvent.VK_F10); You should add `robot.waitForIdle()` to allow the test to process the key release event. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 84: > 82: if (selectedPath.length != 0) { > 83: throw new RuntimeException("Menubar is active even after" + > 84: " mnemonics are hidden"); Suggestion: throw new RuntimeException("Menubar is active after" + " mnemonics are hidden"); Is the line too long without wrapping? test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 89: > 87: mnemonicShowCount++; > 88: if (selectedPath.length == 0 && > 89: (selectedPath[0] != menuBar || selectedPath[1] != fileMenu)) { Suggestion: if (selectedPath.length != 2 || selectedPath[0] != menuBar || selectedPath[1] != fileMenu) { You expect the selected path length to be 2 ? if it's not, it's a failure. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 94: > 92: } > 93: } > 94: } Swing is not thread-safe therefore `MenuSelectionManager` as well as `WindowsLookAndFeel.isMnemonicHidden()` are to be called on EDT. Because of that, you should use `AtomicInteger` and its `getAndIncrement()` method to increase the counter; then use `get()` to get the accumulated value on the main thread to verify. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 96: > 94: } > 95: robot.waitForIdle(); > 96: robot.delay(1000); There's no need for any delays after the for-loop. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 120: > 118: editMenu.setMnemonic(KeyEvent.VK_E); > 119: item1 = new JMenuItem("Item 1"); > 120: item2 = new JMenuItem("Item 2"); `editMenu` as well as `item1` and `item2` aren't used outside of this method ? convert them to local variables. test/jdk/javax/swing/JMenu/TestMenuMnemonic.java line 127: > 125: frame.setJMenuBar(menuBar); > 126: frame.pack(); > 127: frame.setSize(250, 200); Suggestion: frame.setSize(250, 200); You set the size, `pack` is redundant. ------------- PR Review: https://git.openjdk.org/jdk/pull/17961#pullrequestreview-1911373693 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509147894 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509147704 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509139166 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509140683 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509132518 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509134125 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509136261 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509131418 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509133750 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509143946 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509142739 From abhiscxk at openjdk.org Fri Mar 1 16:05:07 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 16:05:07 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v5] In-Reply-To: References: Message-ID: > 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. Link posted in JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17961/files - new: https://git.openjdk.org/jdk/pull/17961/files/3adc468d..ec7b1a04 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=03-04 Stats: 261 lines in 3 files changed: 127 ins; 133 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17961.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17961/head:pull/17961 PR: https://git.openjdk.org/jdk/pull/17961 From abhiscxk at openjdk.org Fri Mar 1 16:05:07 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 16:05:07 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v2] In-Reply-To: <4b2Qpx83gAuZrUoUa25JRTWn9T55lfU1ysvrIyYMbgI=.3401db3e-b7b3-4086-bf72-1d154609b1fe@github.com> References: <9ZScjChjnZVtMVj6kU_bM-f9FHuBGQx9-ttkX-7xuFk=.9d28d2ba-85b2-4159-96ec-d4cd98cc1fd9@github.com> <4b2Qpx83gAuZrUoUa25JRTWn9T55lfU1ysvrIyYMbgI=.3401db3e-b7b3-4086-bf72-1d154609b1fe@github.com> Message-ID: On Fri, 1 Mar 2024 10:42:31 GMT, Alexey Ivanov wrote: >>> You could add @modules java.desktop/com.sun.java.swing.plaf.windows to jtreg tags and access the com.sun.java.swing.plaf.windows.WindowsLookAndFeel.isMnemonicHidden method to verify that the mnemonics are shown or hidden based on how many times you (the Robot) pressed F10 key as well as the menu bar is active or not. >> >> How to check for menubar whether it is active or not? Should I check the keyboard focus? > >> > You could add @modules java.desktop/com.sun.java.swing.plaf.windows to jtreg tags and access the com.sun.java.swing.plaf.windows.WindowsLookAndFeel.isMnemonicHidden method to verify that the mnemonics are shown or hidden based on how many times you (the Robot) pressed F10 key as well as the menu bar is active or not. >> >> How to check for menubar whether it is active or not? Should I check the keyboard focus? > > You have it in the code: > > > MenuElement[] selectedPath = msm.getSelectedPath(); > if (selectedPath.length == 0) { > throw new RuntimeException(); > } > if (selectedPath[0] != menuBar || selectedPath[1] != fileMenu) { > throw new RuntimeException(); > } > > where menuBar is the `JMenuBar` that you created in the test and `fileMenu` is the first `JMenu` in the menu bar. @aivanov-jdk Updated based on review comment. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17961#issuecomment-1973443450 From abhiscxk at openjdk.org Fri Mar 1 16:05:07 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 1 Mar 2024 16:05:07 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v4] In-Reply-To: <9JVE-TH49B-kvVvfCjSKqvdGUwKnTzJXG1JX7QjSERk=.1564aa9c-26ae-4c46-bc66-fe588cfb403a@github.com> References: <9JVE-TH49B-kvVvfCjSKqvdGUwKnTzJXG1JX7QjSERk=.1564aa9c-26ae-4c46-bc66-fe588cfb403a@github.com> Message-ID: On Fri, 1 Mar 2024 15:06:49 GMT, Alexey Ivanov wrote: > Is the line too long without wrapping? It's around 100 columns.. so wrapping looks good to me. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1509199308 From duke at openjdk.org Fri Mar 1 21:42:02 2024 From: duke at openjdk.org (MustavData) Date: Fri, 1 Mar 2024 21:42:02 GMT Subject: RFR: 8270269: Desktop.browse method fails if earlier CoInitialize call as COINIT_MULTITHREADED [v3] In-Reply-To: References: <6kleKtEG40OwclwIOss4ttDnXwdGsTicuIfIqTpFDgw=.adcd6f38-aed2-4686-b178-d724ddff5710@github.com> Message-ID: On Mon, 29 Jan 2024 20:56:42 GMT, Alexey Ivanov wrote: >> I am working to verify the initial fix of JDK-8270269 in OpenJDK 23 (beta). The basic environment is: >> >> OpenJDK: "Azul Systems, Inc.", "Zulu23+11-CA", "23-beta+1", "x86_64", ".:git:e278d5994c10+" >> OS: Windows 11, version 22H2, Build 22621.3007, VC++ 2015-2022 Runtime version 14.38.33130.0 >> >> The test application is a Java client with the user successfully logged in, following initial launch, against a web application. Here are the basic tests that need to pass: >> >> 1. Re-authentication after the standard web app timeout of 30 minutes, typically triggered when returning from lunch >> 2. Re-authentication after numerous hours, typically triggered when returning to work the next morning >> >> Results so far: >> >> 1. Without the initial fix, the Test 1 fails as reported in JDK-8270269 >> 2. With the initial fix, Test 1 succeeds, and Test 2 fails with a `java.io.IOException` thrown upon a failure in `CoInitializeEx()` >> >> Here is the stack trace from the Test 2 failure: >> >> >> java.io.IOException: Failed to open https://. Error message: CoInitializeEx() failed. >> at java.desktop/sun.awt.windows.WDesktopPeer.ShellExecute(WDesktopPeer.java:115) >> at java.desktop/sun.awt.windows.WDesktopPeer.browse(WDesktopPeer.java:101) >> at java.desktop/java.awt.Desktop.browse(Desktop.java:533) > > @MustavData, according to the line number, you're using a build without Segey's fix: > > https://github.com/openjdk/jdk/blob/bff7725b4d81c12c0c826933fc2ad4f49a227536/src/java.desktop/windows/classes/sun/awt/windows/WDesktopPeer.java#L114-L117 > > In the file with this fix, the line number where the exception is thrown is 119: > > https://github.com/openjdk/jdk/blob/b25ed57b764fc485e4e8ca4118ffb1cc70fdfe7f/src/java.desktop/windows/classes/sun/awt/windows/WDesktopPeer.java#L118-L121 @aivanov-jdk , thanks for the clarification. I've re-run my tests using a more recent build (see below), and they now work as expected - as they do with JDK 15 and prior. OpenJDK: "Oracle Corporation", "23-ea+11-814", "x86_64", ".:git:cc1e216eb9e4" OS: Windows 11, version 22H2, Build 22621.3007, VC++ 2015-2022 Runtime version 14.38.33130.0 ------------- PR Comment: https://git.openjdk.org/jdk/pull/17010#issuecomment-1973960833 From achung at openjdk.org Fri Mar 1 22:53:03 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 1 Mar 2024 22:53:03 GMT Subject: RFR: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." Message-ID: Introduce delays in test to stabilize. Test passes 50x after fix. ------------- Commit messages: - added delays to stabilize test Changes: https://git.openjdk.org/jdk/pull/18091/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18091&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8280392 Stats: 9 lines in 2 files changed: 8 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18091.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18091/head:pull/18091 PR: https://git.openjdk.org/jdk/pull/18091 From dmarkov at openjdk.org Sun Mar 3 09:06:02 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Sun, 3 Mar 2024 09:06:02 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS Message-ID: Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. ------------- Commit messages: - 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS Changes: https://git.openjdk.org/jdk/pull/18097/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18097&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8326661 Stats: 39 lines in 3 files changed: 0 ins; 30 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18097.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18097/head:pull/18097 PR: https://git.openjdk.org/jdk/pull/18097 From ihse at openjdk.org Sun Mar 3 15:30:55 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Sun, 3 Mar 2024 15:30:55 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution For the record, there is a series of comment posted as Github commit comments. See https://github.com/openjdk/jdk/commit/ac3ce2aa156332fc4e6f33018ff669657ab4b797#commitcomment-139295772. According to the comments, this PR breaks building hsdis with ccache. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1975197285 From ihse at openjdk.org Sun Mar 3 15:34:54 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Sun, 3 Mar 2024 15:34:54 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: <537eZ4LFh0sfwSpT_HSyXOy5UZQo2H1B8WcxSjI9Ovs=.9d34407c-c8f0-4460-84f7-edc2891c78de@github.com> On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution @claudionieder > One last comment. I just discovered, that if I remove the --enable-ccache from the configure command, then it works also with this commit. Hopefully this helps for fixing the issue. So what you really saying is that this breaks when compiling capstone hsdis on macOS/aarch64 when you have ccache enabled? It seems more reasonable that this could be a ccache error than a hsdis-with-capstone error. Can you build any normal JDK targets with ccache? (Also, why are you using ccache? It is highly unclear if that really adds any performance improvements) ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1975198444 From mark.yagnatinsky at barclays.com Sun Mar 3 23:00:46 2024 From: mark.yagnatinsky at barclays.com (mark.yagnatinsky at barclays.com) Date: Sun, 3 Mar 2024 23:00:46 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: Message-ID: Thanks for the response! I didn?t expect to get one at this point ? It does indeed answer my question! (Though you didn?t quite get the name right: there?s no Ex at the end? I take it you?ve done some Windows programming at some point) But now I have a new question? Is there any way to get the ?usual? letter for a ?common? operation? For instance, lots of programs support copy and paste. Is there a way to ask Java ?what is the standard letter for paste? and get back ?V?? Again, one could create a scratch text area and grovel through its input map, but that seems hacky. This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From duke at openjdk.org Sun Mar 3 23:30:51 2024 From: duke at openjdk.org (Claudio Nieder) Date: Sun, 3 Mar 2024 23:30:51 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution Indeed hsdis or no hsdis does not matter at all. --enable-ccache is broken with this commit in any case. I executed the much simplified script below, which builds once using this commit and once the parent commit. Seems, that with hsdis enabled HSDIS was just the first thing that needed to be compiled. Now it is failing when "Creating support/modules_libs/java.base/server/libjvm.dylib". Regarding why I use ccache: I frankly didn't time it to see if there is an advantage. I just read in doc/building.md (lines 1517 ff) "The JDK build supports building with ccache when using gcc or clang. Using ccache can radically speed up compilation of native code if you often rebuild the same sources." so I included it in my personal script to build OpenJDK. But I can easily live without using ccache and personally wouldn't mind if OpenJDK stops supporting ccache. Below the content of `build/macosx-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch.cmdline` for this commit ac3ce2aa where you can see the main issue, that the command `/opt/homebrew/bin/ccache /usr/bin/clang` is missing in front of the first compiler option -D__STDC_FORMAT_MACROS. Additionally some environment variables are missing/different. cd /tmp/ac3ce2aa/jdk && CCACHE_COMPRESS=1 CCACHE_SLOPPINESS=pch_defines -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -pipe -fno-rtti -fno-exceptions -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -flimit-debug-info -mno-omit-leaf-frame-pointer -mstack-alignment=16 -std=c++14 -DMAC_OS_X_VERSION_MIN_REQUIRED=110000 -mmacosx-version-min=11.00.00 -DLIBC=default -D_ALLBSD_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE -Wall -Wextra -Wformat=2 -Wpointer-arith -Wsign-compare -Wreorder -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual -fPIC -DVM_LITTLE_ENDIAN -D_LP64=1 -arch arm64 -DASSERT -DCHECK_UNHANDLED_OOPS -DTARGET_ARCH_aarch64 -DINCLUDE_SUFFIX_OS=_bsd -DINCLUDE_SUFFIX_CPU=_aarch64 -DINCLUDE_SUFFIX_COMPILER=_gcc -DTARGET_COMPILER_gcc -DAARCH64 -DHOTSPOT_LIB_ARCH='"aarch64"' -DCOMPILER1 -DCOMPILER2 -DDTRACE_ENABLED -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspo t/os/bsd -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/aarch64 -Isrc/hotspot/os_cpu/bsd_aarch64 -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc -Isrc/hotspot/share/precompiled -Isrc/hotspot/share/include -Isrc/hotspot/os/posix/include -Ibuild/macosx-aarch64-server-fastdebug/support/modules_include/java.base -Ibuild/macosx-aarch64-server-fastdebug/support/modules_include/java.base/darwin -Isrc/java.base/share/native/libjimage -arch arm64 -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspot/os/bsd -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/aarch64 -Isrc/hotspot/os_cpu/bsd_aarch64 -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc -g -gdwarf-4 -gdwarf-aranges -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-sometimes-uninitialized -Wno-missing-braces -Wno-delete-non-abstract-non-virtual-dtor -Wno-unknown-pragmas -Wno-tautological-constant-out-of-range-compare -isysroot /Applic ations/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks -O3 -x c++-header -c -MMD -MF build/macosx-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch.d.tmp src/hotspot/share/precompiled/precompiled.hpp -o build/macosx-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch and here the content of `build/macosx-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch.cmdline` for the parent commit bceaed6d cd /tmp/bceaed6d/jdk && CCACHE_COMPRESS=1 CCACHE_SLOPPINESS=pch_defines,time_macros CCACHE_BASEDIR=/tmp/bceaed6d/jdk/ /opt/homebrew/bin/ccache /usr/bin/clang -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D_GNU_SOURCE -pipe -fno-rtti -fno-exceptions -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer -flimit-debug-info -mno-omit-leaf-frame-pointer -mstack-alignment=16 -std=c++14 -DMAC_OS_X_VERSION_MIN_REQUIRED=110000 -mmacosx-version-min=11.00.00 -DLIBC=default -D_ALLBSD_SOURCE -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE -Wall -Wextra -Wformat=2 -Wpointer-arith -Wsign-compare -Wreorder -Wunused-function -Wundef -Wunused-value -Woverloaded-virtual -fPIC -DVM_LITTLE_ENDIAN -D_LP64=1 -arch arm64 -DASSERT -DCHECK_UNHANDLED_OOPS -DTARGET_ARCH_aarch64 -DINCLUDE_SUFFIX_OS=_bsd -DINCLUDE_SUFFIX_CPU=_aarch64 -DINCLUDE_SUFFIX_COMPILER=_gcc -DTARGET_COMPILER_gcc -DAARCH64 -DHOTSPOT_LIB_ARCH='"aarch64"' -DCOMPILER1 -DCOMPILER2 -DDTRACE_ENABLED -Ibuild/macosx-aarch64-s erver-fastdebug/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspot/os/bsd -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/aarch64 -Isrc/hotspot/os_cpu/bsd_aarch64 -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc -Isrc/hotspot/share/precompiled -Isrc/hotspot/share/include -Isrc/hotspot/os/posix/include -Ibuild/macosx-aarch64-server-fastdebug/support/modules_include/java.base -Ibuild/macosx-aarch64-server-fastdebug/support/modules_include/java.base/darwin -Isrc/java.base/share/native/libjimage -arch arm64 -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc/adfiles -Isrc/hotspot/share -Isrc/hotspot/os/bsd -Isrc/hotspot/os/posix -Isrc/hotspot/cpu/aarch64 -Isrc/hotspot/os_cpu/bsd_aarch64 -Ibuild/macosx-aarch64-server-fastdebug/hotspot/variant-server/gensrc -g -gdwarf-4 -gdwarf-aranges -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-sometimes-uninitialized -Wno-missing-braces -Wno-delete-non-abstract-non-virtual-dtor -Wno-unknown-pragmas -Wno-tautological-constant-out-of-range-compare -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks -O3 -x c++-header -c -MMD -MF build/macosx-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch.d.tmp src/hotspot/share/precompiled/precompiled.hpp -o build/macosx-aarch64-server-fastdebug/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.pch Script used to test #!/bin/bash export LANG=en_US export LC_ALL=en_US suspectedCommit=ac3ce2aa preceedingCommit=bceaed6d function build() { bash ./configure --enable-ccache --disable-warnings-as-errors --with-debug-level=fastdebug make clean make images } cd /tmp rm -rf $preceedingCommit mkdir $preceedingCommit cd $preceedingCommit git clone "https://github.com/openjdk/jdk.git" cd jdk git checkout $preceedingCommit build cd /tmp rm -rf $suspectedCommit mkdir $suspectedCommit cd $suspectedCommit git clone "https://github.com/openjdk/jdk.git" cd jdk git checkout $suspectedCommit build ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1975396416 From duke at openjdk.org Mon Mar 4 00:02:48 2024 From: duke at openjdk.org (Claudio Nieder) Date: Mon, 4 Mar 2024 00:02:48 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution As a side note, I now did time the effect of ccache using the below script. This is the result without ccache real 3m42.896s user 20m49.584s sys 2m56.578s this is the result with --enable-ccache real 4m56.290s user 26m16.230s sys 5m50.993s Thus at least on my MacBook Pro M1 using ccache slows down the compilation! Script #!/bin/bash export LANG=en_US export LC_ALL=en_US preceedingCommit=bceaed6d d1=noCCache d2=ccache cd /tmp rm -rf $d1 mkdir $d1 cd $d1 git clone "https://github.com/openjdk/jdk.git" cd jdk git checkout $preceedingCommit bash ./configure --disable-warnings-as-errors --with-debug-level=fastdebug \ --enable-hsdis-bundling --with-hsdis=capstone make clean time make images 2>&1 | tee /tmp/$d1/time.txt cd /tmp rm -rf $d2 mkdir $d2 cd $d2 git clone "https://github.com/openjdk/jdk.git" cd jdk git checkout $preceedingCommit bash ./configure --disable-warnings-as-errors --with-debug-level=fastdebug \ --enable-ccache --enable-hsdis-bundling --with-hsdis=capstone make clean time make images 2>&1 | tee /tmp/$d2/time.txt ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1975406744 From brice.dutheil at gmail.com Mon Mar 4 04:23:51 2024 From: brice.dutheil at gmail.com (Brice Dutheil) Date: Mon, 4 Mar 2024 05:23:51 +0100 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: Message-ID: Hi, just chiming in, > (Though you didn?t quite get the name right: there?s no Ex at the end? The method `getMenuShortcutKeyMaskEx` has been introduced in JDK10 https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/Toolkit.html#getMenuShortcutKeyMaskEx() > Is there any way to get the ?usual? letter for a ?common? operation? Isn't it a per application choice, even if OS stock applications use some default, it's pretty standard to use xcv letters regardless of the OS. Possibly you could be interested by other letters like z (undo) or y (redo), but again it seems like an app choice in the end. Brice On Mon, Mar 4, 2024 at 00:01 wrote: > Thanks for the response! I didn?t expect to get one at this point J > > It does indeed answer my question! > > (Though you didn?t quite get the name right: there?s no Ex at the end? > > I take it you?ve done some Windows programming at some point) > > > > But now I have a new question? > > Is there any way to get the ?usual? letter for a ?common? operation? > > For instance, lots of programs support copy and paste. > > Is there a way to ask Java ?what is the standard letter for paste? and get > back ?V?? > > Again, one could create a scratch text area and grovel through its input > map, but that seems hacky. > > This message is for information purposes only. It is not a recommendation, > advice, offer or solicitation to buy or sell a product or service, nor an > official confirmation of any transaction. It is directed at persons who are > professionals and is intended for the recipient(s) only. It is not directed > at retail customers. This message is subject to the terms at: > https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. > > For important disclosures, please see: > https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html > regarding marketing commentary from Barclays Sales and/or Trading desks, > who are active market participants; > https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html > regarding our standard terms for Barclays Investment Bank where we trade > with you in principal-to-principal wholesale markets transactions; and in > respect to Barclays Research, including disclosures relating to specific > issuers, see: http://publicresearch.barclays.com. > __________________________________________________________________________________ > > If you are incorporated or operating in Australia, read these important > disclosures: > https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html > . > > __________________________________________________________________________________ > For more details about how we use personal information, see our privacy > notice: https://www.ib.barclays/disclosures/personal-information-use.html. > > > __________________________________________________________________________________ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mickleness at gmail.com Mon Mar 4 04:30:23 2024 From: mickleness at gmail.com (Jeremy Wood) Date: Mon, 04 Mar 2024 04:30:23 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: Message-ID: > But now I have a new question? > Is there any way to get the ?usual? letter for a ?common? operation? Hmm. Good question. Not that I know of. > Again, one could create a scratch text area and grovel through its input map, but that seems hacky. I agree sifting through the L&F seems hacky. I don?t think I understand exactly what you?re trying to implement here. If you give me a more concrete example: maybe I (or someone on this list) can offer a more concrete suggestion? I?ll add some context in case this speaks to your question. By default Swing gets this information in places like BasicTextUI#getInputMap(), which calls: InputMap shared = (InputMap)DefaultLookup.get(editor, this, getPropertyPrefix() + ".focusInputMap?); The following works on my Mac & Windows machine (I think using JDK 19), but I wouldn?t be surprised if it fails in other platforms / L&F?s. It feels brittle, but it might (?) have potential: private KeyStroke getCopyKeyStroke() { InputMap inputMap = (InputMap) UIManager.getDefaults().get("TextField.focusInputMap"); for (KeyStroke keyStroke : inputMap.keys()) { Object action = inputMap.get(keyStroke); if ("copy-to-clipboard".equals(action)) { return keyStroke; } } // this will show all the default keystrokes // System.out.println(Arrays.asList(inputMap.allKeys())); return null; } Regards, - Jeremy ------ Original Message ------ >From mark.yagnatinsky at barclays.com To mickleness at gmail.com; client-libs-dev at openjdk.org Date 3/3/24, 6:00:46?PM Subject RE: how to get find out the keyboard shortcut for the paste action? >Thanks for the response! I didn?t expect to get one at this point J > >It does indeed answer my question! > >(Though you didn?t quite get the name right: there?s no Ex at the end? > >I take it you?ve done some Windows programming at some point) > > > >But now I have a new question? > >Is there any way to get the ?usual? letter for a ?common? operation? > >For instance, lots of programs support copy and paste. > >Is there a way to ask Java ?what is the standard letter for paste? and >get back ?V?? > >Again, one could create a scratch text area and grovel through its >input map, but that seems hacky. > >This message is for information purposes only. It is not a >recommendation, advice, offer or solicitation to buy or sell a product >or service, nor an official confirmation of any transaction. It is >directed at persons who are professionals and is intended for the >recipient(s) only. It is not directed at retail customers. This message >is subject to the terms at: >https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. > >For important disclosures, please see: >https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html >regarding marketing commentary from Barclays Sales and/or Trading >desks, who are active market participants; >https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html >regarding our standard terms for Barclays Investment Bank where we >trade with you in principal-to-principal wholesale markets >transactions; and in respect to Barclays Research, including >disclosures relating to specific issuers, see: >http://publicresearch.barclays.com. >__________________________________________________________________________________ >If you are incorporated or operating in Australia, read these important >disclosures: >https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. >__________________________________________________________________________________ >For more details about how we use personal information, see our privacy >notice: >https://www.ib.barclays/disclosures/personal-information-use.html. >__________________________________________________________________________________ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From psadhukhan at openjdk.org Mon Mar 4 05:19:02 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 4 Mar 2024 05:19:02 GMT Subject: RFR: 8327007: javax/swing/JSpinner/8008657/bug8008657.java fails [v2] In-Reply-To: References: Message-ID: > Test failed with the exception java.lang.IllegalArgumentException: (start <= value <= end) with no history of failing till date. > Investigation shows SpinnerDateModel constructor condition is not satisfied because > It seems it's a leap year problem that is being manifested.. > > As per test, > initDate Thu Feb 29 13:49:08 IST 2024 [ obtained by calendar.getTime();] > earliestDate Tue Feb 28 13:49:08 IST 2023 [obtained by calendar.add(Calendar.YEAR, -1);] > latestDate Wed Feb 28 13:49:08 IST 2024 [obtained by calendar.add(Calendar.YEAR, 1);] > > Now, as per SpinnerDateModel constructor > earliestDate <= initDate condition is satisfied > but > latestDate >= initDate is not > so [start <= value <= end](https://github.com/openjdk/jdk/blob/998d0baab0fd051c38d9fd6021628eb863b80554/src/java.desktop/share/classes/javax/swing/SpinnerDateModel.java#L185) condition fails > > Not sure it anything can be done in Calendar class for this but fix is done in test taking leapyear into account so that we add a day if it's a leapyear when we consecutively do Calendar.add(YEAR, -1) and Calendar.add(YEAR,1) on leapyear date of 29Feb Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Increment DAY_OF_MONTH to circumvent leapyear issue ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18054/files - new: https://git.openjdk.org/jdk/pull/18054/files/e285b4c1..20d888dd Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18054&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18054&range=00-01 Stats: 13 lines in 1 file changed: 0 ins; 11 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18054.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18054/head:pull/18054 PR: https://git.openjdk.org/jdk/pull/18054 From psadhukhan at openjdk.org Mon Mar 4 05:19:02 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 4 Mar 2024 05:19:02 GMT Subject: RFR: 8327007: javax/swing/JSpinner/8008657/bug8008657.java fails In-Reply-To: <4VfJO0JRZ561Q7HqCiEe7TcB50MQVCjZxiX2h7zDQjk=.c0dc6e35-ce4a-48c9-a321-059929d85469@github.com> References: <4VfJO0JRZ561Q7HqCiEe7TcB50MQVCjZxiX2h7zDQjk=.c0dc6e35-ce4a-48c9-a321-059929d85469@github.com> Message-ID: On Fri, 1 Mar 2024 03:15:19 GMT, Prasanta Sadhukhan wrote: > Surely this just needs a one line fix > > diff --git a/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java b/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java > index cbeb0c185bb..49918278e34 100644 > --- a/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java > +++ b/test/jdk/javax/swing/JSpinner/8008657/bug8008657.java > @@ -137,6 +137,7 @@ static void createDateSpinner() { > calendar.add(Calendar.YEAR, -1); > Date earliestDate = calendar.getTime(); > calendar.add(Calendar.YEAR, 1); > + calendar.add(Calendar.DAY_OF_MONTH, 1); > Date latestDate = calendar.getTime(); > SpinnerModel dateModel = new SpinnerDateModel(initDate, > earliestDate, Done minimal change as suggested... ------------- PR Comment: https://git.openjdk.org/jdk/pull/18054#issuecomment-1975749204 From rkannathpari at openjdk.org Mon Mar 4 06:04:07 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Mon, 4 Mar 2024 06:04:07 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v11] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Suggesions incorporated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17607/files - new: https://git.openjdk.org/jdk/pull/17607/files/38c4f395..10c2c695 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17607&range=10 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17607&range=09-10 Stats: 27 lines in 4 files changed: 2 ins; 11 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/17607.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17607/head:pull/17607 PR: https://git.openjdk.org/jdk/pull/17607 From rkannathpari at openjdk.org Mon Mar 4 06:33:09 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Mon, 4 Mar 2024 06:33:09 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10] In-Reply-To: References: Message-ID: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> > 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 updated the pull request incrementally with one additional commit since the last revision: Updated instruction ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17608/files - new: https://git.openjdk.org/jdk/pull/17608/files/d075faab..a9aebeb8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=09 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=08-09 Stats: 24 lines in 1 file changed: 8 ins; 12 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17608.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17608/head:pull/17608 PR: https://git.openjdk.org/jdk/pull/17608 From jwaters at openjdk.org Mon Mar 4 06:44:56 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 4 Mar 2024 06:44:56 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution I'd find it quite sad if we stopped supporting ccache just because it broke after this commit, I know for a fact that quite a few JDK developers do use it (myself included). Regarding the issue itself, I wonder if it's the SetupToolchain changes that has caused this. ccache is collapsed into CC and CXX to my knowledge, which would explain why the ccache cc or ccache c++ command is missing from the command line (substitute cc and c++ for the respective compiler drivers) ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1975838054 From rkannathpari at openjdk.org Mon Mar 4 06:48:18 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Mon, 4 Mar 2024 06:48:18 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v9] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Suggesions added ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17609/files - new: https://git.openjdk.org/jdk/pull/17609/files/3847671a..b2b8548d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=08 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=07-08 Stats: 26 lines in 2 files changed: 4 ins; 3 del; 19 mod Patch: https://git.openjdk.org/jdk/pull/17609.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17609/head:pull/17609 PR: https://git.openjdk.org/jdk/pull/17609 From ihse at openjdk.org Mon Mar 4 11:30:55 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Mon, 4 Mar 2024 11:30:55 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 06:42:30 GMT, Julian Waters wrote: > I wonder if it's the SetupToolchain changes that has caused this. ccache is collapsed into CC and CXX to my knowledge Yeah, it must have been. Would you like to take a look at it? Otherwise I'll file a bug and fix it. Breaking ccache was an unintended regression, so it needs to be fixed. If we want to drop ccache support it needs to be done explicitly and separately. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1976368808 From jwaters at openjdk.org Mon Mar 4 11:48:55 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 4 Mar 2024 11:48:55 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 11:28:02 GMT, Magnus Ihse Bursie wrote: > > I wonder if it's the SetupToolchain changes that has caused this. ccache is collapsed into CC and CXX to my knowledge > > Yeah, it must have been. Would you like to take a look at it? Otherwise I'll file a bug and fix it. Breaking ccache was an unintended regression, so it needs to be fixed. If we want to drop ccache support it needs to be done explicitly and separately. No problem! I do hope that dropping ccache support isn't something that's planned though :( > Additionally some environment variables are missing/different. Could I trouble you to mention what exactly was different? ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1976398726 From duke at openjdk.org Mon Mar 4 13:00:54 2024 From: duke at openjdk.org (Claudio Nieder) Date: Mon, 4 Mar 2024 13:00:54 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 11:45:59 GMT, Julian Waters wrote: > Could I trouble you to mention what exactly was different? No trouble at all. `CCACHE_BASEDIR=/tmp/bceaed6d/jdk/`is completely missing. (The directory is where I checked out OpenJDK) `CCACHE_SLOPPINESS` has the value `pch_defines,time_macros` with the working parent commit but just `pch_defines` with this commit. I.e. `CCACHE_SLOPPINESS=pch_defines,time_macros` vs `CCACHE_SLOPPINESS=pch_defines`. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1976528283 From jwaters at openjdk.org Mon Mar 4 13:04:55 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 4 Mar 2024 13:04:55 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 12:58:28 GMT, Claudio Nieder wrote: > > Could I trouble you to mention what exactly was different? > > No trouble at all. > > `CCACHE_BASEDIR=/tmp/bceaed6d/jdk/`is completely missing. (The directory is where I checked out OpenJDK) > > `CCACHE_SLOPPINESS` has the value `pch_defines,time_macros` with the working parent commit but just `pch_defines` with this commit. I.e. `CCACHE_SLOPPINESS=pch_defines,time_macros` vs `CCACHE_SLOPPINESS=pch_defines`. Thanks! Seems curious to me, off the top of my head I can't seem to discern why these would change, perhaps it's time for a little investigating ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1976534197 From aivanov at openjdk.org Mon Mar 4 13:25:46 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 4 Mar 2024 13:25:46 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v5] In-Reply-To: References: Message-ID: On Fri, 1 Mar 2024 16:05:07 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 SwingSet2 application. >> CI tests are green with the fix. Link posted in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Changes requested by aivanov (Reviewer). src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsMenuBarUI.java line 142: > 140: @SuppressWarnings("serial") // Superclass is not serializable across versions > 141: private static class TakeFocus extends AbstractAction { > 142: static boolean mnemonicShowHideFlag = false; Not used any more. src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsMenuBarUI.java line 143: > 141: private static class TakeFocus extends AbstractAction { > 142: static boolean mnemonicShowHideFlag = false; > 143: public void actionPerformed(ActionEvent e) { I suggest adding `@Override` annotation. Most methods in the class have the annotation. test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 36: > 34: import java.awt.event.KeyEvent; > 35: import java.awt.Robot; > 36: import java.util.concurrent.atomic.AtomicInteger; Sort imports: Suggestion: import java.awt.Robot; import java.awt.event.KeyEvent; import java.util.concurrent.atomic.AtomicInteger; test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 40: > 38: import javax.swing.JMenu; > 39: import javax.swing.JMenuItem; > 40: import javax.swing.JMenuBar; Sort imports: Suggestion: import javax.swing.JMenuBar; import javax.swing.JMenuItem; test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 45: > 43: import javax.swing.SwingUtilities; > 44: import javax.swing.UIManager; > 45: import com.sun.java.swing.plaf.windows.WindowsLookAndFeel; Suggestion: import javax.swing.UIManager; import com.sun.java.swing.plaf.windows.WindowsLookAndFeel; I suggest adding a blank line to separate the standard imported packages from non-standard ones, in this case it's even an implementation-private package. test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 55: > 53: public static void main(String[] args) throws Exception { > 54: UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); > 55: int expectedMnemonicShowHideCount = 5; Make it a constant, for example `EXPECTED`. test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 66: > 64: robot.delay(1000); > 65: > 66: for (int i = 0; i < 10; i++) { Suggestion: for (int i = 0; i < EXPECTED * 2; i++) { No magic numbers, after all the number of `EXPECTED` show/hide depends on how many iterations the loop does. test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 87: > 85: mnemonicShowCount.getAndIncrement(); > 86: if (selectedPath.length != 2 && > 87: (selectedPath[0] != menuBar || selectedPath[1] != fileMenu)) { Suggestion: if (selectedPath.length != 2 && (selectedPath[0] != menuBar || selectedPath[1] != fileMenu)) { In all the other places you wrap before the operator; in fact it's what Java Coding Style recommends doing. And this style makes it clear that it's a continuation line, if it starts with an operator. test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 92: > 90: } > 91: } > 92: }); May I suggest creating a method for verifying the state of mnemonics? Then the `main` will be shorter: SwingUtilities.invokeAndWait(TestMenuMnemonic::verifyMnemonicsState); You'll have to make `mnemonicHideCount` and `mnemonicShowCount` static fields (and `final` please). ------------- PR Review: https://git.openjdk.org/jdk/pull/17961#pullrequestreview-1914242401 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511119367 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511127629 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511130722 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511131445 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511134440 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511145696 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511148255 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511154492 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1511152467 From mkartashev at openjdk.org Mon Mar 4 14:53:21 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Mon, 4 Mar 2024 14:53:21 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v3] In-Reply-To: References: Message-ID: > 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 for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. > > References > * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html > * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision: Adapted the test to the realities of macOS ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17985/files - new: https://git.openjdk.org/jdk/pull/17985/files/1b69d068..35cef969 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=01-02 Stats: 46 lines in 1 file changed: 0 ins; 45 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17985.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17985/head:pull/17985 PR: https://git.openjdk.org/jdk/pull/17985 From ihse at openjdk.org Mon Mar 4 15:01:58 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Mon, 4 Mar 2024 15:01:58 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 11:45:59 GMT, Julian Waters wrote: > I do hope that dropping ccache support isn't something that's planned though :( Not really. The benefit of dropping it is quite small, and there might be use cases where it helps. But I think we should perhaps be more explicit in the documentation that it is not obvious that it helps performance, and encourage testing before enabling it. And perhaps even print a warning in configure if you enable it that you need to check that it helps. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1976777022 From aivanov at openjdk.org Mon Mar 4 15:58:05 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 4 Mar 2024 15:58:05 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel Message-ID: I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. When the test passes, it usually completes in 5 minutes. **How the test works** The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. A timer is used to create new files in the directory that the file chooser is using. After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for it to complete. The chance of updating `fileCache` while another thread is iterating over it is significantly reduced. Even more, `filechooser.isTraversable(file)` is also executed on the COM thread, which means there's a heavy contention for the COM thread from each File Loading Thread. ------------- Commit messages: - Explicitly run the test in headless mode - Rename the class - Move the test under jx.s.plaf.basic/BasicDirectoryModel - Add comment for fields, explain usage of ThreadGroup - Reduce the parameters: files: 50; file limit: 10; timer: 250 - Merge master - The test is for Linux and macOS only - Set 'Test Runner' name to the (main) runner - Back to initial parameters: 1,000 files, 5 threads, 2,000 repeats - Amend the summary of the test - ... and 16 more: https://git.openjdk.org/jdk/compare/8f6edd8d...0d6be7a4 Changes: https://git.openjdk.org/jdk/pull/18109/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18109&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327137 Stats: 237 lines in 1 file changed: 237 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18109.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18109/head:pull/18109 PR: https://git.openjdk.org/jdk/pull/18109 From aivanov at openjdk.org Mon Mar 4 16:17:54 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 4 Mar 2024 16:17:54 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS In-Reply-To: References: Message-ID: On Sun, 3 Mar 2024 09:01:49 GMT, Dmitry Markov wrote: > Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. The fix is to always use the accuracy which is used for the LCMS library, without trying to detect what colour profile is used. Right? ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18097#pullrequestreview-1914734068 From duke at openjdk.org Mon Mar 4 16:36:57 2024 From: duke at openjdk.org (Claudio Nieder) Date: Mon, 4 Mar 2024 16:36:57 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution One little side note, I tried now also on a Linux x86 system and saw the same issue, so it is not limited to macOS or aarch64. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1976999445 From prr at openjdk.org Mon Mar 4 17:04:54 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 4 Mar 2024 17:04:54 GMT Subject: RFR: 8195675: Call to insertText with single character from custom Input Method ignored In-Reply-To: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> References: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> Message-ID: On Tue, 20 Feb 2024 02:08:09 GMT, Steven Loomis wrote: > 8195675: Call to insertText with single character from custom Input Method ignored Marked as reviewed by prr (Reviewer). src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m line 972: > 970: ((utf8Length > 1) && [self isCodePointInUnicodeBlockNeedingIMEvent:codePoint]) || > 971: [(NSString *)kbdLayout containsString:@KEYMAN_LAYOUT]) { > 972: #ifdef IM_DEBUG As noted in JBS Kotoeri is obsolete, which is why the reference to it here should be removed as part of this change. ------------- PR Review: https://git.openjdk.org/jdk/pull/17921#pullrequestreview-1914844169 PR Review Comment: https://git.openjdk.org/jdk/pull/17921#discussion_r1511488212 From prr at openjdk.org Mon Mar 4 17:56:46 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 4 Mar 2024 17:56:46 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: > > load awt.dll before display check This now passes all my automated testing. Have you tested manual apps like SwingSet ? I doubt they'll have a problem but it would be good to be 100% sure. The only thing I notice here is it adds one more place that we duplicate the code to load the AWT native library. Bizarrely Toolkit *and* WToolkit both do it. The result is not just duplicated code but duplicated (now triplicated) effort at startup. There might even be a fourth place - NativeLibLoader. But fixing that might mean being extra careful about not introducing circularities at start up and since the impact should be negligible I think it is out of scope for this fix. So just let me know about the manual testing. ------------- PR Review: https://git.openjdk.org/jdk/pull/17614#pullrequestreview-1914948095 From prr at openjdk.org Mon Mar 4 18:12:55 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 4 Mar 2024 18:12:55 GMT Subject: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions In-Reply-To: References: Message-ID: <3V52jpktdb-W7pezzS8zWsRhH6tvVAaPcORlb7P-55k=.e5d20f00-8e57-42aa-9467-eb9bc2a9e90c@github.com> On Thu, 29 Feb 2024 15:13:16 GMT, Alexey Ivanov wrote: > 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). src/java.desktop/share/classes/sun/swing/text/TextComponentPrintable.java line 785: > 783: * we do not store the same value as previous. in our > 784: * documents it is often for consecutive positions to have > 785: * the same modelToView y and height. If we are going to fix that, we might as well fix the entire sentence. In particular I strongly suspect that the author meant "common" not "often". "often" would only be correct here if used in a phrase like "often the case", but "common" is simpler. And the usage of "previous" isn't right. I'm not sure I get what the commenter means to say here, perhaps "previously" ? And capitalise "We", and "In" since they begin sentences * We do not store the same value as previously. * In our documents it is common for consequent positions to have * the same modelToView y and height. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18067#discussion_r1511570584 From prr at openjdk.org Mon Mar 4 19:00:55 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 4 Mar 2024 19:00:55 GMT Subject: RFR: 8327007: javax/swing/JSpinner/8008657/bug8008657.java fails [v2] In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 05:19:02 GMT, Prasanta Sadhukhan wrote: >> Test failed with the exception java.lang.IllegalArgumentException: (start <= value <= end) with no history of failing till date. >> Investigation shows SpinnerDateModel constructor condition is not satisfied because >> It seems it's a leap year problem that is being manifested.. >> >> As per test, >> initDate Thu Feb 29 13:49:08 IST 2024 [ obtained by calendar.getTime();] >> earliestDate Tue Feb 28 13:49:08 IST 2023 [obtained by calendar.add(Calendar.YEAR, -1);] >> latestDate Wed Feb 28 13:49:08 IST 2024 [obtained by calendar.add(Calendar.YEAR, 1);] >> >> Now, as per SpinnerDateModel constructor >> earliestDate <= initDate condition is satisfied >> but >> latestDate >= initDate is not >> so [start <= value <= end](https://github.com/openjdk/jdk/blob/998d0baab0fd051c38d9fd6021628eb863b80554/src/java.desktop/share/classes/javax/swing/SpinnerDateModel.java#L185) condition fails >> >> Not sure it anything can be done in Calendar class for this but fix is done in test taking leapyear into account so that we add a day if it's a leapyear when we consecutively do Calendar.add(YEAR, -1) and Calendar.add(YEAR,1) on leapyear date of 29Feb > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Increment DAY_OF_MONTH to circumvent leapyear issue Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18054#pullrequestreview-1915091639 From aivanov at openjdk.org Mon Mar 4 20:25:01 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 4 Mar 2024 20:25:01 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache Message-ID: 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 threads can see the `null` value and create new `FilesLoader` threads. The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. ------------- Commit messages: - Remove volatile modifier from DoChangeContents in FilesLoader - Remove synchronized modifier from DoChangeContents.run - Declare addStart and remStart in DoChangeContents as final - Reverse condition in DoChangeContents.run to decrease indentation - Remove cancelRunnables - Declare newFiles as final - Remove redundant fileSystem variable in FilesLoader.run0 - Create FilesLoader inside synchronized section Changes: https://git.openjdk.org/jdk/pull/18111/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8325179 Stats: 61 lines in 1 file changed: 14 ins; 23 del; 24 mod Patch: https://git.openjdk.org/jdk/pull/18111.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18111/head:pull/18111 PR: https://git.openjdk.org/jdk/pull/18111 From aivanov at openjdk.org Mon Mar 4 20:32:43 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 4 Mar 2024 20:32:43 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache In-Reply-To: References: Message-ID: 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. This fix also resolves [JDK-8238169](https://bugs.openjdk.org/browse/JDK-8238169) because the `cancelRunnables` method is removed; the `synchronized` modifier from `DoChangeContents.run` is also removed. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18111#issuecomment-1977400767 From mark.yagnatinsky at barclays.com Mon Mar 4 20:42:18 2024 From: mark.yagnatinsky at barclays.com (mark.yagnatinsky at barclays.com) Date: Mon, 4 Mar 2024 20:42:18 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: Message-ID: Thanks! I don?t have a particularly deep motivation here, other than curiosity. If you?re wondering how my curiosity got piqued initially, it was something like this: A while ago, someone at work was adding copy/paste support to some component that didn?t have it. I noticed that they ?hardcoded? the shortcut ?ctrl C?. And I thought to myself: Swing already ?knows? that this is the right keyboard shortcut, in the sense that all components that support copy/paste ?out of the box? use it. It would be nice if there was some way to ASK it to tell me what it ?knows?. From: Jeremy Wood Sent: Sunday, March 3, 2024 11:30 PM To: Yagnatinsky, Mark : Markets Pre Trade ; client-libs-dev at openjdk.org Subject: Re[2]: how to get find out the keyboard shortcut for the paste action? CAUTION: This email originated from outside our organisation - mickleness at gmail.com Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. > But now I have a new question? > Is there any way to get the ?usual? letter for a ?common? operation? Hmm. Good question. Not that I know of. > Again, one could create a scratch text area and grovel through its input map, but that seems hacky. I agree sifting through the L&F seems hacky. I don?t think I understand exactly what you?re trying to implement here. If you give me a more concrete example: maybe I (or someone on this list) can offer a more concrete suggestion? I?ll add some context in case this speaks to your question. By default Swing gets this information in places like BasicTextUI#getInputMap(), which calls: InputMap shared = (InputMap)DefaultLookup.get(editor, this, getPropertyPrefix() + ".focusInputMap?); The following works on my Mac & Windows machine (I think using JDK 19), but I wouldn?t be surprised if it fails in other platforms / L&F?s. It feels brittle, but it might (?) have potential: private KeyStroke getCopyKeyStroke() { InputMap inputMap = (InputMap) UIManager.getDefaults().get("TextField.focusInputMap"); for (KeyStroke keyStroke : inputMap.keys()) { Object action = inputMap.get(keyStroke); if ("copy-to-clipboard".equals(action)) { return keyStroke; } } // this will show all the default keystrokes // System.out.println(Arrays.asList(inputMap.allKeys())); return null; } Regards, - Jeremy ------ Original Message ------ From mark.yagnatinsky at barclays.com To mickleness at gmail.com; client-libs-dev at openjdk.org Date 3/3/24, 6:00:46?PM Subject RE: how to get find out the keyboard shortcut for the paste action? Thanks for the response! I didn?t expect to get one at this point ? It does indeed answer my question! (Though you didn?t quite get the name right: there?s no Ex at the end? I take it you?ve done some Windows programming at some point) But now I have a new question? Is there any way to get the ?usual? letter for a ?common? operation? For instance, lots of programs support copy and paste. Is there a way to ask Java ?what is the standard letter for paste? and get back ?V?? Again, one could create a scratch text area and grovel through its input map, but that seems hacky. This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From aivanov at openjdk.org Mon Mar 4 21:26:42 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 4 Mar 2024 21:26:42 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache In-Reply-To: References: Message-ID: 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. @mrserb, could you take a look, please? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18111#issuecomment-1977483135 From serb at openjdk.org Tue Mar 5 00:50:56 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Tue, 5 Mar 2024 00:50:56 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache In-Reply-To: References: Message-ID: 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 101: > 99: */ > 100: public synchronized void invalidateFileCache() { > 101: if (filesLoader != null) { This is a public API method, can we minimize the change and use "synchronized (this)" instead? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1511986238 From serb at openjdk.org Tue Mar 5 01:01:49 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Tue, 5 Mar 2024 01:01:49 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS In-Reply-To: References: Message-ID: <6aO1JMWfnuzwP6QH4GVnI9YW7nW8XygymJvsjVU0ykY=.cbf6f144-4a45-428e-9ae3-eacd67641e94@github.com> On Sun, 3 Mar 2024 09:01:49 GMT, Dmitry Markov wrote: > Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. test/jdk/sun/java2d/cmm/ColorConvertOp/ColConvCCMTest.java line 63: > 61: 10.5, // GRAY > 62: 215.0, // PYCC > 63: 56.0 // CIEXYZ All this change will delete all information about "old and good" values and start to use lcms thresholds for all profiles? I think it should be the opposite - use the good data for all except lcms(or any other not that good as jdk8 profiles), like we do it now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18097#discussion_r1511992175 From psadhukhan at openjdk.org Tue Mar 5 02:37:50 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 5 Mar 2024 02:37:50 GMT Subject: Integrated: 8327007: javax/swing/JSpinner/8008657/bug8008657.java fails In-Reply-To: References: Message-ID: <6UIakAOIpXUXgYmz2IMoN05gqRhFAPDL9Isp9zeUgbY=.87f728ba-6050-46a9-9cb4-d86e4e8b229e@github.com> On Thu, 29 Feb 2024 09:34:05 GMT, Prasanta Sadhukhan wrote: > Test failed with the exception java.lang.IllegalArgumentException: (start <= value <= end) with no history of failing till date. > Investigation shows SpinnerDateModel constructor condition is not satisfied because > It seems it's a leap year problem that is being manifested.. > > As per test, > initDate Thu Feb 29 13:49:08 IST 2024 [ obtained by calendar.getTime();] > earliestDate Tue Feb 28 13:49:08 IST 2023 [obtained by calendar.add(Calendar.YEAR, -1);] > latestDate Wed Feb 28 13:49:08 IST 2024 [obtained by calendar.add(Calendar.YEAR, 1);] > > Now, as per SpinnerDateModel constructor > earliestDate <= initDate condition is satisfied > but > latestDate >= initDate is not > so [start <= value <= end](https://github.com/openjdk/jdk/blob/998d0baab0fd051c38d9fd6021628eb863b80554/src/java.desktop/share/classes/javax/swing/SpinnerDateModel.java#L185) condition fails > > Not sure it anything can be done in Calendar class for this but fix is done in test taking leapyear into account so that we add a day if it's a leapyear when we consecutively do Calendar.add(YEAR, -1) and Calendar.add(YEAR,1) on leapyear date of 29Feb This pull request has now been integrated. Changeset: b7540df6 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/b7540df6a4279c63e69d32b9d9834f7a427478d1 Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod 8327007: javax/swing/JSpinner/8008657/bug8008657.java fails Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18054 From psadhukhan at openjdk.org Tue Mar 5 03:07:49 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 5 Mar 2024 03:07:49 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4] In-Reply-To: References: Message-ID: On Fri, 1 Mar 2024 10:38:21 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 otherwise return the default color by calling native APIs. >> Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > extended fix for disabled checkbox and radiobutton src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java line 205: > 203: Color c = (Color) get(context, "RadioButton.disabledText"); > 204: if (c != null) { > 205: return c; What about the enabled state text? WIll that not required to be handled? Can this be done in a separate method passing in the required Java level property? 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 bug id needs to be added in jtreg tag ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512073988 PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512074176 From serb at openjdk.org Tue Mar 5 03:51:54 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Tue, 5 Mar 2024 03:51:54 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS In-Reply-To: <6aO1JMWfnuzwP6QH4GVnI9YW7nW8XygymJvsjVU0ykY=.cbf6f144-4a45-428e-9ae3-eacd67641e94@github.com> References: <6aO1JMWfnuzwP6QH4GVnI9YW7nW8XygymJvsjVU0ykY=.cbf6f144-4a45-428e-9ae3-eacd67641e94@github.com> Message-ID: On Tue, 5 Mar 2024 00:58:42 GMT, Sergey Bylokhov wrote: >> Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. > > test/jdk/sun/java2d/cmm/ColorConvertOp/ColConvCCMTest.java line 63: > >> 61: 10.5, // GRAY >> 62: 215.0, // PYCC >> 63: 56.0 // CIEXYZ > > All this change will delete all information about "old and good" values and start to use lcms thresholds for all profiles? I think it should be the opposite - use the good data for all except lcms(or any other not that good as jdk8 profiles), like we do it now. Actually the purpose of these particular tests is validation of the quality of the built-in color profiles. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18097#discussion_r1512099541 From abhiscxk at openjdk.org Tue Mar 5 04:46:48 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 04:46:48 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4] In-Reply-To: References: Message-ID: On Tue, 5 Mar 2024 03:04:43 GMT, Prasanta Sadhukhan wrote: > What about the enabled state text? WIll that not required to be handled? If the component is in enabled state and color is set by the user then it needs to handle as well. Since the bug reported was for disabled state, didn't add for enabled as of now. > Can this be done in a separate method passing in the required Java level property? Yeah sure. Will check and update. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512125998 From abhiscxk at openjdk.org Tue Mar 5 05:28:01 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 05:28:01 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: Message-ID: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> > 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 otherwise return the default color by calling native APIs. > Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: separate method to get LAF defined color ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17763/files - new: https://git.openjdk.org/jdk/pull/17763/files/2ccca3f3..360e21e8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17763&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17763&range=03-04 Stats: 22 lines in 2 files changed: 9 ins; 9 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17763.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17763/head:pull/17763 PR: https://git.openjdk.org/jdk/pull/17763 From abhiscxk at openjdk.org Tue Mar 5 06:08:00 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 06:08:00 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6] In-Reply-To: References: Message-ID: <8u2GCTfCYV7k8cpsayj-zYwBOlYxOwyEzrs_NYKPnPI=.fcc890c2-7bfa-47b5-b6ff-4f451dc9c2db@github.com> > 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. Link posted in JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17961/files - new: https://git.openjdk.org/jdk/pull/17961/files/ec7b1a04..e520b8f0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=04-05 Stats: 55 lines in 2 files changed: 26 ins; 22 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/17961.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17961/head:pull/17961 PR: https://git.openjdk.org/jdk/pull/17961 From abhiscxk at openjdk.org Tue Mar 5 06:57:47 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 06:57:47 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4] In-Reply-To: References: Message-ID: On Tue, 5 Mar 2024 03:05:04 GMT, Prasanta Sadhukhan wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> extended fix for disabled checkbox and radiobutton > > 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 bug id needs to be added in jtreg tag Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512214682 From psadhukhan at openjdk.org Tue Mar 5 08:23:50 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 5 Mar 2024 08:23:50 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: 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 otherwise return the default color by calling native APIs. >> Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > separate method to get LAF defined color Changes requested by psadhukhan (Reviewer). src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java line 205: > 203: private Color getLAFDefinedColor(SynthContext context, int state, > 204: ColorType type, String propertyName) { > 205: Color c = (Color) get(context, propertyName); I guess these condition checks should also be done inside the method since you are passing the values anyway... Also, the enabled state are still not handled..If the existing testcase does not catch those, maybe we can add subtests to it.. test/jdk/javax/swing/plaf/basic/BasicHTML/bug4248210.java line 40: > 38: /* > 39: * @test > 40: * @bug 4248210 8075917 4314194 4314194 remove from here.. ------------- PR Review: https://git.openjdk.org/jdk/pull/17763#pullrequestreview-1916196212 PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512316161 PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512318090 From psadhukhan at openjdk.org Tue Mar 5 08:23:51 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 5 Mar 2024 08:23:51 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v4] In-Reply-To: References: Message-ID: <_M2jCEbqWHcpKJqX9MNwi915VyOAMngJbQApHcWM-1g=.17320eab-5372-420a-bbaf-3efafae878fe@github.com> 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 bug id needs to be added in jtreg tag > > Updated. No, it's need to be updated in this test 8075917 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512316071 From mkartashev at openjdk.org Tue Mar 5 08:55:05 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Tue, 5 Mar 2024 08:55:05 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v4] In-Reply-To: References: Message-ID: > 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 for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. > > References > * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html > * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) 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. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17985/files - new: https://git.openjdk.org/jdk/pull/17985/files/35cef969..11060c71 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=02-03 Stats: 35 lines in 3 files changed: 21 ins; 0 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/17985.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17985/head:pull/17985 PR: https://git.openjdk.org/jdk/pull/17985 From aturbanov at openjdk.org Tue Mar 5 09:24:45 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Tue, 5 Mar 2024 09:24:45 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache In-Reply-To: References: Message-ID: 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 539: > 537: int remSize = (remFiles == null) ? 0 : remFiles.size(); > 538: int addSize = (addFiles == null) ? 0 : addFiles.size(); > 539: synchronized(fileCache) { Suggestion: synchronized (fileCache) { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1512452216 From mkartashev at openjdk.org Tue Mar 5 09:26:46 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Tue, 5 Mar 2024 09:26:46 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux In-Reply-To: References: Message-ID: <0iMlKhF6SPkJPnPpnk6vQbXhxjuImgDoc3VdH_NMvK0=.d6498650-b51c-4839-b48d-30c31ae48533@github.com> 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > Looks reasonable to me. I'm a bit surprised this hasn't come up before. > > On Mac I see that we already do this properly, I presume this is also the case on Windows, so the test will pass on all platforms ? > > I think we should submit a test job ... @prrace The fix was extended to Windows as well. MacOS works as it is except that the test needed some tweaking to allow for slower iconify/de-iconify effects. Please, have a look at the updated version. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17985#issuecomment-1978306651 From aturbanov at openjdk.org Tue Mar 5 09:27:47 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Tue, 5 Mar 2024 09:27:47 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache In-Reply-To: References: Message-ID: 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 281: > 279: private final Thread loadThread; > 280: > 281: private DoChangeContents runnable; Can be converted to local variable now ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1512458776 From tr at openjdk.org Tue Mar 5 09:33:45 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 5 Mar 2024 09:33:45 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v4] In-Reply-To: References: Message-ID: 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > 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/IconifiedToFront.java line 100: > 98: > 99: private static void pause() { > 100: robot.delay(PAUSE_MS); Adding `robot.waitForIdle(); ` after delay would be better. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17985#discussion_r1512475560 From mkartashev at openjdk.org Tue Mar 5 10:16:58 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Tue, 5 Mar 2024 10:16:58 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5] In-Reply-To: References: Message-ID: <4ZzIgJ3GvtcPQdKqBZ5J49WcKrfNgUjxff02pRSd7fI=.f2e73f77-4aac-4c29-8831-04aaf9d81d23@github.com> > 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 for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. > > References > * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html > * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision: Made the test to waitForIdle() ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17985/files - new: https://git.openjdk.org/jdk/pull/17985/files/11060c71..d7d134ee Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=03-04 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/17985.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17985/head:pull/17985 PR: https://git.openjdk.org/jdk/pull/17985 From mkartashev at openjdk.org Tue Mar 5 10:16:59 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Tue, 5 Mar 2024 10:16:59 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v4] In-Reply-To: References: Message-ID: 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/IconifiedToFront.java line 100: > >> 98: >> 99: private static void pause() { >> 100: robot.delay(PAUSE_MS); > > Adding `robot.waitForIdle(); ` after delay would be better. Agreed; done. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17985#discussion_r1512569922 From tr at openjdk.org Tue Mar 5 10:47:46 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 5 Mar 2024 10:47:46 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5] In-Reply-To: <4ZzIgJ3GvtcPQdKqBZ5J49WcKrfNgUjxff02pRSd7fI=.f2e73f77-4aac-4c29-8831-04aaf9d81d23@github.com> References: <4ZzIgJ3GvtcPQdKqBZ5J49WcKrfNgUjxff02pRSd7fI=.f2e73f77-4aac-4c29-8831-04aaf9d81d23@github.com> Message-ID: 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > 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: public class IconifiedToFront { > 41: private static final int PAUSE_MS = 1500; 1.5 sec is minimum delay, can we reduced it ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17985#discussion_r1512612075 From aivanov at openjdk.org Tue Mar 5 11:07:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 11:07:13 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2] In-Reply-To: References: Message-ID: > 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 threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. 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 constructor private, wrap its parameters - Space after synchronized in DoChangeContents.run - Convert runnable to local variable ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18111/files - new: https://git.openjdk.org/jdk/pull/18111/files/4215925b..a0659236 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=00-01 Stats: 13 lines in 1 file changed: 3 ins; 2 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18111.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18111/head:pull/18111 PR: https://git.openjdk.org/jdk/pull/18111 From aivanov at openjdk.org Tue Mar 5 11:07:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 11:07:14 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2] In-Reply-To: References: Message-ID: 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 constructor private, wrap its parameters >> - Space after synchronized in DoChangeContents.run >> - Convert runnable to local variable > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 101: > >> 99: */ >> 100: public synchronized void invalidateFileCache() { >> 101: if (filesLoader != null) { > > This is a public API method, can we minimize the change and use "synchronized (this)" instead? The `synchronized` modifier is not part of public API specification, it's not shown in the generated Javadoc. Anyway, I updated the code to use `synchronized (this)` block inside the method. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1512638838 From aivanov at openjdk.org Tue Mar 5 11:07:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 11:07:14 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2] In-Reply-To: References: Message-ID: 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 constructor private, wrap its parameters >> - Space after synchronized in DoChangeContents.run >> - Convert runnable to local variable > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 281: > >> 279: private final Thread loadThread; >> 280: >> 281: private DoChangeContents runnable; > > Can be converted to local variable now You're right. I didn't notice it. > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 539: > >> 537: int remSize = (remFiles == null) ? 0 : remFiles.size(); >> 538: int addSize = (addFiles == null) ? 0 : addFiles.size(); >> 539: synchronized(fileCache) { > > Suggestion: > > synchronized (fileCache) { I didn't modify this code. I went ahead and updated it so that it's consistent in the class. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1512635413 PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1512636642 From abhiscxk at openjdk.org Tue Mar 5 11:08:51 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 11:08:51 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: 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);` but the checkbox/radiobutton is painted with default black color. Should we handle the change in metal LAF as well? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1512641363 From aivanov at openjdk.org Tue Mar 5 11:29:47 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 11:29:47 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2] In-Reply-To: References: Message-ID: 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 between these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > 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 constructor private, wrap its parameters > - Space after synchronized in DoChangeContents.run > - Convert runnable to local variable src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 397: > 395: if (!fileCache.equals(newFileCache)) { > 396: if (loadThread.isInterrupted()) { > 397: return null; This should've been `return null` all the way. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1512665847 From aivanov at openjdk.org Tue Mar 5 11:51:48 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 11:51:48 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6] In-Reply-To: <8u2GCTfCYV7k8cpsayj-zYwBOlYxOwyEzrs_NYKPnPI=.fcc890c2-7bfa-47b5-b6ff-4f451dc9c2db@github.com> References: <8u2GCTfCYV7k8cpsayj-zYwBOlYxOwyEzrs_NYKPnPI=.fcc890c2-7bfa-47b5-b6ff-4f451dc9c2db@github.com> Message-ID: 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 with SwingSet2 application. >> CI tests are green with the fix. Link posted in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Looks good to me except for a couple minor comments. 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"); > 58: final int EXPECTED = 5; I meant making it `private static final` outside of main. I suggest something like this: private static JFrame frame; private static JMenuBar menuBar; private static JMenu fileMenu; private static final AtomicInteger mnemonicHideCount = new AtomicInteger(0); private static final AtomicInteger mnemonicShowCount = new AtomicInteger(0); private static final int EXPECTED = 5; The blank lines separate the blocks of related fields. test/jdk/javax/swing/JMenuBar/TestMenuMnemonic.java line 97: > 95: if (WindowsLookAndFeel.isMnemonicHidden()) { > 96: mnemonicHideCount.getAndIncrement(); > 97: // check if selection is cleared when mnemonics are hidden We capitalise ?C? since it starts a sentence: Suggestion: // Check if selection is cleared when mnemonics are hidden See [a comment on the subject](https://github.com/openjdk/jdk/pull/18067#discussion_r1511570584). ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/17961#pullrequestreview-1916657969 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1512686263 PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1512689884 From abhiscxk at openjdk.org Tue Mar 5 12:16:48 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 12:16:48 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6] In-Reply-To: References: <8u2GCTfCYV7k8cpsayj-zYwBOlYxOwyEzrs_NYKPnPI=.fcc890c2-7bfa-47b5-b6ff-4f451dc9c2db@github.com> Message-ID: 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 From aivanov at openjdk.org Tue Mar 5 12:19:46 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 12:19:46 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6] In-Reply-To: References: <8u2GCTfCYV7k8cpsayj-zYwBOlYxOwyEzrs_NYKPnPI=.fcc890c2-7bfa-47b5-b6ff-4f451dc9c2db@github.com> Message-ID: 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"); >>> 58: final int EXPECTED = 5; >> >> I meant making it `private static final` outside of main. >> >> I suggest something like this: >> >> >> private static JFrame frame; >> private static JMenuBar menuBar; >> private static JMenu fileMenu; >> >> private static final AtomicInteger mnemonicHideCount = new AtomicInteger(0); >> private static final AtomicInteger mnemonicShowCount = new AtomicInteger(0); >> >> private static final int EXPECTED = 5; >> >> >> The blank lines separate the blocks of related fields. > >>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 case, the compiler may eliminate the constant and inline its value; in the former case, it can't do it. I am still for making it a real constant declared at the class level as per my suggestion above. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1512723625 From abhiscxk at openjdk.org Tue Mar 5 12:31:00 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 12:31:00 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v7] In-Reply-To: References: Message-ID: > 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. Link posted in JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: minor test update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17961/files - new: https://git.openjdk.org/jdk/pull/17961/files/e520b8f0..10014445 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=06 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17961&range=05-06 Stats: 6 lines in 1 file changed: 3 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17961.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17961/head:pull/17961 PR: https://git.openjdk.org/jdk/pull/17961 From aivanov at openjdk.org Tue Mar 5 12:31:00 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 12:31:00 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v7] In-Reply-To: References: Message-ID: 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 with SwingSet2 application. >> CI tests are green with the fix. Link posted in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > minor test update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/17961#pullrequestreview-1916757644 From abhiscxk at openjdk.org Tue Mar 5 12:31:00 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 5 Mar 2024 12:31:00 GMT Subject: RFR: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed [v6] In-Reply-To: References: <8u2GCTfCYV7k8cpsayj-zYwBOlYxOwyEzrs_NYKPnPI=.fcc890c2-7bfa-47b5-b6ff-4f451dc9c2db@github.com> Message-ID: <4B4dycXpCKqlTT2feF6CuABvz3t21jH0OuvzqqehvEk=.97accaaa-5801-46e5-80a6-22a700a1a9b8@github.com> 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 case, the compiler may eliminate the constant and inline its value; in the former case, it can't do it. > > I am still for making it a real constant declared at the class level as per my suggestion above. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17961#discussion_r1512740249 From aivanov at openjdk.org Tue Mar 5 12:47:54 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 12:47:54 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v11] In-Reply-To: References: Message-ID: 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Suggesions incorporated Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PageFormat/PageSetupDialog.java line 239: > 237: PassFailJFrame.builder() > 238: .instructions(INSTRUCTIONS) > 239: .testUI(PageSetupDialog::new) Suggestion: PassFailJFrame.builder() .instructions(INSTRUCTIONS) .testTimeOut(10) .testUI(PageSetupDialog::new) Given the number of cases to go through, I suggest increasing the timeout to 10 minutes at least. test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java line 50: > 48: "progress automatically cancels the print job.\n" + > 49: "You should see a message on System.out that the job\n" + > 50: "was properly cancelled."; Suggestion: "Test that print job cancellation works.\n\n" + "This test starts after clicking OK / Print button. "While the print job is in progress, the test automatically cancels it.\n" + "The test will complete automatically."; test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java line 69: > 67: pjc.pj.cancel(); > 68: } > 69: else { Suggestion: } else { Use Java style. test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java line 70: > 68: } > 69: else { > 70: PassFailJFrame.forceFail("User cancelled"); Be more specific? Suggestion: PassFailJFrame.forceFail("User cancelled printing"); test/jdk/java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java line 93: > 91: prex.printStackTrace(); > 92: PassFailJFrame.forceFail("This is wrong .. we shouldn't be here, " + > 93: "Looks like a test failure"); Suggestion: PassFailJFrame.forceFail("Unexpected PrinterException caught: " + prex.getMessage()); test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 45: > 43: private static final int FONT_SIZE = 14; > 44: private final Font[] allFonts = > 45: GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); I suggest adding blank lines to visually separate fields / constants with different purpose. Suggestion: private static final int LINE_HEIGHT = 18; private static final int FONT_SIZE = 14; private final Font[] allFonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 45: > 43: boolean done = false; > 44: int thisPage = 0; > 45: This blank was actually good, it separated the instance fields from the instructions constant. test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 61: > 59: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() > 60: .instructions(INSTRUCTIONS) > 61: .rows((int) INSTRUCTIONS.lines().count() + 1) Suggestion: .instructions(INSTRUCTIONS) .testTimeOut(10) .rows((int) INSTRUCTIONS.lines().count() + 1) The list of fonts could be long, and the tester may need to go to fetch the printouts from a printer. test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 69: > 67: if (pj.printDialog()) { > 68: pj.print(); > 69: } Fail the test if the user clicks Cancel in the print dialog? test/jdk/java/awt/print/PrinterJob/ValidatePage/ValidatePage.java line 214: > 212: JOptionPane.showMessageDialog(null, > 213: "NumberFormatException occured", "Error", > 214: JOptionPane.ERROR_MESSAGE); Suggestion: JOptionPane.showMessageDialog(ValidatePage.this, "NumberFormatException occurred", "Error", JOptionPane.ERROR_MESSAGE); You may provide more information to the user, at the very least the message from the exception itself. Add a comment that the tester should correct the error and try again. test/jdk/java/awt/print/PrinterJob/ValidatePage/ValidatePage.java line 233: > 231: "needed to accomodate the imageable area.\n \n \n" + > 232: "To test 6229507, put the minimum margins (all 0s) in Page Setup dialog.\n" + > 233: "Compare Imageable width, height, and margins of portrait against landscape."); Suggestion: "When validating a page, the process is 1st to find the closest matching\n" + "paper size, next to make sure the requested imageable area fits within\n" + "the printer's imageable area for that paper size. Finally the top and\n" + "left margins will be shrunk if they are too great for the adjusted\n" + "imageable area to fit at that position. They will shrink by the minimum\n" + "needed to accomodate the imageable area.\n\n\n" + "To test 6229507, put the minimum margins (all 0s) in Page Setup dialog.\n" + "Compare Imageable width, height, and margins of portrait against landscape."); The spaces at the end of lines are redundant. test/jdk/java/awt/print/PrinterJob/ValidatePage/ValidatePage.java line 301: > 299: PassFailJFrame.builder() > 300: .instructions(INSTRUCTIONS) > 301: .testUI(ValidatePage::new) Suggestion: .instructions(INSTRUCTIONS) .testTimeOut(15) .testUI(ValidatePage::new) The test requires much interaction, so the timeout should be increased accordingly. test/jdk/java/awt/print/PrinterJob/raster/RasterTest.java line 92: > 90: PrinterJob pj = PrinterJob.getPrinterJob(); > 91: > 92: if (pj != null && pj.printDialog()) { Suggestion: if (pj.printDialog()) { The contract of [`PrinterJob.getPrinterJob`](https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/print/PrinterJob.html#getPrinterJob()) doesn't allow returning `null`, so the null-check can be removed, which will resolve a warning from IDE. test/jdk/java/awt/print/PrinterJob/raster/RasterTest.java line 105: > 103: private static class RasterCanvas extends Canvas implements Printable { > 104: > 105: public int print(Graphics g, PageFormat pgFmt, int pgIndex) { Suggestion: @Override public int print(Graphics g, PageFormat pgFmt, int pgIndex) { test/jdk/java/awt/print/PrinterJob/raster/RasterTest.java line 118: > 116: } > 117: > 118: public void paint(Graphics g) { Suggestion: @Override public void paint(Graphics g) { test/jdk/java/awt/print/PrinterJob/raster/RasterTest.java line 125: > 123: doPaint(g); > 124: } > 125: Suggestion: The `paintComponent` can be removed; `Canvas` doesn't have it, only Swing components extending `JComponent` have `paintComponent` method. test/jdk/java/awt/print/PrinterJob/raster/RasterTest.java line 126: > 124: } > 125: > 126: public void doPaint(Graphics g) { Suggestion: private void doPaint(Graphics g) { Should be `private`. test/jdk/java/awt/print/PrinterJob/raster/RasterTest.java line 150: > 148: } > 149: > 150: public Dimension getPreferredSize() { Suggestion: @Override public Dimension getPreferredSize() { Let's add `@Override` annotations for clarity when a method is overridden or an interface method is implemented. ------------- PR Review: https://git.openjdk.org/jdk/pull/17607#pullrequestreview-1916685779 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512702925 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512710224 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512705603 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512712351 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512714468 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512718756 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512719757 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512742727 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512739665 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512749442 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512750500 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512754795 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512761318 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512768938 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512768757 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512766713 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512765313 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512767988 From aivanov at openjdk.org Tue Mar 5 12:47:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 12:47:55 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v6] In-Reply-To: References: Message-ID: <11qQRv-_Zu9zuMe0I6aFHNQkSAQreoymlFi10g_VEP4=.e7d0dfa3-3370-4db4-a372-50d3fc67b425@github.com> 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: "\n" + >> 52: "This bug is system dependent and is not always reproducible.\n" + >> 53: "A passing test will have all text printed with correct font style."; > > Clarify that the second column should be proper *italics*. I don't know how to explain it better; you can look at the PDFs attached to [JDK-4884389](https://bugs.openjdk.org/browse/JDK-4884389) to understand better what the bug was. I still suggest clarifying that the second column should always have the italic style and should use the italic font style if it's available (in the left column) instead of synthesised italic. Look at the `1.4.2.pdf` file attached to [JDK-4884389](https://bugs.openjdk.org/browse/JDK-4884389). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1512734177 From mkartashev at openjdk.org Tue Mar 5 13:28:46 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Tue, 5 Mar 2024 13:28:46 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5] In-Reply-To: References: <4ZzIgJ3GvtcPQdKqBZ5J49WcKrfNgUjxff02pRSd7fI=.f2e73f77-4aac-4c29-8831-04aaf9d81d23@github.com> Message-ID: 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: public class IconifiedToFront { >> 41: private static final int PAUSE_MS = 1500; > > 1.5 sec is minimum delay, can we reduced it ? Not unless there's another idea on how to measure tests' success. 1.5 seconds is about the time my MacOS needs to complete an iconify/de-iconfiy process. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17985#discussion_r1512822193 From aivanov at openjdk.org Tue Mar 5 14:10:54 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 14:10:54 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10] In-Reply-To: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> References: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> Message-ID: <-3Z3D3ZejKBGJxG_3x26fcoUx2MzUa4vQejYWFRo1-I=.29bf2730-c42a-4f37-a4ad-b14ca74fc025@github.com> 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Updated instruction Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 1: > 1: /* Could you please add `@Override` annotations to all the methods which implement the interfaces. test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 59: > 57: */ > 58: public class Collate2DPrintingTest > 59: extends Frame implements Doc, Printable { Suggestion: implements Doc, Printable { `Frame` used to be the container to display the buttons, now it's not needed. test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 74: > 72: if (pj.printDialog(prSet)) { > 73: pj.print(prSet); > 74: } In this case, the print dialog has *Collated* checked and disabled; the number of copies is set to 1 and I can't change the value. Does it work for you? Is it a bug in JDK? test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 102: > 100: main.add(Box.createVerticalGlue()); > 101: main.add(print2D); > 102: main.add(printMerlin); Suggestion: main.add(print2D); main.add(Box.createVerticalStrut(4)); main.add(printMerlin); Add some margin between the buttons. test/jdk/java/awt/print/PrinterJob/DrawImage.java line 49: > 47: public class DrawImage { > 48: private static final int OBJECT_BORDER = 15; > 49: private static final String INSTRUCTIONS = Suggestion: private static final int OBJECT_BORDER = 15; private static final String INSTRUCTIONS = I think it's better with a blank line, the two constants aren't closely related. test/jdk/java/awt/print/PrinterJob/DrawImage.java line 57: > 55: private final PageFormat pageFormat; > 56: > 57: public DrawImage(BufferedImage image) { Let's make it private too. Suggestion: private DrawImage(BufferedImage image) { test/jdk/java/awt/print/PrinterJob/DrawImage.java line 73: > 71: int y = (int) pageFormat.getImageableY(); > 72: > 73: // make slightly smaller (25) than max possible width Suggestion: // Make the image slightly smaller (25) than max possible width test/jdk/java/awt/print/PrinterJob/DrawImage.java line 87: > 85: } > 86: > 87: public void print() throws PrinterException { Suggestion: private void print() throws PrinterException { Make it `private` to avoid any confusion with implementation of `Printable` interface which must be `public`. test/jdk/java/awt/print/PrinterJob/DrawImage.java line 93: > 91: if (pj.printDialog()) { > 92: pj.print(); > 93: } Fail the test if the tester clicks Cancel in the print dialog? test/jdk/java/awt/print/PrinterJob/DrawImage.java line 104: > 102: if (image == null) { > 103: throw new RuntimeException("Image creation failed"); > 104: } It seems impossible for the `image` to be `null`. Let's drop this condition. If for whatever reason it is `null`, printing will fail with NPE. test/jdk/java/awt/print/PrinterJob/DrawImage.java line 117: > 115: } > 116: > 117: public static BufferedImage prepareFrontImage() { Let's make it private too. Suggestion: private static BufferedImage prepareFrontImage() { test/jdk/java/awt/print/PrinterJob/DrawImage.java line 121: > 119: BufferedImage result = new BufferedImage(400, 200, > 120: BufferedImage.TYPE_BYTE_GRAY); > 121: int w = result.getWidth(), h = result.getHeight(); Suggestion: int w = result.getWidth(); int h = result.getHeight(); Avoid declaring several variables at the same line. test/jdk/java/awt/print/PrinterJob/DrawStringMethods.java line 50: > 48: " This test will automatically initiate a print\n" + > 49: "\n" + > 50: " Confirm that the methods are printed.\n" + Suggestion: " This test will automatically initiate a print.\n" + "\n" + " Confirm that the following methods are printed:\n" + test/jdk/java/awt/print/PrinterJob/DrawStringMethods.java line 76: > 74: } > 75: > 76: public static AttributedCharacterIterator getIterator(String s) { Suggestion: private static AttributedCharacterIterator getIterator(String s) { Let's make it private. test/jdk/java/awt/print/PrinterJob/InvalidPage.java line 49: > 47: * @run main/manual InvalidPage > 48: */ > 49: public class InvalidPage extends Frame implements Printable { Suggestion: public class InvalidPage implements Printable { No `Frame` is needed. test/jdk/java/awt/print/PrinterJob/InvalidPage.java line 116: > 114: " Repeat for all the printers as you have installed\n" + > 115: " On Solaris and Linux just one printer is sufficient.\n" + > 116: " Collect the output and examine it, each print job has two pages\n" + Suggestion: "\n" + " Repeat for all the printers you have installed.\n" + " On Solaris and Linux just one printer is sufficient.\n" + "\n" + " Collect the output and examine it, each print job has two pages\n" + Add blank lines to separate paragraphs for easier parsing / reading. test/jdk/java/awt/print/PrinterJob/InvalidPage.java line 123: > 121: " are positioned identically on both pages\n" + > 122: " The test fails if the output from the two\n" + > 123: " pages of a job is aligned differently"; Suggestion: "\n" + " The test fails if the output from the two\n" + " pages of a job is aligned differently"; test/jdk/java/awt/print/PrinterJob/InvalidPage.java line 132: > 130: PassFailJFrame.builder() > 131: .instructions(INSTRUCTIONS) > 132: .splitUI(InvalidPage::createTestUI) Suggestion: .instructions(INSTRUCTIONS) .testTimeOut(10) .splitUI(InvalidPage::createTestUI) Increase the timeout as the tester needs to perform this operation for all the printers installed and verify the printouts. test/jdk/java/awt/print/PrinterJob/JobName/PrinterJobName.java line 40: > 38: */ > 39: public class PrinterJobName implements Printable { > 40: private static final String THE_NAME = "Testing the Jobname setting"; Suggestion: private static final String THE_NAME = "Testing the Job name setting"; Spell it with space. test/jdk/java/awt/print/PrinterJob/JobName/PrinterJobName.java line 41: > 39: public class PrinterJobName implements Printable { > 40: private static final String THE_NAME = "Testing the Jobname setting"; > 41: private static final String INSTRUCTIONS = Keep the blank line between these two constants. ------------- PR Review: https://git.openjdk.org/jdk/pull/17608#pullrequestreview-1916838124 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512798993 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512791435 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512798212 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512792702 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512803855 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512811330 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512812240 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512807572 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512808081 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512822219 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512808749 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512809270 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512828005 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512829017 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512839764 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512836220 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512836833 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512837873 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512881276 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1512872881 From aivanov at openjdk.org Tue Mar 5 14:41:49 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 14:41:49 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10] In-Reply-To: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> References: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> Message-ID: 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Updated instruction The usage of split UI makes printer tests nicer. I think all printer tests should have a Print button or the like to start testing rather than starting a print job right away. I find such tests easier to use. The instructions appear, you have the time to read through them and then click Print to start testing. In this case, if you clicked Cancel in the print dialog, you can click the Print button in the UI again to retry. However, it is not a goal at this time? a suggestion for a future improvement. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17608#issuecomment-1978922032 From aivanov at openjdk.org Tue Mar 5 15:29:00 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 15:29:00 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v9] In-Reply-To: References: Message-ID: 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Suggesions added Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 42: > 40: */ > 41: public class PageDlgPrnButton implements Printable > 42: { Suggestion: public class PageDlgPrnButton implements Printable { Keep the opening brace on the same line. test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 44: > 42: { > 43: private static final String INSTRUCTIONS = > 44: "You must have at least 2 printers available to perform this test.\n" + Suggestion: The first line can be removed, the test verifies this condition before starting. test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 52: > 50: if (PrinterJob.lookupPrintServices().length < 2) { > 51: throw new RuntimeException("Printer not configured or available."); > 52: } This is inaccurate now. We need to cases here: - No printer configured ? fail the test because the test has `@key printer`. - There are less than 2 printers ? throw `SkippedException` because the test cannot continue and there's no way to automatically check for it. Suggestion: final int serviceCount = PrinterJob.lookupPrintServices().length; if (serviceCount == 0) { throw new RuntimeException("Printer not configured or available."); } if (serviceCount < 2) { throw new SkippedException("The test requires at least 2 printers."); } test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 73: > 71: if (originalPageFormat == pageFormat) { > 72: throw new RuntimeException("OriginalPageFormat equals pageFormat"); > 73: } This does not make sense to me? All code paths seem to return a new object all the times. It is impossible to for these two objects to be identical. I can't find JDK-4956397 in JBS. test/jdk/java/awt/print/PrinterJob/PrintImage.java line 57: > 55: "Printing must be done in Japanese 2nd Edition.\n" + > 56: "Preferably Canon LaserShot A309GII.\n" + > 57: "\n" + Suggestion: I believe we can remove the first part of the instructions. The original bug [JDK-4298489](https://bugs.openjdk.org/browse/JDK-4298489) says printing by the first method was ugly and the second one was good. Both methods should produce the identical results. According to the bug description, it was reported against Windows 95 OSR 2 although the instructions in the test refer to Windows 98 Second Edition and its Japanese version for whatever reason. test/jdk/java/awt/print/PrinterJob/PrintImage.java line 59: > 57: "\n" + > 58: "Passing test : Output of text image for PrintTest1 and PrintTest2 should be\n" + > 59: "same as that on the screen."; Expand the instructions: Suggestion: "Select PrintTest1 in the File menu.\n" + "Print Dialog will appear.\n" + "Click OK to start the first print job.\n" + "\n" + "Select PrintTest2 in the File menu.\n" + "Page Setup Dialog will appear.\n" + "Click OK.\n" + "Print Dialog will appear.\n" + "Click OK to start the second print job.\n" + "\n" + "The text in the printouts for PrintTest1 and PrintTest2 should be\n" + "same as that on the screen.\n" + "Press Pass if they are, otherwise press Fail."; test/jdk/java/awt/print/PrinterJob/PrintImage.java line 93: > 91: me.add(print2Menu); > 92: mb.add(me); > 93: this.setMenuBar(mb); Suggestion: setMenuBar(mb); test/jdk/java/awt/print/PrinterJob/PrintNullString.java line 54: > 52: "The messages should contain only 'OK' and 'expected' messages\n" + > 53: "If the page fails to print, but there were no exceptions\n" + > 54: "then the problem is likely elsewhere (ie your printer)"; Suggestion: "This test should print a page which contains the same\n" + "text messages as in the test window on the screen.\n" + "\n" + "The messages should contain only 'OK' and 'expected' messages.\n" + "Press Pass if it's the case; otherwise press Fail.\n" + "\n" + "If the page fails to print, but there were no exceptions\n" + "then the problem is likely elsewhere (i.e. your printer)"; test/jdk/java/awt/print/PrinterJob/PrintNullString.java line 76: > 74: add("Center", c); > 75: > 76: JButton b = new JButton("Print"); Suggestion: Button b = new Button("Print"); Better use `Button` with other AWT components. test/jdk/java/awt/print/PrinterJob/PrintNullString.java line 122: > 120: } > 121: > 122: public void paint(Graphics2D g2d) { Suggestion: private void paint(Graphics2D g2d) { To avoid any confusion with public `paint` and `print`, even though it accepts `Graphics2D` as parameter. test/jdk/java/awt/print/PrinterJob/PrintNullString.java line 176: > 174: } > 175: > 176: public Dimension getPreferredSize() { Suggestion: @Override public Dimension getPreferredSize() { test/jdk/java/awt/print/PrinterJob/PrintParenString.java line 48: > 46: public class PrintParenString implements Printable { > 47: private static final String STR = "String containing unclosed parenthesis (."; > 48: private static final String INSTRUCTIONS = Suggestion: private static final String STR = "String containing unclosed parenthesis (."; private static final String INSTRUCTIONS = I'd add a blank line between these two. test/jdk/java/awt/print/PrinterJob/PrintTranslatedFont.java line 55: > 53: "should be immediately under the text\n" + > 54: "You should also monitor the command line to see if any exceptions\n" + > 55: "were thrown\n" + Suggestion: The tester cannot see the console or any messages printed onto the console by the test. test/jdk/java/awt/print/PrinterJob/PrintTranslatedFont.java line 79: > 77: add("Center", c); > 78: > 79: JButton b = new JButton("Print"); Suggestion: Button b = new Button("Print"); It is better not to mix AWT and Swing components; you use `Frame` as the host instead of `JFrame` in this case. test/jdk/java/awt/print/PrinterJob/PrintTranslatedFont.java line 100: > 98: } > 99: > 100: static class TextCanvas extends Panel implements Printable { Suggestion: private static class TextCanvas extends Panel implements Printable { test/jdk/java/awt/print/PrinterJob/PrintTranslatedFont.java line 119: > 117: } > 118: > 119: public void paint(Graphics2D g2d) { Suggestion: private void paint(Graphics2D g2d) { test/jdk/java/awt/print/PrinterJob/PrintTranslatedFont.java line 143: > 141: } > 142: > 143: public Dimension getPreferredSize() { Suggestion: @Override public Dimension getPreferredSize() { ------------- PR Review: https://git.openjdk.org/jdk/pull/17609#pullrequestreview-1917119360 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512898725 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512947071 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512908332 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512930564 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512971059 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512983320 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512983789 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512996573 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513000538 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513003163 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513022787 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513008822 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513015864 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513018179 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513018642 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513019078 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1513019442 From aivanov at openjdk.org Tue Mar 5 15:29:01 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 15:29:01 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v3] In-Reply-To: <6bPqfn0dGnEWOQOXQZyWUs8pDntf9jrb5uB6DcZJXFY=.5e832da5-87c4-45e5-b586-ea83cc2ee857@github.com> References: <6bPqfn0dGnEWOQOXQZyWUs8pDntf9jrb5uB6DcZJXFY=.5e832da5-87c4-45e5-b586-ea83cc2ee857@github.com> Message-ID: 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.\n" + >>> 48: "This test brings up a native Windows page dialog.\n" + >> >> Can we verify this too? That is the number of print services is at least 2. > > This test is showing only a windows _page setup_ without any option to select printer and printing to default printer. Do you think we should add this condition ? It shows the print dialog later after you click OK. And you can modify the page format in this Page Setup dialog; perhaps it's what expected but it's not clear. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1512949480 From alexey.ivanov at oracle.com Tue Mar 5 15:40:34 2024 From: alexey.ivanov at oracle.com (Aleksei Ivanov) Date: Tue, 5 Mar 2024 15:40:34 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: Message-ID: <8399c796-17e8-4d78-9916-a55054251420@oracle.com> 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 ? usually have the same shortcuts across all languages and OS, although macOS uses Cmd instead of Ctrl. However, the shortcut for Redo is not as standard, Ctrl+Shift+Z and Ctrl+Y are used, both could be mapped at the same time. I wonder what is the shortcut for Undo in German versions since German keyboard layout has Z and Y keys swapped. Does anyone know? So, the shortcuts used in an application are controlled by the application and the shortcuts can be localised. For this reason, the shortcuts are usually ?hardcoded?. @Jeremy Does the input map of JTextArea contain shortcuts for Cut, Copy and Paste? On 2024-03-04 20:42, mark.yagnatinsky at barclays.com wrote: > > Thanks!? I don?t have a particularly deep motivation here, other than > curiosity. > > If you?re wondering how my curiosity got piqued initially, it was > something like this: > > A while ago, someone at work was adding copy/paste support to some > component that didn?t have it. > > I noticed that they ?hardcoded? the shortcut ?ctrl C?. > > And I thought to myself: > > Swing already ?knows? that this is the right keyboard shortcut, in the > sense that all components that support copy/paste ?out of the box? use it. > > It would be nice if there was some way to ASK it to tell me what it > ?knows?. > > *From:* Jeremy Wood > *Sent:* Sunday, March 3, 2024 11:30 PM > *To:* Yagnatinsky, Mark : Markets Pre Trade > ; client-libs-dev at openjdk.org > *Subject:* Re[2]: how to get find out the keyboard shortcut for the > paste action? > > CAUTION: This email originated from outside our organisation - > mickleness at gmail.com Do not click on links, open attachments, or > respond unless you recognize the sender and can validate the content > is safe. > > >?But now I have a new question? > > > Is there any way to get the ?usual? letter for a ?common? operation? > > Hmm. Good question. Not that I know of. > > > Again, one could create a scratch text area and grovel through its > input map, but that seems hacky. > > I agree sifting through the L&F seems hacky. > > I don?t think I understand exactly what you?re trying to implement > here. If you give me a more concrete example: maybe I (or someone on > this list) can offer a more concrete suggestion? > > I?ll add some context in case this speaks to your question. > > By default Swing gets this information in places like > BasicTextUI#getInputMap(), which calls: > > InputMap shared= ??? (InputMap)DefaultLookup./get/(editor, this, ??? getPropertyPrefix() + ".focusInputMap?); > > The following works on my Mac & Windows machine (I think using JDK > 19), but I wouldn?t be surprised if it fails in other platforms / > L&F?s. It feels brittle, but it might (?) have potential: > > private KeyStroke getCopyKeyStroke() { > > InputMap inputMap = (InputMap) > UIManager.getDefaults().get("TextField.focusInputMap"); for (KeyStroke > keyStroke : inputMap.keys()) { Object action = > inputMap.get(keyStroke); if ("copy-to-clipboard".equals(action)) { > return keyStroke; ??????? } ??? } /// this will show all the default > keystrokes //??????????????? > System.out.println(Arrays.asList(inputMap.allKeys())); /return null; } > > Regards, > > ?- Jeremy > > ------ Original Message ------ > > From mark.yagnatinsky at barclays.com > > To mickleness at gmail.com; client-libs-dev at openjdk.org > > Date 3/3/24, 6:00:46?PM > > Subject RE: how to get find out the keyboard shortcut for the paste > action? > > Thanks for the response!? I didn?t expect to get one at this point J > > It does indeed answer my question! > > (Though you didn?t quite get the name right: there?s no Ex at the end? > > I take it you?ve done some Windows programming at some point) > > But now I have a new question? > > Is there any way to get the ?usual? letter for a ?common? operation? > > For instance, lots of programs support copy and paste. > > Is there a way to ask Java ?what is the standard letter for paste? > and get back ?V?? > > Again, one could create a scratch text area and grovel through its > input map, but that seems hacky. > -- Regards, Alexey From aivanov at openjdk.org Tue Mar 5 15:51:56 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 15:51:56 GMT Subject: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions [v2] In-Reply-To: References: Message-ID: > 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 incrementally with one additional commit since the last revision: Amend the comment with the suggested text ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18067/files - new: https://git.openjdk.org/jdk/pull/18067/files/310a0855..0bb80196 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18067&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18067&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18067.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18067/head:pull/18067 PR: https://git.openjdk.org/jdk/pull/18067 From aivanov at openjdk.org Tue Mar 5 15:51:57 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 15:51:57 GMT Subject: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions [v2] In-Reply-To: <3V52jpktdb-W7pezzS8zWsRhH6tvVAaPcORlb7P-55k=.e5d20f00-8e57-42aa-9467-eb9bc2a9e90c@github.com> References: <3V52jpktdb-W7pezzS8zWsRhH6tvVAaPcORlb7P-55k=.e5d20f00-8e57-42aa-9467-eb9bc2a9e90c@github.com> Message-ID: 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 right to me. Yet I couldn't figure out the better way to phrase it even though I tried re-writing it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18067#discussion_r1513061245 From mark.yagnatinsky at barclays.com Tue Mar 5 16:48:48 2024 From: mark.yagnatinsky at barclays.com (mark.yagnatinsky at barclays.com) Date: Tue, 5 Mar 2024 16:48:48 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: <8399c796-17e8-4d78-9916-a55054251420@oracle.com> References: <8399c796-17e8-4d78-9916-a55054251420@oracle.com> Message-ID: 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 ; mickleness at gmail.com; client-libs-dev at openjdk.org Subject: Re: how to get find out the keyboard shortcut for the paste action? CAUTION: This email originated from outside our organisation - alexey.ivanov at oracle.com Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. 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 ? usually have the same shortcuts across all languages and OS, although macOS uses Cmd instead of Ctrl. However, the shortcut for Redo is not as standard, Ctrl+Shift+Z and Ctrl+Y are used, both could be mapped at the same time. I wonder what is the shortcut for Undo in German versions since German keyboard layout has Z and Y keys swapped. Does anyone know? So, the shortcuts used in an application are controlled by the application and the shortcuts can be localised. For this reason, the shortcuts are usually ?hardcoded?. @Jeremy Does the input map of JTextArea contain shortcuts for Cut, Copy and Paste? On 2024-03-04 20:42, mark.yagnatinsky at barclays.com wrote: > > Thanks!? I don?t have a particularly deep motivation here, other than > curiosity. > > If you?re wondering how my curiosity got piqued initially, it was > something like this: > > A while ago, someone at work was adding copy/paste support to some > component that didn?t have it. > > I noticed that they ?hardcoded? the shortcut ?ctrl C?. > > And I thought to myself: > > Swing already ?knows? that this is the right keyboard shortcut, in the > sense that all components that support copy/paste ?out of the box? use it. > > It would be nice if there was some way to ASK it to tell me what it > ?knows?. > > *From:* Jeremy Wood > *Sent:* Sunday, March 3, 2024 11:30 PM > *To:* Yagnatinsky, Mark : Markets Pre Trade > ; client-libs-dev at openjdk.org > *Subject:* Re[2]: how to get find out the keyboard shortcut for the > paste action? > > CAUTION: This email originated from outside our organisation - > mickleness at gmail.com Do not click on links, open attachments, or > respond unless you recognize the sender and can validate the content > is safe. > > >?But now I have a new question? > > > Is there any way to get the ?usual? letter for a ?common? operation? > > Hmm. Good question. Not that I know of. > > > Again, one could create a scratch text area and grovel through its > input map, but that seems hacky. > > I agree sifting through the L&F seems hacky. > > I don?t think I understand exactly what you?re trying to implement > here. If you give me a more concrete example: maybe I (or someone on > this list) can offer a more concrete suggestion? > > I?ll add some context in case this speaks to your question. > > By default Swing gets this information in places like > BasicTextUI#getInputMap(), which calls: > > InputMap shared= ??? (InputMap)DefaultLookup./get/(editor, this, ??? > getPropertyPrefix() + ".focusInputMap?); > > The following works on my Mac & Windows machine (I think using JDK > 19), but I wouldn?t be surprised if it fails in other platforms / > L&F?s. It feels brittle, but it might (?) have potential: > > private KeyStroke getCopyKeyStroke() { > > InputMap inputMap = (InputMap) > UIManager.getDefaults().get("TextField.focusInputMap"); for (KeyStroke > keyStroke : inputMap.keys()) { Object action = > inputMap.get(keyStroke); if ("copy-to-clipboard".equals(action)) { > return keyStroke; ??????? } ??? } /// this will show all the default > keystrokes // System.out.println(Arrays.asList(inputMap.allKeys())); > /return null; } > > Regards, > > ?- Jeremy > > ------ Original Message ------ > > From mark.yagnatinsky at barclays.com > > To mickleness at gmail.com; client-libs-dev at openjdk.org > > Date 3/3/24, 6:00:46?PM > > Subject RE: how to get find out the keyboard shortcut for the paste > action? > > Thanks for the response!? I didn?t expect to get one at this point > J > > It does indeed answer my question! > > (Though you didn?t quite get the name right: there?s no Ex at the > end? > > I take it you?ve done some Windows programming at some point) > > But now I have a new question? > > Is there any way to get the ?usual? letter for a ?common? operation? > > For instance, lots of programs support copy and paste. > > Is there a way to ask Java ?what is the standard letter for paste? > and get back ?V?? > > Again, one could create a scratch text area and grovel through its > input map, but that seems hacky. > -- Regards, Alexey This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ From aivanov at openjdk.org Tue Mar 5 17:07:02 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 17:07:02 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent Message-ID: 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 evaluation performed by the submitter of the bug provided enough details to create a test, reproduce the problem and finally resolve it. Without the fix, the regression test always fails: a < b & b < c but a >= c where a = C:\Users\Documents(true) b = C:\Users(false) c = C:\Users\Documents(false) as well as for the reverse case: `a > b & b > c`. How it is possible to have the same folder in a list of files twice remains unknown. I believe it is another bug in JDK, however, no one has been able to reproduce it so far. ------------- Commit messages: - 8305072: Fix Win32ShellFolder2.compareTo - 8305072: Add test case for Win32ShellFolder2.compareTo Changes: https://git.openjdk.org/jdk/pull/18126/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18126&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8305072 Stats: 156 lines in 2 files changed: 154 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18126.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18126/head:pull/18126 PR: https://git.openjdk.org/jdk/pull/18126 From aivanov at openjdk.org Tue Mar 5 17:40:01 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 17:40:01 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: References: Message-ID: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> > 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 evaluation performed by the submitter of the bug provided enough details to create a test, reproduce the problem and finally resolve it. > > Without the fix, the regression test always fails: > > a < b & b < c but a >= c > where > a = C:\Users\Documents(true) > b = C:\Users(false) > c = C:\Users\Documents(false) > > as well as for the reverse case: `a > b & b > c`. > > How it is possible to have the same folder in a list of files twice remains unknown. I believe it is another bug in JDK, however, no one has been able to reproduce it so far. Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Handle fakePersonal on Windows 10 The desktop folder on Windows 10 does not include the Personal (Documents) folder. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18126/files - new: https://git.openjdk.org/jdk/pull/18126/files/7c442382..7bccc847 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18126&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18126&range=00-01 Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18126.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18126/head:pull/18126 PR: https://git.openjdk.org/jdk/pull/18126 From aivanov at openjdk.org Tue Mar 5 18:22:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 18:22:55 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2] In-Reply-To: References: <4jmx37LJU3WWe70P4sSyCBtDgU_iGbJj8q4qMiB9GmQ=.7efffac2-f074-44d4-ae21-e088725ce756@github.com> Message-ID: 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 think the return value of `::GetDIBits` should also be analysed explicitly. >> >> I would prefer backing out if any of the functions above including `::GetDIBits` returns an error. >> >> Yet I'm not sure how critical it is to run the code below. [As I mentioned](https://github.com/openjdk/jdk/pull/17197#issuecomment-1875562325) in PR #17197, there's a workaround for a case where `::GetDIBits` returns 0. @MBaesken implemented a fallback to run the code below if even if all the above calls fail. It may be safe to ignore ? in headless environment. > > Hm, I added some code for verification of ::GetDIBits result. If it is 0, I skip the rest of the coding. I don't want to touch more here since I don't understand what it is doing. It is not what I meant? If we want to preserve the way it work, we should execute the below code even if `this->GetDC()` fails? On the other hand, testing didn't find any problems, in which case I prefer bailing out after `::GetDIBits` fails too. @prrace, Do you know how critical the code below is? Is it worth to code the fallback if the path to `::GetDIBits`? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1513292270 From aivanov at openjdk.org Tue Mar 5 18:22:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 5 Mar 2024 18:22:55 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: > > load awt.dll before display check 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 needed, the code below the first call to `::GetDIBits` should be executed even if `GetDC` and `CreateCompatibleBitmap` fail. Since testing didn't reveal any problems, the fallback is probably not as important, or not critical for a headless system. src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 35: > 33: public class PlatformGraphicsInfo { > 34: > 35: private static boolean hasDisplays; I believe it can be declared `final`, it's initialised in the static initialiser that follows the declaration. Suggestion: private static final boolean hasDisplays; src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 38: > 36: > 37: static { > 38: loadAWTLibrary(); Can `WToolkit.loadLibraries()` be used here? The method is declared public, so it should be accessible. It may create a circular dependency though. ------------- PR Review: https://git.openjdk.org/jdk/pull/17614#pullrequestreview-1917750109 PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1513269942 PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1513267417 From rkannathpari at openjdk.org Wed Mar 6 05:08:08 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Wed, 6 Mar 2024 05:08:08 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v12] In-Reply-To: References: Message-ID: <_-LKuql5zt3ZU24gZkc_06GN7xgqbIKl2ZHSP-HAbdg=.3bcdddfb-7f8a-4d8f-9ba8-35dffb9e10ee@github.com> > 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 updated the pull request incrementally with one additional commit since the last revision: Added Override ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17607/files - new: https://git.openjdk.org/jdk/pull/17607/files/10c2c695..8cb1d7d4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17607&range=11 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17607&range=10-11 Stats: 36 lines in 5 files changed: 8 ins; 19 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/17607.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17607/head:pull/17607 PR: https://git.openjdk.org/jdk/pull/17607 From abhiscxk at openjdk.org Wed Mar 6 05:32:52 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 6 Mar 2024 05:32:52 GMT Subject: Integrated: 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed In-Reply-To: References: Message-ID: 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 SwingSet2 application. > CI tests are green with the fix. Link posted in JBS. This pull request has now been integrated. Changeset: 96bfe613 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/96bfe613c31f890bc4bbe989c5348ad11c070bf6 Stats: 143 lines in 2 files changed: 135 ins; 0 del; 8 mod 8326458: Menu mnemonics don't toggle in Windows LAF when F10 is pressed Reviewed-by: psadhukhan, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/17961 From rkannathpari at openjdk.org Wed Mar 6 06:09:52 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Wed, 6 Mar 2024 06:09:52 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10] In-Reply-To: <-3Z3D3ZejKBGJxG_3x26fcoUx2MzUa4vQejYWFRo1-I=.29bf2730-c42a-4f37-a4ad-b14ca74fc025@github.com> References: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> <-3Z3D3ZejKBGJxG_3x26fcoUx2MzUa4vQejYWFRo1-I=.29bf2730-c42a-4f37-a4ad-b14ca74fc025@github.com> Message-ID: 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: if (pj.printDialog(prSet)) { >> 73: pj.print(prSet); >> 74: } > > In this case, the print dialog has *Collated* checked and disabled; the number of copies is set to 1 and I can't change the value. > > Does it work for you? Is it a bug in JDK? For print to pdf, yes not able to change number of copies, but for actual printer able to change the number. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1513869975 From rkannathpari at openjdk.org Wed Mar 6 06:29:03 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Wed, 6 Mar 2024 06:29:03 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v11] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Added Override ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17608/files - new: https://git.openjdk.org/jdk/pull/17608/files/a9aebeb8..bec0332e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=10 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=09-10 Stats: 16 lines in 4 files changed: 10 ins; 2 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17608.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17608/head:pull/17608 PR: https://git.openjdk.org/jdk/pull/17608 From rkannathpari at openjdk.org Wed Mar 6 06:57:12 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Wed, 6 Mar 2024 06:57:12 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v10] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Added Override ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17609/files - new: https://git.openjdk.org/jdk/pull/17609/files/b2b8548d..df3831c8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=09 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=08-09 Stats: 24 lines in 5 files changed: 9 ins; 7 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/17609.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17609/head:pull/17609 PR: https://git.openjdk.org/jdk/pull/17609 From clanger at openjdk.org Wed Mar 6 07:50:08 2024 From: clanger at openjdk.org (Christoph Langer) Date: Wed, 6 Mar 2024 07:50:08 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: Message-ID: > 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.openjdk.org/browse/JDK-8323664) came up due to this. > > The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. > However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. > > I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. > > Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. Christoph Langer 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 14 additional commits since the last revision: - declare variable hasDisplays final - Merge branch 'master' into JDK-8185862 - load awt.dll before display check - Change implementation of headless determination on Windows - Merge branch 'master' into JDK-8185862 - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() - Merge branch 'master' into JDK-8185862 - Get rid of global variables and restore old handling wrt calling ::GetDIBits - Merge branch 'master' into JDK-8185862 - Little cleanup - ... and 4 more: https://git.openjdk.org/jdk/compare/5cf9714c...002fba2d ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17614/files - new: https://git.openjdk.org/jdk/pull/17614/files/7a00a647..002fba2d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=08 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=07-08 Stats: 4039 lines in 155 files changed: 2329 ins; 1055 del; 655 mod Patch: https://git.openjdk.org/jdk/pull/17614.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17614/head:pull/17614 PR: https://git.openjdk.org/jdk/pull/17614 From clanger at openjdk.org Wed Mar 6 07:50:08 2024 From: clanger at openjdk.org (Christoph Langer) Date: Wed, 6 Mar 2024 07:50:08 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: 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: > >> 33: public class PlatformGraphicsInfo { >> 34: >> 35: private static boolean hasDisplays; > > I believe it can be declared `final`, it's initialised in the static initialiser that follows the declaration. > Suggestion: > > private static final boolean hasDisplays; Good catch. I updated it. > src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 38: > >> 36: >> 37: static { >> 38: loadAWTLibrary(); > > Can `WToolkit.loadLibraries()` be used here? The method is declared public, so it should be accessible. > > It may create a circular dependency though. Maybe. I think, as Phil already mentions, a cleanup/centralization of the places that load libawt should be done. But I would suggest to do this in a separate issue. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1513974122 PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1513973885 From clanger at openjdk.org Wed Mar 6 07:52:50 2024 From: clanger at openjdk.org (Christoph Langer) Date: Wed, 6 Mar 2024 07:52:50 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: Message-ID: 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer 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 14 additional commits since the last revision: > > - declare variable hasDisplays final > - Merge branch 'master' into JDK-8185862 > - load awt.dll before display check > - Change implementation of headless determination on Windows > - Merge branch 'master' into JDK-8185862 > - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() > - Merge branch 'master' into JDK-8185862 > - Get rid of global variables and restore old handling wrt calling ::GetDIBits > - Merge branch 'master' into JDK-8185862 > - Little cleanup > - ... and 4 more: https://git.openjdk.org/jdk/compare/7f595d03...002fba2d > This now passes all my automated testing. Have you tested manual apps like SwingSet ? I doubt they'll have a problem but it would be good to be 100% sure. > > The only thing I notice here is it adds one more place that we duplicate the code to load the AWT native library. Bizarrely Toolkit _and_ WToolkit both do it. The result is not just duplicated code but duplicated (now triplicated) effort at startup. There might even be a fourth place - NativeLibLoader. But fixing that might mean being extra careful about not introducing circularities at start up and since the impact should be negligible I think it is out of scope for this fix. > > So just let me know about the manual testing. I ran all of test/jdk/sanity/client/SwingSet now and everything passed. So from my end this should be ready. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17614#issuecomment-1980272271 From clanger at openjdk.org Wed Mar 6 07:52:48 2024 From: clanger at openjdk.org (Christoph Langer) Date: Wed, 6 Mar 2024 07:52:48 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: 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 needed, the code below the first call to `::GetDIBits` should be executed even if `GetDC` and `CreateCompatibleBitmap` fail. > > Since testing didn't reveal any problems, the fallback is probably not as important, or not critical for a headless system. I think the bailout is unlikely to happen after this fix. At least not for the headless environment where we won't jump into AwtWin32GraphicsDevice::Initialize() at all any more. And in headless environments with working monitors, we would never bail out, I guess. However, the method could be cleaned up I guess. But that should also be done in another issue and by somebody who is more into the details of what's going on there. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17614#issuecomment-1980271374 From psadhukhan at openjdk.org Wed Mar 6 08:45:46 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 6 Mar 2024 08:45:46 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: On Tue, 5 Mar 2024 11:06:18 GMT, Abhishek Kumar wrote: >> src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java line 205: >> >>> 203: private Color getLAFDefinedColor(SynthContext context, int state, >>> 204: ColorType type, String propertyName) { >>> 205: Color c = (Color) get(context, propertyName); >> >> I guess these condition checks should also be done inside the method since you are passing the values anyway... >> Also, the enabled state are still not handled..If the existing testcase does not catch those, maybe we can add subtests to it.. > >> 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);` > > but the checkbox/radiobutton is painted with default black color. > Should we handle the change in metal LAF as well? Backtracking a bit, regarding `Label.foreground` why it needs to be done here? Other L&F, it is added in corresponding LookAndFeel class for example, in [Metal](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java#L1001) and in [Windows](https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java#L880) etc so I think it is needed to be added in GTKLookAndFeel class and additionally there is setting of `Label.foreground` and other Label. property in BasicLabelUI.java [installDefaults](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java#L368) but we dont do it for Nimbus or GTK or Synth so I guess we need to call `super.installDefaults(c)` in SynthLabelUI class since there is no GTKLabelUI class or maybe do `LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground", "Label.font");` alone to avoid other properties being set and to not fallback Please check if it will work and if it does, then we need to employ similar for checbox/radiobutton/togglebutton ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1514050005 From aivanov at openjdk.org Wed Mar 6 08:51:48 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 08:51:48 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 07:49:35 GMT, Christoph Langer 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 needed, the code below the first call to `::GetDIBits` should be executed even if `GetDC` and `CreateCompatibleBitmap` fail. > > Since testing didn't reveal any problems, the fallback is probably not as important, or not critical for a headless system. > > I think the bailout is unlikely to happen after this fix. At least not for the headless environment where we won't jump into AwtWin32GraphicsDevice::Initialize() at all any more. And in headless environments with working monitors, we would never bail out, I guess. However, the method could be cleaned up I guess. But that should also be done in another issue and by somebody who is more into the details of what's going on there. In this case, I think you should update the code to bail out if `::GetDIBits` fails. This way we will always bail out on any failure. https://github.com/openjdk/jdk/blob/58a404443691b90439800fb2fd0f76b41667b707/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp#L192-L198 At the moment the code is inconsistent. If this code isn't even run in headless environment, then it's better to make it consistent. Otherwise, it raises questions why it returns if either if `GetDC` or `CreateCompatibleBitmap` fails but continues if `::GetDIBits` fails. >> src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 38: >> >>> 36: >>> 37: static { >>> 38: loadAWTLibrary(); >> >> Can `WToolkit.loadLibraries()` be used here? The method is declared public, so it should be accessible. >> >> It may create a circular dependency though. > > Maybe. I think, as Phil already mentions, a cleanup/centralization of the places that load libawt should be done. But I would suggest to do this in a separate issue. Sounds reasonable. Will you create a CR for this? So that we won't forget about it. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17614#issuecomment-1980364103 PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1514022885 From aivanov at openjdk.org Wed Mar 6 08:51:52 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 08:51:52 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: Message-ID: 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer 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 14 additional commits since the last revision: > > - declare variable hasDisplays final > - Merge branch 'master' into JDK-8185862 > - load awt.dll before display check > - Change implementation of headless determination on Windows > - Merge branch 'master' into JDK-8185862 > - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() > - Merge branch 'master' into JDK-8185862 > - Get rid of global variables and restore old handling wrt calling ::GetDIBits > - Merge branch 'master' into JDK-8185862 > - Little cleanup > - ... and 4 more: https://git.openjdk.org/jdk/compare/e7e3e9ca...002fba2d src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 69: > 67: public static boolean getDefaultHeadlessProperty() { > 68: // If we don't find usable displays, we run headless. > 69: return !hasDisplays(); I wonder if redirection via a private method makes any meaningful difference compared to returning the value of the `hasDisplays` flag directly? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1514026459 From abhiscxk at openjdk.org Wed Mar 6 08:59:48 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 6 Mar 2024 08:59:48 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: <9LaK7sRChE5CkU7okuhRSRhRGRFRfjlYrb7dvpE_oFo=.ac9b318d-c3c1-4df5-a880-2baffe8ef502@github.com> On Wed, 6 Mar 2024 08:43:26 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);` >> >> but the checkbox/radiobutton is painted with default black color. >> Should we handle the change in metal LAF as well? > > Backtracking a bit, regarding `Label.foreground` why it needs to be done here? > > Other L&F, it is added in corresponding LookAndFeel class > for example, in [Metal](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java#L1001) > and in [Windows](https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java#L880) > etc > so I think it is needed to be added in GTKLookAndFeel class > > and additionally there is setting of `Label.foreground` and other Label. property in BasicLabelUI.java [installDefaults](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java#L368) > but we dont do it for Nimbus or GTK or Synth so I guess we need to call `super.installDefaults(c)` in SynthLabelUI class since there is no GTKLabelUI class > or > maybe do > `LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground", "Label.font");` alone to avoid other properties being set and to not fallback > > Please check if it will work > and if it does, then we need to employ similar for checbox/radiobutton/togglebutton I will check and update. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1514070177 From aivanov at openjdk.org Wed Mar 6 09:00:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 09:00:55 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v10] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 06:57:12 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Added Override Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 54: > 52: if (serviceCount < 2) { > 53: throw new SkippedException("The test requires at least 2 printers."); > 54: } This doesn't compile now. You didn't add the import for `jtreg.SkippedException`, nor did you modify the jtreg test to compile `SkippedException`. test/jdk/java/awt/print/PrinterJob/PrintCompoundString.java line 43: > 41: * @key printer > 42: * @library /test/lib /java/awt/regtesthelpers > 43: * @build PassFailJFrame jtreg.SkippedException You added `SkippedException` to the test that doesn't need it. ------------- PR Review: https://git.openjdk.org/jdk/pull/17609#pullrequestreview-1919123845 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1514068434 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1514070364 From aivanov at openjdk.org Wed Mar 6 09:02:48 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 09:02:48 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10] In-Reply-To: References: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> <-3Z3D3ZejKBGJxG_3x26fcoUx2MzUa4vQejYWFRo1-I=.29bf2730-c42a-4f37-a4ad-b14ca74fc025@github.com> Message-ID: On Wed, 6 Mar 2024 06:07:20 GMT, Renjith Kannath Pariyangad wrote: >> test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 74: >> >>> 72: if (pj.printDialog(prSet)) { >>> 73: pj.print(prSet); >>> 74: } >> >> In this case, the print dialog has *Collated* checked and disabled; the number of copies is set to 1 and I can't change the value. >> >> Does it work for you? Is it a bug in JDK? > > For print to pdf, yes not able to change number of copies, but for actual printer able to change the number. Makes sense. I had only PDF printer. Thank you for confirming it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1514074678 From rkannathpari at openjdk.org Wed Mar 6 09:46:58 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Wed, 6 Mar 2024 09:46:58 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v11] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Fixed comple issue ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17609/files - new: https://git.openjdk.org/jdk/pull/17609/files/df3831c8..e6047f06 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=10 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=09-10 Stats: 6 lines in 2 files changed: 2 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17609.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17609/head:pull/17609 PR: https://git.openjdk.org/jdk/pull/17609 From tr at openjdk.org Wed Mar 6 09:47:49 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 6 Mar 2024 09:47:49 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5] In-Reply-To: References: <4ZzIgJ3GvtcPQdKqBZ5J49WcKrfNgUjxff02pRSd7fI=.f2e73f77-4aac-4c29-8831-04aaf9d81d23@github.com> Message-ID: On Tue, 5 Mar 2024 13:25:42 GMT, Maxim Kartashev wrote: >> test/jdk/java/awt/Frame/Iconify/IconifiedToFront.java line 41: >> >>> 39: >>> 40: public class IconifiedToFront { >>> 41: private static final int PAUSE_MS = 1500; >> >> 1.5 sec is minimum delay, can we reduced it ? > > Not unless there's another idea on how to measure tests' success. 1.5 seconds is about the time my MacOS needs to complete an iconify/de-iconfiy process. Did u try after adding `waitForIdle` ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17985#discussion_r1514153337 From tr at openjdk.org Wed Mar 6 10:45:47 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 6 Mar 2024 10:45:47 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2] In-Reply-To: References: Message-ID: 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 between these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > 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 constructor private, wrap its parameters > - Space after synchronized in DoChangeContents.run > - Convert runnable to local variable src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 552: > 550: if (remSize > 0 && addSize == 0) { > 551: fireIntervalRemoved(BasicDirectoryModel.this, remStart, remStart + remSize - 1); > 552: } else if (addSize > 0 && remSize == 0 && addStart + addSize <= fileCache.size()) { Any reason for moving this portion out of `Synchronized` block? Because `fileCache.size()` might need to be inside the `Synchronized` block right? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1514242873 From mkartashev at openjdk.org Wed Mar 6 10:55:00 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Wed, 6 Mar 2024 10:55:00 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v5] In-Reply-To: References: <4ZzIgJ3GvtcPQdKqBZ5J49WcKrfNgUjxff02pRSd7fI=.f2e73f77-4aac-4c29-8831-04aaf9d81d23@github.com> Message-ID: <2V9QZd8jJBBVE421oG0hlLZSsfgz9uutwvfgvFC1KOI=.d1730d02-f4fa-4952-9a3c-5a275f98714d@github.com> On Wed, 6 Mar 2024 09:45:33 GMT, Tejesh R wrote: >> Not unless there's another idea on how to measure tests' success. 1.5 seconds is about the time my MacOS needs to complete an iconify/de-iconfiy process. > > Did u try after adding `waitForIdle` ? You were right @TejeshR13. `waitForIdle` helps and I reverted the time back to 500ms. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17985#discussion_r1514255299 From mkartashev at openjdk.org Wed Mar 6 10:55:00 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Wed, 6 Mar 2024 10:55:00 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v6] In-Reply-To: References: Message-ID: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> > 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 for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. > > References > * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html > * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision: Reduced the wait time in the test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17985/files - new: https://git.openjdk.org/jdk/pull/17985/files/d7d134ee..da72dbc0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17985&range=04-05 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17985.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17985/head:pull/17985 PR: https://git.openjdk.org/jdk/pull/17985 From tr at openjdk.org Wed Mar 6 11:22:45 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 6 Mar 2024 11:22:45 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v6] In-Reply-To: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> References: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> Message-ID: On Wed, 6 Mar 2024 10:55:00 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision: > > Reduced the wait time in the test Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/17985#pullrequestreview-1919467433 From aivanov at openjdk.org Wed Mar 6 11:27:08 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 11:27:08 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: > 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 threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Store the size of fileCache inside synchronized block ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18111/files - new: https://git.openjdk.org/jdk/pull/18111/files/a0659236..a9ec7f64 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=01-02 Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18111.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18111/head:pull/18111 PR: https://git.openjdk.org/jdk/pull/18111 From aivanov at openjdk.org Wed Mar 6 11:32:45 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 11:32:45 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v2] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 10:43:16 GMT, Tejesh R 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 constructor private, wrap its parameters >> - Space after synchronized in DoChangeContents.run >> - Convert runnable to local variable > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 552: > >> 550: if (remSize > 0 && addSize == 0) { >> 551: fireIntervalRemoved(BasicDirectoryModel.this, remStart, remStart + remSize - 1); >> 552: } else if (addSize > 0 && remSize == 0 && addStart + addSize <= fileCache.size()) { > > Any reason for moving this portion out of `Synchronized` block? Because `fileCache.size()` might need to be inside the `Synchronized` block right? I didn't touch it, it never was inside the synchronized block. Only indentation was changed in this method. However, you're right it's better to store the size of `fileCache` inside the synchronized block. The lock should not be held while notifying listeners. On the other hand, `fileCache` can't change. The only place where `fileCache` is modified is above in this method, and only on EDT. The EDT will remain busy until a `fire*` method returns. I've updated the code to avoid any confusion. Thanks! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1514311500 From mkartashev at openjdk.org Wed Mar 6 11:42:48 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Wed, 6 Mar 2024 11:42:48 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux In-Reply-To: References: Message-ID: 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > Looks reasonable to me. I'm a bit surprised this hasn't come up before. > > On Mac I see that we already do this properly, I presume this is also the case on Windows, so the test will pass on all platforms ? > > I think we should submit a test job ... @prrace What say you? ------------- PR Comment: https://git.openjdk.org/jdk/pull/17985#issuecomment-1980683967 From aivanov at openjdk.org Wed Mar 6 15:33:51 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 15:33:51 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v11] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 09:46:58 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Fixed comple issue There are quite a few other comments unresolved comments. test/jdk/java/awt/print/PrinterJob/PageDlgPrnButton.java line 40: > 38: * @requires os.family=="windows" > 39: * @library /test/lib /java/awt/regtesthelpers > 40: * @build PassFailJFrame jtreg.SkippedException Suggestion: * @library /test/lib /java/awt/regtesthelpers * @build jtreg.SkippedException PassFailJFrame Change the order to align libraries and classes from the libraries? ------------- Changes requested by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/17609#pullrequestreview-1920039700 PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1514664523 From aivanov at openjdk.org Wed Mar 6 15:33:52 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 15:33:52 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v9] In-Reply-To: References: Message-ID: <_DMmnE4n2H6vzXkb8_Brp-QQmXo50GPC72GF4Ri9aYs=.47d57c0a-dd6d-43e2-9abf-cf1150290190@github.com> On Tue, 5 Mar 2024 14:56:22 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: >> >> Suggesions added > > test/jdk/java/awt/print/PrinterJob/PrintImage.java line 57: > >> 55: "Printing must be done in Japanese 2nd Edition.\n" + >> 56: "Preferably Canon LaserShot A309GII.\n" + >> 57: "\n" + > > Suggestion: > > > I believe we can remove the first part of the instructions. The original bug [JDK-4298489](https://bugs.openjdk.org/browse/JDK-4298489) says printing by the first method was ugly and the second one was good. Both methods should produce the identical results. > > According to the bug description, it was reported against Windows 95 OSR 2 although the instructions in the test refer to Windows 98 Second Edition and its Japanese version for whatever reason. What about this comment? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17609#discussion_r1514684555 From aivanov at openjdk.org Wed Mar 6 15:45:50 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 6 Mar 2024 15:45:50 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v11] In-Reply-To: References: Message-ID: On Tue, 5 Mar 2024 12:13:02 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: >> >> Suggesions incorporated > > test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 45: > >> 43: private static final int FONT_SIZE = 14; >> 44: private final Font[] allFonts = >> 45: GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); > > I suggest adding blank lines to visually separate fields / constants with different purpose. > Suggestion: > > private static final int LINE_HEIGHT = 18; > private static final int FONT_SIZE = 14; > > private final Font[] allFonts = > GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); What about this? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1514715232 From achung at openjdk.org Wed Mar 6 20:13:58 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 6 Mar 2024 20:13:58 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v10] In-Reply-To: References: Message-ID: > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: implemented changes from feedback ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17838/files - new: https://git.openjdk.org/jdk/pull/17838/files/4b9edb5d..9e053cae Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=09 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=08-09 Stats: 27 lines in 2 files changed: 6 ins; 4 del; 17 mod Patch: https://git.openjdk.org/jdk/pull/17838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17838/head:pull/17838 PR: https://git.openjdk.org/jdk/pull/17838 From honkar at openjdk.org Wed Mar 6 20:51:48 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 6 Mar 2024 20:51:48 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v10] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 20:13:58 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > implemented changes from feedback test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 84: > 82: } finally { > 83: systemTray.remove(trayIcon); > 84: } @alisenchung I missed adding null check here earlier. It is good to have this safety check to avoid NPE. Suggestion: } finally { if (systemTray != null) { systemTray.remove(trayIcon); } } ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1515135506 From achung at openjdk.org Wed Mar 6 21:36:10 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 6 Mar 2024 21:36:10 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: null check for system tray before remove ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17838/files - new: https://git.openjdk.org/jdk/pull/17838/files/9e053cae..60bb2701 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=10 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=09-10 Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17838/head:pull/17838 PR: https://git.openjdk.org/jdk/pull/17838 From honkar at openjdk.org Wed Mar 6 21:44:53 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 6 Mar 2024 21:44:53 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 21:36:10 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > null check for system tray before remove Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/17838#pullrequestreview-1920885698 From prr at openjdk.org Wed Mar 6 23:45:52 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 6 Mar 2024 23:45:52 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v6] In-Reply-To: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> References: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> Message-ID: On Wed, 6 Mar 2024 10:55:00 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision: > > Reduced the wait time in the test Let me submit a new test job with this (hopefully final?) version ------------- PR Comment: https://git.openjdk.org/jdk/pull/17985#issuecomment-1982053728 From prr at openjdk.org Thu Mar 7 00:49:54 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 7 Mar 2024 00:49:54 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2] In-Reply-To: References: <4jmx37LJU3WWe70P4sSyCBtDgU_iGbJj8q4qMiB9GmQ=.7efffac2-f074-44d4-ae21-e088725ce756@github.com> Message-ID: <2fz9YnrAnu3iMUF-xzXPA1wsOodGvXMjxlD53GA_7Ec=.fc280af9-54cc-473e-9d0c-132f37b77314@github.com> On Tue, 5 Mar 2024 18:15:50 GMT, Alexey Ivanov wrote: > @prrace, Do you know how critical the code below is? Is it worth to code the fallback if the path to ::GetDIBits? In the headLESS case we should never be here, since this is initializing the devices that don't exist in that case. In the headFUL case I would prefer to keep the existing non-debug behaviour that we soldier on and try to do something sensible. Line 204 has a comment about a case in which GetDIBits really did fail and there's code to cope. I am writing specifically about GetDIBits. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1515338800 From tr at openjdk.org Thu Mar 7 04:16:54 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 7 Mar 2024 04:16:54 GMT Subject: RFR: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." In-Reply-To: References: Message-ID: <8pgq8yur6FcZdTrPipbw0lAwEZVBRFQbJ6j0vzYvFeE=.326894bd-0b7d-42d1-9bd8-a45d39b0da82@github.com> On Fri, 1 Mar 2024 22:49:25 GMT, Alisen Chung wrote: > Introduce delays in test to stabilize. Test passes 50x after fix. Looks fine to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18091#pullrequestreview-1921403146 From tr at openjdk.org Thu Mar 7 04:24:52 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 7 Mar 2024 04:24:52 GMT Subject: RFR: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." In-Reply-To: References: Message-ID: On Fri, 1 Mar 2024 22:49:25 GMT, Alisen Chung wrote: > Introduce delays in test to stabilize. Test passes 50x after fix. 1. Update Copywrite year. 2. Expand the imports. 3. Jtreg test format. 4. Frame title to be update w.r.t test purpose. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18091#issuecomment-1982321981 From rkannathpari at openjdk.org Thu Mar 7 07:13:02 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Thu, 7 Mar 2024 07:13:02 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v12] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Updated instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17609/files - new: https://git.openjdk.org/jdk/pull/17609/files/e6047f06..2160b4f5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=11 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17609&range=10-11 Stats: 25 lines in 3 files changed: 12 ins; 3 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/17609.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17609/head:pull/17609 PR: https://git.openjdk.org/jdk/pull/17609 From rkannathpari at openjdk.org Thu Mar 7 08:39:10 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Thu, 7 Mar 2024 08:39:10 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v12] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Updated instructions and access specifiers ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17608/files - new: https://git.openjdk.org/jdk/pull/17608/files/bec0332e..69fe7d96 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=11 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=10-11 Stats: 14 lines in 3 files changed: 1 ins; 3 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/17608.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17608/head:pull/17608 PR: https://git.openjdk.org/jdk/pull/17608 From rkannathpari at openjdk.org Thu Mar 7 09:27:10 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Thu, 7 Mar 2024 09:27:10 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v13] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Updated instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17607/files - new: https://git.openjdk.org/jdk/pull/17607/files/8cb1d7d4..892be4a0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17607&range=12 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17607&range=11-12 Stats: 8 lines in 3 files changed: 4 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/17607.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17607/head:pull/17607 PR: https://git.openjdk.org/jdk/pull/17607 From abhiscxk at openjdk.org Thu Mar 7 11:23:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 7 Mar 2024 11:23:55 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: <9LaK7sRChE5CkU7okuhRSRhRGRFRfjlYrb7dvpE_oFo=.ac9b318d-c3c1-4df5-a880-2baffe8ef502@github.com> References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> <9LaK7sRChE5CkU7okuhRSRhRGRFRfjlYrb7dvpE_oFo=.ac9b318d-c3c1-4df5-a880-2baffe8ef502@github.com> Message-ID: On Wed, 6 Mar 2024 08:57:07 GMT, Abhishek Kumar wrote: >> Backtracking a bit, regarding `Label.foreground` why it needs to be done here? >> >> Other L&F, it is added in corresponding LookAndFeel class >> for example, in [Metal](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java#L1001) >> and in [Windows](https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java#L880) >> etc >> so I think it is needed to be added in GTKLookAndFeel class >> >> and additionally there is setting of `Label.foreground` and other Label. property in BasicLabelUI.java [installDefaults](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java#L368) >> but we dont do it for Nimbus or GTK or Synth so I guess we need to call `super.installDefaults(c)` in SynthLabelUI class since there is no GTKLabelUI class >> or >> maybe do >> `LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground", "Label.font");` alone to avoid other properties being set and to not fallback >> >> Please check if it will work >> and if it does, then we need to employ similar for checbox/radiobutton/togglebutton > > I will check and update. > Backtracking a bit, regarding `Label.foreground` why it needs to be done here? > > Other L&F, it is added in corresponding LookAndFeel class for example, in [Metal](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java#L1001) and in [Windows](https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java#L880) etc so I think it is needed to be added in GTKLookAndFeel class IN GTKLookAndFeel, the color is returned specific to the style and state from native side . So, even if it is not added the default color for enabled, disabled or any other state is returned by native. Whereas In Metal the color is set by using UIManager define color. > and additionally there is setting of Label.foreground and other Label. property in BasicLabelUI.java [installDefaults](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java#L368) but we dont do it for Nimbus or GTK or Synth so I guess we need to call super.installDefaults(c) in SynthLabelUI class since there is no GTKLabelUI class or maybe do LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground", "Label.font"); alone to avoid other properties being set and to not fallback This properties are set via SynthStyle `installDefaults` method where the foreground, background are set by getting the value from `getColorForState` method. So, calling super.installDefaults(c) in SynthLabelUI will not make any difference. I checked for JLabel properties set in enabled and disabled state. In Nimbus LAF UIManager.getDefaults().put("Label[Enabled].textForeground", labelColor); UIManager.getDefaults().put("Label[Disabled].textForeground", labelDisabledColor); Other LAF UIManager.getDefaults().put("Label.foreground", labelColor); UIManager.getDefaults().put("Label.disabledForeground", labelDisabledColor); It works as expected for Metal and GTK. For Nimbus LAF, disabled color is not painted correctly. In stead the default color specified in skin.laf is rendered. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1515994970 From dmarkov at openjdk.org Thu Mar 7 12:36:05 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Thu, 7 Mar 2024 12:36:05 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: References: Message-ID: > Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. Dmitry Markov has updated the pull request incrementally with one additional commit since the last revision: Tolerance update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18097/files - new: https://git.openjdk.org/jdk/pull/18097/files/27d436fb..89557165 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18097&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18097&range=00-01 Stats: 37 lines in 3 files changed: 30 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/18097.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18097/head:pull/18097 PR: https://git.openjdk.org/jdk/pull/18097 From dmarkov at openjdk.org Thu Mar 7 12:36:06 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Thu, 7 Mar 2024 12:36:06 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: References: <6aO1JMWfnuzwP6QH4GVnI9YW7nW8XygymJvsjVU0ykY=.cbf6f144-4a45-428e-9ae3-eacd67641e94@github.com> Message-ID: On Tue, 5 Mar 2024 03:49:01 GMT, Sergey Bylokhov wrote: >> test/jdk/sun/java2d/cmm/ColorConvertOp/ColConvCCMTest.java line 63: >> >>> 61: 10.5, // GRAY >>> 62: 215.0, // PYCC >>> 63: 56.0 // CIEXYZ >> >> All this change will delete all information about "old and good" values and start to use lcms thresholds for all profiles? I think it should be the opposite - use the good data for all except lcms(or any other not that good as jdk8 profiles), like we do it now. > > Actually the purpose of these particular tests is validation of the quality of the built-in color profiles. I agree, I reverted almost all changes except the ones in tolerance for non-LCMS profiles. That values need to be updated to make the test pass on JDKs (e.g. JDK 8u, etc) where non-LCMS profiles are used ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18097#discussion_r1516077519 From abhiscxk at openjdk.org Thu Mar 7 12:44:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 7 Mar 2024 12:44:55 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> <9LaK7sRChE5CkU7okuhRSRhRGRFRfjlYrb7dvpE_oFo=.ac9b318d-c3c1-4df5-a880-2baffe8ef502@github.com> Message-ID: On Thu, 7 Mar 2024 11:21:35 GMT, Abhishek Kumar wrote: > It works as expected for Metal and GTK. For Nimbus LAF, disabled color is not painted correctly. In stead the default color specified in skin.laf is rendered. For HTML text, disabled state doesn't render in LAF defined color for Metal and GTK as well. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1516089603 From aivanov at openjdk.org Thu Mar 7 15:06:57 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 15:06:57 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 21:36:10 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > null check for system tray before remove test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 63: > 61: " (also called Taskbar Status Area on MS Windows, Notification\n" + > 62: " Area on Gnome or System Tray on KDE) is visible.\n\n" + > 63: clickInstruction + " the button on the tray icon to trigger the\n" + What I see on Windows: ?Double click _the button_ on the tray icon to trigger the?? What button do I need to click? test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 65: > 63: clickInstruction + " the button on the tray icon to trigger the\n" + > 64: " action event. Brief information about action events is printed\n" + > 65: " in the frame. After each action event the tray icon is removed from\n" + Suggestion: " in the frame. After each action event, the tray icon is removed from\n" + test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 68: > 66: " the tray and then added back in a second.\n\n" + > 67: "The test performs some automatic checks when removing the icon. If\n" + > 68: " something is wrong the corresponding message the test will automatically fail.\n" + Suggestion: " something is wrong, the test will automatically fail.\n" + test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 70: > 68: " something is wrong the corresponding message the test will automatically fail.\n" + > 69: " Repeat clicks several times. If no 'Test FAILED' messages\n" + > 70: " are printed, press PASS button else FAIL button."; Suggestion: "\n" + "Repeat clicks several times. Press PASS button."; Perhaps, the instructions need to be re-worked further. The tester needs to perform the action several times. The test will fail automatically if anything's wrong. If it doesn't, press the Pass button. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516286794 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516287544 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516288497 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516295653 From aivanov at openjdk.org Thu Mar 7 15:10:59 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 15:10:59 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v10] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 20:47:53 GMT, Harshitha Onkar wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> implemented changes from feedback > > test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 84: > >> 82: } finally { >> 83: systemTray.remove(trayIcon); >> 84: } > > @alisenchung I missed adding null check here earlier. It is good to have this safety check to avoid NPE. > > Suggestion: > > } finally { > if (systemTray != null) { > systemTray.remove(trayIcon); > } > } `SystemTray.getSystemTray()` can't return `null`. However, the static field `systemTray` can remain `null` in the test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516326933 From aivanov at openjdk.org Thu Mar 7 15:06:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 15:06:55 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v8] In-Reply-To: References: <2xTHQDg4I2rN2PtBL1FdX-0r_djhoEFoEqYqsFdJaGc=.ee551abe-90d2-4664-a038-73f204d0692f@github.com> Message-ID: On Wed, 28 Feb 2024 14:29:24 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 60: >> >>> 58: " (also called Taskbar Status Area on MS Windows, Notification\n" + >>> 59: " Area on Gnome or System Tray on KDE) is visible.\n\n" + >>> 60: clickInstruction + " the button on the tray icon to trigger the\n" + >> >> _?Right-click the button?_ or _?Double-left click the button?_ doesn't make sense to me. > > The recent update didn't clarify it, now the text reads _?Right-click the button?_ or _?Double click the button?_. > > I assume _?the button?_ refers to the mouse button. But it's very confusing, it's not clear what is required; because ?right-click? and ?double-click? already define which _mouse button_ to use. > > What you want to say is _?Right-click / Double-click on **the tray icon**??_ It is not resolved. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516284965 From aivanov at openjdk.org Thu Mar 7 15:06:59 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 15:06:59 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v8] In-Reply-To: <2xTHQDg4I2rN2PtBL1FdX-0r_djhoEFoEqYqsFdJaGc=.ee551abe-90d2-4664-a038-73f204d0692f@github.com> References: <2xTHQDg4I2rN2PtBL1FdX-0r_djhoEFoEqYqsFdJaGc=.ee551abe-90d2-4664-a038-73f204d0692f@github.com> Message-ID: On Tue, 27 Feb 2024 11:01:50 GMT, Alexey Ivanov wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> remove system property set > > test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 67: > >> 65: " something is wrong the corresponding message is displayed below.\n" + >> 66: " Repeat clicks several times. If no 'Test FAILED' messages\n" + >> 67: " are printed, press PASS button else FAIL button."; > > It's not displayed below, it's to the right, isn't it? > > Fail the test automatically if you can detect the failure. You may show a message to the tester about the failure before shutting down the test. This comment also implied amending the instructions to correspond to what the test does. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516304874 From aivanov at openjdk.org Thu Mar 7 15:13:57 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 15:13:57 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 21:36:10 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > null check for system tray before remove Changes requested by aivanov (Reviewer). test/jdk/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.java line 1: > 1: /* Does it make sense to remove the tray icon in this test as well when the test exits? ------------- PR Review: https://git.openjdk.org/jdk/pull/17838#pullrequestreview-1922717083 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516328831 From aivanov at openjdk.org Thu Mar 7 16:15:56 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:15:56 GMT Subject: RFR: 8309460: JScrollBar leaves behind clutter for non-integer UI scales In-Reply-To: <_6SbN6tphlitPw-J5TpQvgj3UMurM1t5kh-GtGlfs5s=.2464e138-4db5-44f6-8967-c7fc7e4f5caa@github.com> References: <_6SbN6tphlitPw-J5TpQvgj3UMurM1t5kh-GtGlfs5s=.2464e138-4db5-44f6-8967-c7fc7e4f5caa@github.com> Message-ID: On Wed, 24 Jan 2024 21:11:25 GMT, Alexey Ivanov wrote: > > > Because float scale results in fractional pixels? > > > If the scale is 1.25, then 1 pixel is 1.25 physical pixels; 2 pixels are 2.5 physical pixels and so on. > > > > Initially this issue looked similar to fractional scaling issues such as border rendering issues observed on windows previously but it seems to happen only on non-standard fractional UI scales such as 2.3, 2.7 and not on standard fractional scales supported on windows (1.25,1.75,2.25 ..) [#17484 (review)](https://github.com/openjdk/jdk/pull/17484#pullrequestreview-1834275178). > > The underlying problem is still the same: there are fractional pixels. I ran the test now and I'm sure the problem is very similar. When drag the thumb, the width of the left border is usually 2 pixels, sometimes it changes to 3 pixels. As I move farther, that third pixel remains on the background of the scrollbar. The left over pixels create a regular pattern: 17 pixels followed by 8 pixels, then the cycle repeats. These are physical display pixels. If you convert user space pixels to physical pixels, you'll see there's a pattern where fraction adds up to whole pixel: 4 user pixels, 3 user pixels. As you drag the thumb, you can see that the highlight/shadow lines on the thumb itself dance. This means that as you drag the thumb, the app sees 1-pixel increments which results in 2-pixel and 3-pixel increments on the screen. > How it related to the "non-standard" fractional metrics(such as 2.3, 2.7) and why it works fine for 1.5 and 1.75. I believe I explained how it's related to fractional scales. Why does it work for 1.25 and 1.75? I guess we never end up in a situation where a physical pixel doesn't get painted. With 1.5, the probability is even less. You can still see the width of the left (and right) border changes; the highlight and shadow lines on the thumb continue to dance. There are this kind of problems wherever pixels are painted by 1-pixel lines. Look at the title bar of a JInternalFrame in SwingSet2 as drag it: the pattern changes even at 1.5 scale; dragging at 1.25 and 1.75 gives another pattern. > If we draw a border outside of the component that border should be fixed. If the clear/fillRect does not clear the component then we should fix the calculation of the bounds. No, we don't draw outside of component bounds. We just don't repaint enough pixels as thumb is moved. As you rightfully noticed something different is needed. Repainting the bounds of the thumb still solves the problem but it doesn't seem right. As the thumb is dragged, it's repainted in the new location; the old location is erased eventually. When erasure is handled, I'd adjust the left coordinate to be (left - 1) to repaint a larger rectangle or something like this. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1983874053 From aivanov at openjdk.org Thu Mar 7 16:22:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:22:55 GMT Subject: RFR: 8309460: JScrollBar leaves behind clutter for non-integer UI scales [v2] In-Reply-To: References: Message-ID: On Thu, 22 Feb 2024 05:50:11 GMT, Tejesh R wrote: > The test can be converted to automatic by comparing the captured scroll area before MousePress and between MousePress and Release events. I agree, the test can be automatic. Grab the thumb with robot and move to the right edge. Without releasing the left mouse button?, create a multiresolution screenshot to get all the pixels without scaling the image down. The background of the scrollbar on the captured screenshot should not contain darker pixels. ? After you release the mouse button, the position of the thumb is adjusted, and the entire scrollbar is repainted. At which point, the leftover darker lines disappear from the scrollbar background. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17484#issuecomment-1983889766 From achung at openjdk.org Thu Mar 7 16:33:00 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 16:33:00 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 14:53:22 GMT, Alexey Ivanov wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> null check for system tray before remove > > test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 63: > >> 61: " (also called Taskbar Status Area on MS Windows, Notification\n" + >> 62: " Area on Gnome or System Tray on KDE) is visible.\n\n" + >> 63: clickInstruction + " the button on the tray icon to trigger the\n" + > > What I see on Windows: ?Double click _the button_ on the tray icon to trigger the?? > > What button do I need to click? On windows you need to left click twice, on macos you need to right click once ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516477638 From clanger at openjdk.org Thu Mar 7 16:35:11 2024 From: clanger at openjdk.org (Christoph Langer) Date: Thu, 7 Mar 2024 16:35:11 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v10] In-Reply-To: References: Message-ID: > 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.openjdk.org/browse/JDK-8323664) came up due to this. > > The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. > However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. > > I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. > > Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: Revert touching awt_Win32GraphicsDevice.cpp altogether and remove unnecessary private method for hasDisplays() ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17614/files - new: https://git.openjdk.org/jdk/pull/17614/files/002fba2d..2f378c88 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=09 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=08-09 Stats: 15 lines in 2 files changed: 0 ins; 13 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/17614.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17614/head:pull/17614 PR: https://git.openjdk.org/jdk/pull/17614 From aivanov at openjdk.org Thu Mar 7 16:39:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:39:55 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 16:30:32 GMT, Alisen Chung wrote: >> test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 63: >> >>> 61: " (also called Taskbar Status Area on MS Windows, Notification\n" + >>> 62: " Area on Gnome or System Tray on KDE) is visible.\n\n" + >>> 63: clickInstruction + " the button on the tray icon to trigger the\n" + >> >> What I see on Windows: ?Double click _the button_ on the tray icon to trigger the?? >> >> What button do I need to click? > > On windows you need to left click twice, on macos you need to right click once [I did suggest clearer instructions](https://github.com/openjdk/jdk/pull/17838#discussion_r1506056726): clickInstruction + " on the tray icon to trigger the\n" + You ignored it and marked resolved. In the current instructions, _?the button?_ does not refer to anything obvious. What button? It's confusing. Remove _?the button?_ from the instructions, and the instructions are clear: _?Right-click / Double-click on **the tray icon**??_ ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516487194 From aivanov at openjdk.org Thu Mar 7 16:47:57 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:47:57 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v10] In-Reply-To: References: Message-ID: <2W66O6KYwhgNV0b9M7rfEv8Ttx5Kef77ga_5yL0rtRQ=.b348f2f3-4800-4dc5-bb33-7d7d4dcc1802@github.com> On Thu, 7 Mar 2024 16:35:11 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: > > Revert touching awt_Win32GraphicsDevice.cpp altogether and remove unnecessary private method for hasDisplays() Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/17614#pullrequestreview-1922978004 From clanger at openjdk.org Thu Mar 7 16:47:58 2024 From: clanger at openjdk.org (Christoph Langer) Date: Thu, 7 Mar 2024 16:47:58 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 08:29:01 GMT, Alexey Ivanov wrote: >> Maybe. I think, as Phil already mentions, a cleanup/centralization of the places that load libawt should be done. But I would suggest to do this in a separate issue. > > Sounds reasonable. Will you create a CR for this? So that we won't forget about it. Done: https://bugs.openjdk.org/browse/JDK-8327616 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516488647 From clanger at openjdk.org Thu Mar 7 16:48:00 2024 From: clanger at openjdk.org (Christoph Langer) Date: Thu, 7 Mar 2024 16:48:00 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: Message-ID: <95GH0jYNsvrXVDoYjcsOWACV4pTrPXff8HGuORd59-o=.93e488d1-a6ee-43d3-9a40-ea6bbe21c62d@github.com> On Wed, 6 Mar 2024 08:31:34 GMT, Alexey Ivanov wrote: >> Christoph Langer 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 14 additional commits since the last revision: >> >> - declare variable hasDisplays final >> - Merge branch 'master' into JDK-8185862 >> - load awt.dll before display check >> - Change implementation of headless determination on Windows >> - Merge branch 'master' into JDK-8185862 >> - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() >> - Merge branch 'master' into JDK-8185862 >> - Get rid of global variables and restore old handling wrt calling ::GetDIBits >> - Merge branch 'master' into JDK-8185862 >> - Little cleanup >> - ... and 4 more: https://git.openjdk.org/jdk/compare/dcf260b9...002fba2d > > src/java.desktop/windows/classes/sun/awt/PlatformGraphicsInfo.java line 69: > >> 67: public static boolean getDefaultHeadlessProperty() { >> 68: // If we don't find usable displays, we run headless. >> 69: return !hasDisplays(); > > I wonder if redirection via a private method makes any meaningful difference compared to returning the value of the `hasDisplays` flag directly? Good point. Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516489040 From aivanov at openjdk.org Thu Mar 7 16:48:01 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:48:01 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: Message-ID: <9PLYtZE9YazTq5Eix1HIYIaP04vLiR8uDNuSiJM384k=.d190843a-7ec8-4b3b-8868-7f8cbbdc5826@github.com> 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer 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 14 additional commits since the last revision: > > - declare variable hasDisplays final > - Merge branch 'master' into JDK-8185862 > - load awt.dll before display check > - Change implementation of headless determination on Windows > - Merge branch 'master' into JDK-8185862 > - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() > - Merge branch 'master' into JDK-8185862 > - Get rid of global variables and restore old handling wrt calling ::GetDIBits > - Merge branch 'master' into JDK-8185862 > - Little cleanup > - ... and 4 more: https://git.openjdk.org/jdk/compare/dcf260b9...002fba2d src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp line 182: > 180: gpBitmapInfo->bmiHeader.biBitCount = 0; > 181: HDC hBMDC = this->GetDC(); > 182: VERIFY(hBMDC != NULL); You may want to leave `VERIFY(hBMDC != NULL)`? just in case. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516489473 From aivanov at openjdk.org Thu Mar 7 16:48:02 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:48:02 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: <9PLYtZE9YazTq5Eix1HIYIaP04vLiR8uDNuSiJM384k=.d190843a-7ec8-4b3b-8868-7f8cbbdc5826@github.com> References: <9PLYtZE9YazTq5Eix1HIYIaP04vLiR8uDNuSiJM384k=.d190843a-7ec8-4b3b-8868-7f8cbbdc5826@github.com> Message-ID: On Thu, 7 Mar 2024 16:39:03 GMT, Alexey Ivanov wrote: >> Christoph Langer 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 14 additional commits since the last revision: >> >> - declare variable hasDisplays final >> - Merge branch 'master' into JDK-8185862 >> - load awt.dll before display check >> - Change implementation of headless determination on Windows >> - Merge branch 'master' into JDK-8185862 >> - Reflect display detection in java.awt.GraphicsEnvironment::isHeadless() >> - Merge branch 'master' into JDK-8185862 >> - Get rid of global variables and restore old handling wrt calling ::GetDIBits >> - Merge branch 'master' into JDK-8185862 >> - Little cleanup >> - ... and 4 more: https://git.openjdk.org/jdk/compare/dcf260b9...002fba2d > > src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp line 182: > >> 180: gpBitmapInfo->bmiHeader.biBitCount = 0; >> 181: HDC hBMDC = this->GetDC(); >> 182: VERIFY(hBMDC != NULL); > > You may want to leave `VERIFY(hBMDC != NULL)`? just in case. If you don't add the assertions for `hBMDC` and `hBM`, you should revert all the changes to `awt_Win32GraphicsDevice.cpp`. At the moment, two lines are removed from `initScreens`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516495998 From clanger at openjdk.org Thu Mar 7 16:48:02 2024 From: clanger at openjdk.org (Christoph Langer) Date: Thu, 7 Mar 2024 16:48:02 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2] In-Reply-To: <2fz9YnrAnu3iMUF-xzXPA1wsOodGvXMjxlD53GA_7Ec=.fc280af9-54cc-473e-9d0c-132f37b77314@github.com> References: <4jmx37LJU3WWe70P4sSyCBtDgU_iGbJj8q4qMiB9GmQ=.7efffac2-f074-44d4-ae21-e088725ce756@github.com> <2fz9YnrAnu3iMUF-xzXPA1wsOodGvXMjxlD53GA_7Ec=.fc280af9-54cc-473e-9d0c-132f37b77314@github.com> Message-ID: On Thu, 7 Mar 2024 00:47:00 GMT, Phil Race wrote: >> It is not what I meant? If we want to preserve the way it work, we should execute the below code even if `this->GetDC()` fails? >> >> On the other hand, testing didn't find any problems, in which case I prefer bailing out after `::GetDIBits` fails too. >> >> @prrace, Do you know how critical the code below is? Is it worth to code the fallback if the path to `::GetDIBits`? > >> @prrace, Do you know how critical the code below is? Is it worth to code the fallback if the path to ::GetDIBits? > > In the headLESS case we should never be here, since this is initializing the devices that don't exist in that case. > In the headFUL case I would prefer to keep the existing non-debug behaviour that we soldier on and try to do something sensible. Line 204 has a comment about a case in which GetDIBits really did fail and there's code to cope. I am writing specifically about GetDIBits. OK, I have reverted all changes to awt_Win32GraphicsDevice.cpp since we don't go through the code in the new headless case any more. I guess it's best to leave any refactoring of this code to later efforts. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516492296 From clanger at openjdk.org Thu Mar 7 16:51:03 2024 From: clanger at openjdk.org (Christoph Langer) Date: Thu, 7 Mar 2024 16:51:03 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: <9PLYtZE9YazTq5Eix1HIYIaP04vLiR8uDNuSiJM384k=.d190843a-7ec8-4b3b-8868-7f8cbbdc5826@github.com> Message-ID: On Thu, 7 Mar 2024 16:43:52 GMT, Alexey Ivanov wrote: >> src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp line 182: >> >>> 180: gpBitmapInfo->bmiHeader.biBitCount = 0; >>> 181: HDC hBMDC = this->GetDC(); >>> 182: VERIFY(hBMDC != NULL); >> >> You may want to leave `VERIFY(hBMDC != NULL)`? just in case. > > If you don't add the assertions for `hBMDC` and `hBM`, you should revert all the changes to `awt_Win32GraphicsDevice.cpp`. > > At the moment, two lines are removed from `initScreens`. The two lines removed from initScreens are in `awt_Win32GraphicsEnv.cpp` ? That's unrelated cleanup I guess. But I bring back the VERIFY code which seems to make sense and would not alter the behavior in the non-debug case. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516503232 From achung at openjdk.org Thu Mar 7 16:51:30 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 16:51:30 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v12] In-Reply-To: References: Message-ID: > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. Alisen Chung has updated the pull request incrementally with four additional commits since the last revision: - instructions update - instructions update - instructions update - instructions update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17838/files - new: https://git.openjdk.org/jdk/pull/17838/files/60bb2701..a4eef7c3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=11 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=10-11 Stats: 8 lines in 1 file changed: 1 ins; 1 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/17838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17838/head:pull/17838 PR: https://git.openjdk.org/jdk/pull/17838 From achung at openjdk.org Thu Mar 7 16:53:56 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 16:53:56 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 16:37:25 GMT, Alexey Ivanov wrote: >> On windows you need to left click twice, on macos you need to right click once > > [I did suggest clearer instructions](https://github.com/openjdk/jdk/pull/17838#discussion_r1506056726): > > clickInstruction + " on the tray icon to trigger the\n" + > > You ignored it and marked resolved. > > In the current instructions, _?the button?_ does not refer to anything obvious. What button? It's confusing. Remove _?the button?_ from the instructions, and the instructions are clear: _?Right-click / Double-click on **the tray icon**??_ I've also added left mouse button in parenthesis for windows, is it unnecessary? I think it should be clear now ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516507424 From clanger at openjdk.org Thu Mar 7 16:55:12 2024 From: clanger at openjdk.org (Christoph Langer) Date: Thu, 7 Mar 2024 16:55:12 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v11] In-Reply-To: References: Message-ID: > 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.openjdk.org/browse/JDK-8323664) came up due to this. > > The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. > However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. > > I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. > > Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: Bring back verification of hBMDC and hBM ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17614/files - new: https://git.openjdk.org/jdk/pull/17614/files/2f378c88..ae139953 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=10 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17614&range=09-10 Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17614.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17614/head:pull/17614 PR: https://git.openjdk.org/jdk/pull/17614 From aivanov at openjdk.org Thu Mar 7 16:55:12 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 16:55:12 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9] In-Reply-To: References: <9PLYtZE9YazTq5Eix1HIYIaP04vLiR8uDNuSiJM384k=.d190843a-7ec8-4b3b-8868-7f8cbbdc5826@github.com> Message-ID: On Thu, 7 Mar 2024 16:48:27 GMT, Christoph Langer wrote: >> If you don't add the assertions for `hBMDC` and `hBM`, you should revert all the changes to `awt_Win32GraphicsDevice.cpp`. >> >> At the moment, two lines are removed from `initScreens`. > > The two lines removed from initScreens are in `awt_Win32GraphicsEnv.cpp` ? That's unrelated cleanup I guess. But I bring back the VERIFY code which seems to make sense and would not alter the behavior in the non-debug case. You're right! `awt_Win32GraphicsDevice.cpp` is not part of the PR at this very moment. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17614#discussion_r1516508137 From achung at openjdk.org Thu Mar 7 17:06:11 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 17:06:11 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v13] In-Reply-To: References: Message-ID: <_1Uc0LfBjl-TobRK4opf_drWHnu5igYbnkaUGFnw-FY=.09f7d498-3b43-485a-8c5f-99002bf532e1@github.com> > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. Alisen Chung has updated the pull request incrementally with two additional commits since the last revision: - remove trayicon when feiling test - remove automatic check line in instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17838/files - new: https://git.openjdk.org/jdk/pull/17838/files/a4eef7c3..4bc3afc1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=12 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=11-12 Stats: 8 lines in 1 file changed: 6 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17838/head:pull/17838 PR: https://git.openjdk.org/jdk/pull/17838 From achung at openjdk.org Thu Mar 7 17:06:11 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 17:06:11 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v8] In-Reply-To: References: <2xTHQDg4I2rN2PtBL1FdX-0r_djhoEFoEqYqsFdJaGc=.ee551abe-90d2-4664-a038-73f204d0692f@github.com> Message-ID: On Thu, 7 Mar 2024 15:04:36 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 67: >> >>> 65: " something is wrong the corresponding message is displayed below.\n" + >>> 66: " Repeat clicks several times. If no 'Test FAILED' messages\n" + >>> 67: " are printed, press PASS button else FAIL button."; >> >> It's not displayed below, it's to the right, isn't it? >> >> Fail the test automatically if you can detect the failure. You may show a message to the tester about the failure before shutting down the test. > > This comment also implied amending the instructions to correspond to what the test does. the test doesn't actually do any automatic checks, so i've removed that line ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516519788 From aivanov at openjdk.org Thu Mar 7 17:22:56 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 17:22:56 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v11] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 16:55:12 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: > > Bring back verification of hBMDC and hBM Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/17614#pullrequestreview-1923069535 From aivanov at openjdk.org Thu Mar 7 17:37:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 17:37:55 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v13] In-Reply-To: <_1Uc0LfBjl-TobRK4opf_drWHnu5igYbnkaUGFnw-FY=.09f7d498-3b43-485a-8c5f-99002bf532e1@github.com> References: <_1Uc0LfBjl-TobRK4opf_drWHnu5igYbnkaUGFnw-FY=.09f7d498-3b43-485a-8c5f-99002bf532e1@github.com> Message-ID: On Thu, 7 Mar 2024 17:06:11 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with two additional commits since the last revision: > > - remove trayicon when feiling test > - remove automatic check line in instructions Changes requested by aivanov (Reviewer). test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 117: > 115: if (systemTray != null) { > 116: systemTray.remove(trayIcon); > 117: } It is not needed. The icon is always removed, the `finally` block in the `main` method is always executed, even when an exception is thrown. https://github.com/openjdk/jdk/blob/4bc3afc11a8a88599bc70fc7974b4f0782c60b2c/test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java#L81-L85 If it were needed, you would create a helper method and call it from all the places instead of copying the code around. ------------- PR Review: https://git.openjdk.org/jdk/pull/17838#pullrequestreview-1923090600 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516558328 From aivanov at openjdk.org Thu Mar 7 17:37:56 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 17:37:56 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v8] In-Reply-To: References: <2xTHQDg4I2rN2PtBL1FdX-0r_djhoEFoEqYqsFdJaGc=.ee551abe-90d2-4664-a038-73f204d0692f@github.com> Message-ID: On Thu, 7 Mar 2024 17:00:29 GMT, Alisen Chung wrote: >> This comment also implied amending the instructions to correspond to what the test does. > > the test doesn't actually do any automatic checks, so i've removed that line It kind of does. [JDK-6299866](https://bugs.openjdk.org/browse/JDK-6299866) states NPE was thrown if a tray icon is removed from its action listener. This implies the test fails automatically if NPE is thrown. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516561499 From aivanov at openjdk.org Thu Mar 7 17:42:57 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 17:42:57 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: References: Message-ID: <1WsDDdgrZzU0cYK3183xmtyaE_1Mrl3TiVx4bNhSLQU=.aa05869a-bc85-4356-9c1a-6432fea4bc80@github.com> On Thu, 7 Mar 2024 15:09:02 GMT, Alexey Ivanov wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> null check for system tray before remove > > test/jdk/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.java line 1: > >> 1: /* > > Does it make sense to remove the tray icon in this test as well when the test exits? How is this resolved? You haven't updated `ShowAfterDisposeTest.java` to remove the tray icon when the test exists. An answer of ?No? is also valid. But you haven't said anything at all. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516573259 From achung at openjdk.org Thu Mar 7 18:56:55 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 18:56:55 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v11] In-Reply-To: <1WsDDdgrZzU0cYK3183xmtyaE_1Mrl3TiVx4bNhSLQU=.aa05869a-bc85-4356-9c1a-6432fea4bc80@github.com> References: <1WsDDdgrZzU0cYK3183xmtyaE_1Mrl3TiVx4bNhSLQU=.aa05869a-bc85-4356-9c1a-6432fea4bc80@github.com> Message-ID: On Thu, 7 Mar 2024 17:40:32 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.java line 1: >> >>> 1: /* >> >> Does it make sense to remove the tray icon in this test as well when the test exits? > > How is this resolved? You haven't updated `ShowAfterDisposeTest.java` to remove the tray icon when the test exists. > > An answer of ?No? is also valid. But you haven't said anything at all. oops, I misinterpreted what you wrote and updated the wrong file ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516660020 From achung at openjdk.org Thu Mar 7 19:22:06 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 19:22:06 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v14] In-Reply-To: References: Message-ID: > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: move jtreg in ShowAfterDisposeTest, remove trayicon in ShowAfterDisposeTest, changed instructions string in DisposeInActionEventTest ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17838/files - new: https://git.openjdk.org/jdk/pull/17838/files/4bc3afc1..0947ce09 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=13 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=12-13 Stats: 43 lines in 2 files changed: 17 ins; 15 del; 11 mod Patch: https://git.openjdk.org/jdk/pull/17838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17838/head:pull/17838 PR: https://git.openjdk.org/jdk/pull/17838 From prr at openjdk.org Thu Mar 7 19:40:56 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 7 Mar 2024 19:40:56 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v11] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 16:55:12 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: > > Bring back verification of hBMDC and hBM I think we are done with this. If a DEBUG build is used for HEADFUL then the new VERIFY calls *might* cause a different failure mode, but that's the only risk I see, and it seems a very, very small one. ------------- Marked as reviewed by prr (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/17614#pullrequestreview-1923370884 From achung at openjdk.org Thu Mar 7 20:07:19 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 7 Mar 2024 20:07:19 GMT Subject: RFR: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." [v2] In-Reply-To: References: Message-ID: > Introduce delays in test to stabilize. Test passes 50x after fix. Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: update copyright, fix jtreg formatting, update frame title, expand imports ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18091/files - new: https://git.openjdk.org/jdk/pull/18091/files/25008b78..5ba5eeba Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18091&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18091&range=00-01 Stats: 35 lines in 1 file changed: 21 ins; 12 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18091.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18091/head:pull/18091 PR: https://git.openjdk.org/jdk/pull/18091 From prr at openjdk.org Thu Mar 7 21:34:54 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 7 Mar 2024 21:34:54 GMT Subject: RFR: 8326497: Window.toFront() fails for iconified windows on Linux [v6] In-Reply-To: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> References: <0nuVOsFROjoR7wCT94ilnqEjENMSLt5XTHM6hLVWxOk=.873c9a7f-2492-47b6-968d-5f391577e5ed@github.com> Message-ID: On Wed, 6 Mar 2024 10:55:00 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 sending the message. >> >> The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. >> >> References >> * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html >> * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) > > Maxim Kartashev has updated the pull request incrementally with one additional commit since the last revision: > > Reduced the wait time in the test Testing all good. Approved ------------- Marked as reviewed by prr (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/17985#pullrequestreview-1923594228 From aivanov at openjdk.org Thu Mar 7 22:33:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 7 Mar 2024 22:33:55 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v14] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 19:22:06 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > move jtreg in ShowAfterDisposeTest, remove trayicon in ShowAfterDisposeTest, changed instructions string in DisposeInActionEventTest Marked as reviewed by aivanov (Reviewer). test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 69: > 67: " the tray and then added back in a second.\n\n" + > 68: "If something is wrong, the test will automatically fail.\n" + > 69: " Repeat clicks several times. Press PASS button."; Suggestion: " Repeat clicks several times. Then press PASS button."; Does it sound better this way? test/jdk/java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.java line 46: > 44: public class ShowAfterDisposeTest { > 45: private static SystemTray tray; > 46: private static TrayIcon icon ; Suggestion: private static TrayIcon icon; ------------- PR Review: https://git.openjdk.org/jdk/pull/17838#pullrequestreview-1923688183 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516922486 PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1516921701 From serb at openjdk.org Fri Mar 8 01:13:00 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Fri, 8 Mar 2024 01:13:00 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: References: <6aO1JMWfnuzwP6QH4GVnI9YW7nW8XygymJvsjVU0ykY=.cbf6f144-4a45-428e-9ae3-eacd67641e94@github.com> Message-ID: <0Fr7nxVMAPD27Ejyiw46Vk6mHIQhZagXQUSXBbGeXAA=.d266404a-cc7d-41ef-a2ac-55feb6c95515@github.com> On Thu, 7 Mar 2024 12:32:09 GMT, Dmitry Markov wrote: >> Actually the purpose of these particular tests is validation of the quality of the built-in color profiles. > > I agree, I reverted almost all changes except the ones in tolerance for non-LCMS profiles. That values need to be updated to make the test pass on JDKs (e.g. JDK 8u, etc) where non-LCMS profiles are used Could you please clarify what is the root cause of the problem. I assume you did not update the profiles itself, so what is the problem in the new lcms library? >It used to be OK until recent LCMS update where the CMM started to keep original profile ID instead of writing ?lcms? to returned header. Do you mean that previously we always use lcms thresholds even for kcms related profiles? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18097#discussion_r1517039982 From tr at openjdk.org Fri Mar 8 04:11:16 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 8 Mar 2024 04:11:16 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> Message-ID: On Thu, 7 Mar 2024 03:16:20 GMT, Prasanta Sadhukhan wrote: > OPensource BoxView test JBS is confidential and hence not linked. test/jdk/javax/swing/text/BoxView/bug6494356.java line 28: > 26: * @key headful > 27: * @summary Test that BoxView.layout() is not called with negative arguments > 28: * @run main bug6494356 bug6494356.html Can the test be converted to non-applet based? test/jdk/javax/swing/text/BoxView/bug6494356.java line 65: > 63: }); > 64: JFrame f = new JFrame(); > 65: f.setTitle("6494356"); Frame Title could be meaningful and also the test name. ------------- PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1921434383 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1515522052 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1515523482 From aivanov at openjdk.org Fri Mar 8 04:11:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 8 Mar 2024 04:11:16 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> Message-ID: On Thu, 7 Mar 2024 03:16:20 GMT, Prasanta Sadhukhan wrote: > OPensource BoxView test Changes requested by aivanov (Reviewer). Changes requested by aivanov (Reviewer). Changes requested by aivanov (Reviewer). test/jdk/javax/swing/text/BoxView/bug6494356.html line 1: > 1:

Paragraph

Since the test requires a supporting file, does it make sense to put the test in a folder `6494356/bug6494356.java`? I wanted to asked whether an external file is needed? I answered this question: yes, it's needed. The test must use `setPage` which loads the file or URL asynchronously. At the same time, the file to load can be created on the fly in the scratch directory which is the current directory when the test is run by jtreg. Thus, an additional supporting file can be removed. Could update the test to create the file as a temporary file, please? test/jdk/javax/swing/text/BoxView/bug6494356.java line 34: > 32: import java.beans.PropertyChangeEvent; > 33: import java.beans.PropertyChangeListener; > 34: import java.io.IOException; `IOException` is unused. test/jdk/javax/swing/text/BoxView/bug6494356.java line 56: > 54: public void run() { > 55: ep = new JEditorPane(); > 56: ep.setEditorKitForContentType("text/html", editorKit); Suggestion: ep.setEditorKitForContentType("text/html", new MyEditorKit()); The instance of the custom `EditorKit` can be created here. I think it makes the test clearer. test/jdk/javax/swing/text/BoxView/bug6494356.java line 72: > 70: f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > 71: f.setVisible(true); > 72: File file = new File("file:" + testSrc + "/" + "bug6494356.html"); Where does this file come from? As the first step, you should write the file into *the current directory* with the content of `bug6494356.html`, that is `

Paragraph

`. final Path file = Path.of("bug6494356.html"); try (Writer writer = Files.newBufferedWriter(file)) { writer.write("

Paragraph

"); } Then you load the file: ep.setPage("file:" + file); In the end of the test, you may remove the created file: Files.delete(file); test/jdk/javax/swing/text/BoxView/bug6494356.java line 79: > 77: try (Writer writer = Files.newBufferedWriter(file)) { > 78: writer.write("

Paragraph

"); > 79: } catch (Exception e) { I suggest creating the file *before* calling `SwingUtilities.invokeLater`. If it throws an exception, the test fails right away, you won't even run the code inside `invokeLater`. test/jdk/javax/swing/text/BoxView/bug6494356.java line 117: > 115: } > 116: > 117: static ViewFactory viewFactory = new MyViewFactory(); This should be a `final` field of `MyEditorKit`, no need to make it `static`. ------------- PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1922519738 PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1922960768 PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1923181380 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516212830 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516209847 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516204845 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516478899 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516606920 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516208607 From psadhukhan at openjdk.org Fri Mar 8 04:11:15 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 8 Mar 2024 04:11:15 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class Message-ID: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> OPensource BoxView test ------------- Commit messages: - Move file creation upfront - File creation on the fly - Review comment - 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class Changes: https://git.openjdk.org/jdk/pull/18147/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18147&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8326606 Stats: 136 lines in 1 file changed: 136 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18147.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18147/head:pull/18147 PR: https://git.openjdk.org/jdk/pull/18147 From aivanov at openjdk.org Fri Mar 8 04:11:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 8 Mar 2024 04:11:16 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> Message-ID: <7HFSPVZQoehdVV3zw2mW5otRCyL56TxJlAd7xDiIIeg=.9637503a-ed9a-45e1-b004-ef4233f0f429@github.com> On Thu, 7 Mar 2024 04:53:07 GMT, Tejesh R wrote: >> OPensource BoxView test > > test/jdk/javax/swing/text/BoxView/bug6494356.java line 28: > >> 26: * @key headful >> 27: * @summary Test that BoxView.layout() is not called with negative arguments >> 28: * @run main bug6494356 bug6494356.html > > Can the test be converted to non-applet based? It's not applet-based. The HTML file is an argument to the test, it is the file that's loaded into `JEditorPane`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516193959 From tr at openjdk.org Fri Mar 8 04:11:16 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 8 Mar 2024 04:11:16 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: <7HFSPVZQoehdVV3zw2mW5otRCyL56TxJlAd7xDiIIeg=.9637503a-ed9a-45e1-b004-ef4233f0f429@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> <7HFSPVZQoehdVV3zw2mW5otRCyL56TxJlAd7xDiIIeg=.9637503a-ed9a-45e1-b004-ef4233f0f429@github.com> Message-ID: On Thu, 7 Mar 2024 13:54:18 GMT, Alexey Ivanov wrote: >> test/jdk/javax/swing/text/BoxView/bug6494356.java line 28: >> >>> 26: * @key headful >>> 27: * @summary Test that BoxView.layout() is not called with negative arguments >>> 28: * @run main bug6494356 bug6494356.html >> >> Can the test be converted to non-applet based? > > It's not applet-based. The HTML file is an argument to the test, it is the file that's loaded into `JEditorPane`. Oh, my bad, didn't notice it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516229717 From aivanov at openjdk.org Fri Mar 8 04:11:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 8 Mar 2024 04:11:17 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> <7HFSPVZQoehdVV3zw2mW5otRCyL56TxJlAd7xDiIIeg=.9637503a-ed9a-45e1-b004-ef4233f0f429@github.com> Message-ID: On Thu, 7 Mar 2024 14:18:39 GMT, Tejesh R wrote: >> It's not applet-based. The HTML file is an argument to the test, it is the file that's loaded into `JEditorPane`. > > Oh, my bad, didn't notice it. Yeah, it's a bit confusing? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1516237829 From aivanov at openjdk.org Fri Mar 8 09:11:54 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 8 Mar 2024 09:11:54 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> Message-ID: <2PlMlIeN3UYCqrxhTPLZlPUUyQ3e4CwrB-mlQ-96TPI=.9fcf1c14-f6c4-4249-80ab-17436b6468c7@github.com> On Thu, 7 Mar 2024 03:16:20 GMT, Prasanta Sadhukhan wrote: > OPensource BoxView test Marked as reviewed by aivanov (Reviewer). test/jdk/javax/swing/text/BoxView/bug6494356.java line 35: > 33: > 34: import java.awt.Dimension; > 35: import java.awt.Toolkit; Usually imports are in alphabetical order without giving special treatment to `java.nio` and `java.io` packages. test/jdk/javax/swing/text/BoxView/bug6494356.java line 51: > 49: > 50: public class bug6494356 { > 51: static String testSrc = System.getProperty("test.src", "."); `testSrc` is now unused. ------------- PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1924415667 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1517439785 PR Review Comment: https://git.openjdk.org/jdk/pull/18147#discussion_r1517440328 From dmarkov at openjdk.org Fri Mar 8 09:57:52 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Fri, 8 Mar 2024 09:57:52 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: <0Fr7nxVMAPD27Ejyiw46Vk6mHIQhZagXQUSXBbGeXAA=.d266404a-cc7d-41ef-a2ac-55feb6c95515@github.com> References: <6aO1JMWfnuzwP6QH4GVnI9YW7nW8XygymJvsjVU0ykY=.cbf6f144-4a45-428e-9ae3-eacd67641e94@github.com> <0Fr7nxVMAPD27Ejyiw46Vk6mHIQhZagXQUSXBbGeXAA=.d266404a-cc7d-41ef-a2ac-55feb6c95515@github.com> Message-ID: On Fri, 8 Mar 2024 01:09:27 GMT, Sergey Bylokhov wrote: >> I agree, I reverted almost all changes except the ones in tolerance for non-LCMS profiles. That values need to be updated to make the test pass on JDKs (e.g. JDK 8u, etc) where non-LCMS profiles are used > > Could you please clarify what is the root cause of the problem. I assume you did not update the profiles itself, so what is the problem in the new lcms library? > >>It used to be OK until recent LCMS update where the CMM started to keep original profile ID instead of writing ?lcms? to returned header. > > Do you mean that previously we always use lcms thresholds even for kcms related profiles? As far as I know there is no any issues with the new LCMS library. There was a bug in LCMS: it used to set ?lcms? as profile ID to the header. As a result we used lcms threshold even for non-LCMS (kcms, etc.) profiles in the test. In LCMS 2.16 the problem with profile ID was fixed, see https://github.com/openjdk/jdk/pull/17382/files#diff-738d14c3b278e6d7297dbc4943e90cef33fc04d61eba085218a1229c92ea9a33R941 And the tests started failing for non-LCMS profiles. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18097#discussion_r1517499065 From psadhukhan at openjdk.org Fri Mar 8 11:34:12 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 8 Mar 2024 11:34:12 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class [v2] In-Reply-To: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> Message-ID: <8LtJgsYdLRa_NuP3AZlv4u7nJFeliOfvGZNNJUzdI38=.a999646d-91da-499d-a1b5-57a098a42a88@github.com> > OPensource BoxView test Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18147/files - new: https://git.openjdk.org/jdk/pull/18147/files/f3e6d0a8..43b05813 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18147&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18147&range=00-01 Stats: 7 lines in 1 file changed: 3 ins; 4 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18147.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18147/head:pull/18147 PR: https://git.openjdk.org/jdk/pull/18147 From ihse at openjdk.org Fri Mar 8 15:37:00 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:37:00 GMT Subject: RFR: 8327701: Remove the xlc toolchain Message-ID: As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. ------------- Commit messages: - 8327701: Remove the xlc toolchain Changes: https://git.openjdk.org/jdk/pull/18172/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327701 Stats: 333 lines in 19 files changed: 25 ins; 267 del; 41 mod Patch: https://git.openjdk.org/jdk/pull/18172.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18172/head:pull/18172 PR: https://git.openjdk.org/jdk/pull/18172 From ihse at openjdk.org Fri Mar 8 15:37:02 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:37:02 GMT Subject: RFR: 8327701: Remove the xlc toolchain In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:29:58 GMT, Magnus Ihse Bursie wrote: > As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. make/autoconf/flags-cflags.m4 line 687: > 685: PICFLAG="-fPIC" > 686: PIEFLAG="-fPIE" > 687: elif test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then Just a remark: This code has never been executed, since running with clang on any OS would hit the branch above. Also, the code is syntactically incorrect, missing a trailing `"`. make/autoconf/flags-cflags.m4 line 695: > 693: -D$FLAGS_CPU_LEGACY" > 694: > 695: if test "x$FLAGS_CPU_BITS" = x64; then A wise man said: "If the code and the comments contradict each other, then probably both are wrong". I am here assuming that the comment claiming that this is only needed by xlc is correct. If it turns out that this is needed even with clang on AIX, we'll have to restore the test and update the comment to this fact. make/autoconf/flags.m4 line 324: > 322: AC_DEFUN([FLAGS_SETUP_TOOLCHAIN_CONTROL], > 323: [ > 324: # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output COMPILER_TARGET_BITS_FLAG and COMPILER_BINDCMD_FILE_FLAG was introduced just for xlc, so they are not needed anymore. COMPILER_COMMAND_FILE_FLAG was introduced to support ancient versions of gcc, and then used by xlc as well. It is not needed for gcc anymore, so I remove it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1517871818 PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1517873282 PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1517874782 From ihse at openjdk.org Fri Mar 8 15:40:57 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:40:57 GMT Subject: RFR: 8327701: Remove the xlc toolchain In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:29:58 GMT, Magnus Ihse Bursie wrote: > As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. make/autoconf/toolchain.m4 line 420: > 418: # Remove "Thread model:" and further details from the version string, and > 419: # collapse into a single line > 420: COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ These changes are not strictly needed, but it makes printing the clang version nicer, and compensates for the removal of the extra version information that was printed by some of the removed code. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1517880241 From ihse at openjdk.org Fri Mar 8 15:48:08 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:48:08 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:44:48 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes make/autoconf/toolchain.m4 line 444: > 442: COMPILER_NAME=$2 > 443: SEARCH_LIST="$3" > 444: SEARCH_PATH="$PATH" I am note 100% sure about this; I think the intention of some of the old code amounted to this, but it was not entirely clear. But, then again, I think this is a good idea, and I think we should do this on *all* platforms -- search the toolchain path before the normal path. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1517884839 From ihse at openjdk.org Fri Mar 8 15:48:08 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:48:08 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:41:16 GMT, Magnus Ihse Bursie wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: >> >> Revert SEARCH_PATH changes > > make/autoconf/toolchain.m4 line 444: > >> 442: COMPILER_NAME=$2 >> 443: SEARCH_LIST="$3" >> 444: SEARCH_PATH="$PATH" > > I am note 100% sure about this; I think the intention of some of the old code amounted to this, but it was not entirely clear. > > But, then again, I think this is a good idea, and I think we should do this on *all* platforms -- search the toolchain path before the normal path. Hm, as I write this, it strikes me as odd that we should not do this already. And of course we do, in `TOOLCHAIN_PRE_DETECTION`, so this snippet snippet is actually redundant. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1517889315 From ihse at openjdk.org Fri Mar 8 15:48:08 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:48:08 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: > As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: Revert SEARCH_PATH changes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18172/files - new: https://git.openjdk.org/jdk/pull/18172/files/9f4a059d..53a05019 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=00-01 Stats: 7 lines in 1 file changed: 0 ins; 5 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18172.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18172/head:pull/18172 PR: https://git.openjdk.org/jdk/pull/18172 From ihse at openjdk.org Fri Mar 8 15:55:54 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 8 Mar 2024 15:55:54 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes Also, I believe that the `HOTSPOT_TOOLCHAIN_TYPE=xlc` quirk actually is bad. This means that the clang functionality in `compilerWarnings_gcc.hpp` (where the `_gcc` is hotspot-speak for "clang or gcc") is being ignored, and it means that globalDefinitions_xlc.hpp is in big parts a direct copy of globalDefinitions_gcc.hpp, but apparently lagging in some fixes that has been made in that file. And it means a lot of lines like this: #if defined(TARGET_COMPILER_gcc) || defined(TARGET_COMPILER_xlc) But cleaning up that is left as an exercise to the AIX team; my goal here just primarily to get rid of the old xlc stuff from the build system. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1985939418 From jwaters at openjdk.org Fri Mar 8 16:19:53 2024 From: jwaters at openjdk.org (Julian Waters) Date: Fri, 8 Mar 2024 16:19:53 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes Build changes look ok, but I'm not an AIX developer ------------- Marked as reviewed by jwaters (Committer). PR Review: https://git.openjdk.org/jdk/pull/18172#pullrequestreview-1925243852 From tr at openjdk.org Fri Mar 8 16:31:52 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 8 Mar 2024 16:31:52 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class [v2] In-Reply-To: <8LtJgsYdLRa_NuP3AZlv4u7nJFeliOfvGZNNJUzdI38=.a999646d-91da-499d-a1b5-57a098a42a88@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> <8LtJgsYdLRa_NuP3AZlv4u7nJFeliOfvGZNNJUzdI38=.a999646d-91da-499d-a1b5-57a098a42a88@github.com> Message-ID: On Fri, 8 Mar 2024 11:34:12 GMT, Prasanta Sadhukhan wrote: >> OPensource BoxView test > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1925275615 From erikj at openjdk.org Fri Mar 8 18:51:54 2024 From: erikj at openjdk.org (Erik Joelsson) Date: Fri, 8 Mar 2024 18:51:54 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes Build changes look good to me, but needs review and verification from the AIX folks. ------------- Marked as reviewed by erikj (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18172#pullrequestreview-1925621925 From serb at openjdk.org Fri Mar 8 22:27:58 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Fri, 8 Mar 2024 22:27:58 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 12:36:05 GMT, Dmitry Markov wrote: >> Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. > > Dmitry Markov has updated the pull request incrementally with one additional commit since the last revision: > > Tolerance update Marked as reviewed by serb (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18097#pullrequestreview-1925957557 From mickleness at gmail.com Fri Mar 8 23:40:08 2024 From: mickleness at gmail.com (Jeremy Wood) Date: Fri, 08 Mar 2024 23:40:08 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: <8399c796-17e8-4d78-9916-a55054251420@oracle.com> Message-ID: Alexey, > Does the input map of JTextArea contain shortcuts for Cut, Copy and Paste? When I call (on my Mac, using openJDK 17) UIManager.getDefaults().get("TextArea.focusInputMap?) ? I get an InputMap with: ?copy-to-clipboard?, ?cut-to-clipboard?, and ?paste-from-clipboard?. The code I tested against is: InputMap inputMap = (InputMap) UIManager.getDefaults().get("TextArea.focusInputMap"); Map> map = new TreeMap<>(); for (KeyStroke keyStroke : inputMap.keys()) { Object key = inputMap.get(keyStroke); Collection value = map.get(key); if (value == null) { value = new HashSet(); map.put(key, value); } value.add(keyStroke); } for (Map.Entry> e : map.entrySet()) { System.out.println(e); } Previous tests showed the same naming convention on Windows for JTextFields; I don?t know how standardized that naming convention is across all platforms / L&F?s. - Jeremy ------ Original Message ------ >From mark.yagnatinsky at barclays.com To alexey.ivanov at oracle.com; mickleness at gmail.com; client-libs-dev at openjdk.org Date 3/5/24, 11:48:48?AM Subject RE: how to get find out the keyboard shortcut for the paste action? >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 ; mickleness at gmail.com; client-libs-dev at openjdk.org >Subject: Re: how to get find out the keyboard shortcut for the paste action? > > >CAUTION: This email originated from outside our organisation - alexey.ivanov at oracle.com Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. >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 ? usually have the same shortcuts across all languages and OS, although macOS uses Cmd instead of Ctrl. However, the shortcut for Redo is not as standard, Ctrl+Shift+Z and Ctrl+Y are used, both could be mapped at the same time. > >I wonder what is the shortcut for Undo in German versions since German keyboard layout has Z and Y keys swapped. Does anyone know? > >So, the shortcuts used in an application are controlled by the application and the shortcuts can be localised. > >For this reason, the shortcuts are usually ?hardcoded?. > > >@Jeremy >Does the input map of JTextArea contain shortcuts for Cut, Copy and Paste? > >On 2024-03-04 20:42, mark.yagnatinsky at barclays.com wrote: >> >> Thanks! I don?t have a particularly deep motivation here, other than >> curiosity. >> >> If you?re wondering how my curiosity got piqued initially, it was >> something like this: >> >> A while ago, someone at work was adding copy/paste support to some >> component that didn?t have it. >> >> I noticed that they ?hardcoded? the shortcut ?ctrl C?. >> >> And I thought to myself: >> >> Swing already ?knows? that this is the right keyboard shortcut, in the >> sense that all components that support copy/paste ?out of the box? use it. >> >> It would be nice if there was some way to ASK it to tell me what it >> ?knows?. >> >> *From:* Jeremy Wood >> *Sent:* Sunday, March 3, 2024 11:30 PM >> *To:* Yagnatinsky, Mark : Markets Pre Trade >> ; client-libs-dev at openjdk.org >> *Subject:* Re[2]: how to get find out the keyboard shortcut for the >> paste action? >> >> CAUTION: This email originated from outside our organisation - >>mickleness at gmail.com Do not click on links, open attachments, or >> respond unless you recognize the sender and can validate the content >> is safe. >> >> > But now I have a new question? >> >> > Is there any way to get the ?usual? letter for a ?common? operation? >> >> Hmm. Good question. Not that I know of. >> >> > Again, one could create a scratch text area and grovel through its >> input map, but that seems hacky. >> >> I agree sifting through the L&F seems hacky. >> >> I don?t think I understand exactly what you?re trying to implement >> here. If you give me a more concrete example: maybe I (or someone on >> this list) can offer a more concrete suggestion? >> >> I?ll add some context in case this speaks to your question. >> >> By default Swing gets this information in places like >> BasicTextUI#getInputMap(), which calls: >> >> InputMap shared= (InputMap)DefaultLookup./get/(editor, this, >> getPropertyPrefix() + ".focusInputMap?); >> >> The following works on my Mac & Windows machine (I think using JDK >> 19), but I wouldn?t be surprised if it fails in other platforms / >> L&F?s. It feels brittle, but it might (?) have potential: >> >> private KeyStroke getCopyKeyStroke() { >> >> InputMap inputMap = (InputMap) >> UIManager.getDefaults().get("TextField.focusInputMap"); for (KeyStroke >> keyStroke : inputMap.keys()) { Object action = >> inputMap.get(keyStroke); if ("copy-to-clipboard".equals(action)) { >> return keyStroke; } } /// this will show all the default >> keystrokes // System.out.println(Arrays.asList(inputMap.allKeys())); >> /return null; } >> >> Regards, >> >> - Jeremy >> >> ------ Original Message ------ >> >> From mark.yagnatinsky at barclays.com >> >> To mickleness at gmail.com; client-libs-dev at openjdk.org >> >> Date 3/3/24, 6:00:46?PM >> >> Subject RE: how to get find out the keyboard shortcut for the paste >> action? >> >> Thanks for the response! I didn?t expect to get one at this point >> J >> >> It does indeed answer my question! >> >> (Though you didn?t quite get the name right: there?s no Ex at the >> end? >> >> I take it you?ve done some Windows programming at some point) >> >> But now I have a new question? >> >> Is there any way to get the ?usual? letter for a ?common? operation? >> >> For instance, lots of programs support copy and paste. >> >> Is there a way to ask Java ?what is the standard letter for paste? >> and get back ?V?? >> >> Again, one could create a scratch text area and grovel through its >> input map, but that seems hacky. >> >-- >Regards, >Alexey > >This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. > >For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. >__________________________________________________________________________________ >If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. >__________________________________________________________________________________ >For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. >__________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.yagnatinsky at barclays.com Fri Mar 8 23:46:45 2024 From: mark.yagnatinsky at barclays.com (mark.yagnatinsky at barclays.com) Date: Fri, 8 Mar 2024 23:46:45 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: <8399c796-17e8-4d78-9916-a55054251420@oracle.com> Message-ID: Turns out that it is standardized: https://docs.oracle.com/javase/8/docs/api/constant-values.html#javax.swing.text.DefaultEditorKit.cutAction ? I get an InputMap with: ?copy-to-clipboard?, ?cut-to-clipboard?, and ?paste-from-clipboard?. Previous tests showed the same naming convention on Windows for JTextFields; I don?t know how standardized that naming convention is across all platforms / L&F?s. This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From achung at openjdk.org Sat Mar 9 00:54:05 2024 From: achung at openjdk.org (Alisen Chung) Date: Sat, 9 Mar 2024 00:54:05 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v15] In-Reply-To: References: Message-ID: > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: update test instructions, fix spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17838/files - new: https://git.openjdk.org/jdk/pull/17838/files/0947ce09..3cb76575 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=14 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17838&range=13-14 Stats: 4 lines in 2 files changed: 1 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/17838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17838/head:pull/17838 PR: https://git.openjdk.org/jdk/pull/17838 From achung at openjdk.org Sat Mar 9 01:23:03 2024 From: achung at openjdk.org (Alisen Chung) Date: Sat, 9 Mar 2024 01:23:03 GMT Subject: Integrated: 8327492: Remove applet usage and update DisposeInActionEventTest.html In-Reply-To: References: Message-ID: On Tue, 13 Feb 2024 21:34:09 GMT, Alisen Chung wrote: > Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. This pull request has now been integrated. Changeset: 53628f2e Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/53628f2ea9c2fb60fbdd0a03216e97e00b15fcb6 Stats: 185 lines in 3 files changed: 47 ins; 86 del; 52 mod 8327492: Remove applet usage and update DisposeInActionEventTest.html Reviewed-by: dnguyen, tr, abhiscxk, honkar, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/17838 From psadhukhan at openjdk.org Mon Mar 11 06:27:16 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 11 Mar 2024 06:27:16 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main Changes: https://git.openjdk.org/jdk/pull/18180/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327748 Stats: 108 lines in 2 files changed: 35 ins; 38 del; 35 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From mbaesken at openjdk.org Mon Mar 11 07:53:53 2024 From: mbaesken at openjdk.org (Matthias Baesken) Date: Mon, 11 Mar 2024 07:53:53 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes Hi, thanks for doing this cleanup change. I put it into our build/test queue to see the results on AIX. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1987807579 From psadhukhan at openjdk.org Mon Mar 11 08:59:01 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 11 Mar 2024 08:59:01 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main Changes: https://git.openjdk.org/jdk/pull/18182/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18182&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327750 Stats: 81 lines in 2 files changed: 23 ins; 50 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18182.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18182/head:pull/18182 PR: https://git.openjdk.org/jdk/pull/18182 From jkern at openjdk.org Mon Mar 11 09:23:57 2024 From: jkern at openjdk.org (Joachim Kern) Date: Mon, 11 Mar 2024 09:23:57 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes Changes requested by jkern (Author). doc/building.html line 679: > 677:

IBM Open XL C/C++

> 678:

The minimum accepted version of Open XL is 17.1.1.4. This is in > 679: essence clang 13, and will be treated as such by the OpenJDK build It is clang 15 not 13. Clang 13 was in 17.1.0 doc/building.md line 493: > 491: > 492: The minimum accepted version of Open XL is 17.1.1.4. This is in essence clang > 493: 13, and will be treated as such by the OpenJDK build system. clang 15 not 13 make/autoconf/toolchain.m4 line 285: > 283: XLC_TEST_PATH=${TOOLCHAIN_PATH}/ > 284: fi > 285: if test "x$TOOLCHAIN_TYPE" = xclang; then Why did you also remove the test for the clang compiler? Ah I see, you moved the clang compiler check down below make/autoconf/toolchain.m4 line 409: > 407: # Target: powerpc-ibm-aix7.2.0.0 > 408: # Thread model: posix > 409: # InstalledDir: /opt/IBM/openxlC/17.1.0/bin Please correct: IBM Open XL C/C++ for AIX 17.1.**1** (xxxxxxxxxxxxxxx), clang version 1**5**.0.0 # Target: **powerpc-ibm-aix7.2.**5**.7** # Thread model: posix # InstalledDir: /opt/IBM/openxlC/17.1.**1**/bin ------------- PR Review: https://git.openjdk.org/jdk/pull/18172#pullrequestreview-1927198641 PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519321337 PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519321980 PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519358938 PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519365934 From jkern at openjdk.org Mon Mar 11 09:23:58 2024 From: jkern at openjdk.org (Joachim Kern) Date: Mon, 11 Mar 2024 09:23:58 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:31:18 GMT, Magnus Ihse Bursie wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: >> >> Revert SEARCH_PATH changes > > make/autoconf/flags-cflags.m4 line 687: > >> 685: PICFLAG="-fPIC" >> 686: PIEFLAG="-fPIE" >> 687: elif test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then > > Just a remark: This code has never been executed, since running with clang on any OS would hit the branch above. Also, the code is syntactically incorrect, missing a trailing `"`. OK this was a flaw in my introduction of clang toolchain for AIX. The intention was to keep the xlc options in form of their clang counterparts. I will try with a corrected version for clang on AIX and will come back to you. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519347031 From jwaters at openjdk.org Mon Mar 11 09:32:58 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 11 Mar 2024 09:32:58 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 08:38:53 GMT, Joachim Kern wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: >> >> Revert SEARCH_PATH changes > > doc/building.html line 679: > >> 677:

IBM Open XL C/C++

>> 678:

The minimum accepted version of Open XL is 17.1.1.4. This is in >> 679: essence clang 13, and will be treated as such by the OpenJDK build > > It is clang 15 not 13. Clang 13 was in 17.1.0 Is Open XL C/C++ considered a compiler or more akin to a development environment like Xcode is for macOS? Depending on which, we could just say clang is the compiler for AIX without needing to say that Open XL is treated like clang, etc Also, why did this remove the link to the Supported Build Platforms page? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519394251 From abhiscxk at openjdk.org Mon Mar 11 09:42:53 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 11 Mar 2024 09:42:53 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 06:22:22 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 56: > 54: public class bug6798062 { > 55: > 56: private static final String instructionsText = """ `instructionsText` may be capitalize as using capital letter is common convention for final variables. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 65: > 63: 5. Wait several minutes and observe in the Windows Task Manager > 64: that Memory Usage of java process is not increasing > 65: If menory usage is increasing, click Fail else click Pass . """; Suggestion: If memory usage is increasing, click Fail else click Pass . """; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519408952 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519409622 From kizune at openjdk.org Mon Mar 11 09:46:34 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 11 Mar 2024 09:46:34 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests Message-ID: Clean up five more tests. test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java ------------- Commit messages: - 8316388: Opensource five Swing component related regression tests Changes: https://git.openjdk.org/jdk/pull/18184/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18184&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8316388 Stats: 454 lines in 6 files changed: 454 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18184.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18184/head:pull/18184 PR: https://git.openjdk.org/jdk/pull/18184 From psadhukhan at openjdk.org Mon Mar 11 09:53:17 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 11 Mar 2024 09:53:17 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: typo ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18180/files - new: https://git.openjdk.org/jdk/pull/18180/files/0164adc0..0c8ae3a0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From psadhukhan at openjdk.org Mon Mar 11 09:53:18 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 11 Mar 2024 09:53:18 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:38:49 GMT, Abhishek Kumar wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> typo > > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 56: > >> 54: public class bug6798062 { >> 55: >> 56: private static final String instructionsText = """ > > `instructionsText` may be capitalize as using capital letter is common convention for final variables. That is for constant, IIRC... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519426787 From psadhukhan at openjdk.org Mon Mar 11 10:07:02 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 11 Mar 2024 10:07:02 GMT Subject: RFR: 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main Changes: https://git.openjdk.org/jdk/pull/18186/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18186&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327751 Stats: 70 lines in 2 files changed: 18 ins; 30 del; 22 mod Patch: https://git.openjdk.org/jdk/pull/18186.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18186/head:pull/18186 PR: https://git.openjdk.org/jdk/pull/18186 From aivanov at openjdk.org Mon Mar 11 10:56:53 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 10:56:53 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 12:36:05 GMT, Dmitry Markov wrote: >> Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. > > Dmitry Markov has updated the pull request incrementally with one additional commit since the last revision: > > Tolerance update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18097#pullrequestreview-1927516502 From aivanov at openjdk.org Mon Mar 11 11:02:54 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 11:02:54 GMT Subject: RFR: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS [v2] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 12:36:05 GMT, Dmitry Markov wrote: >> Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. > > Dmitry Markov has updated the pull request incrementally with one additional commit since the last revision: > > Tolerance update It's not mentioned here, however, I think it's relevant to the discussion: the updated tests pass when the non-LCMS profiles from Java 8 are used. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18097#issuecomment-1988171424 From aivanov at openjdk.org Mon Mar 11 11:04:53 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 11:04:53 GMT Subject: RFR: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class [v2] In-Reply-To: <8LtJgsYdLRa_NuP3AZlv4u7nJFeliOfvGZNNJUzdI38=.a999646d-91da-499d-a1b5-57a098a42a88@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> <8LtJgsYdLRa_NuP3AZlv4u7nJFeliOfvGZNNJUzdI38=.a999646d-91da-499d-a1b5-57a098a42a88@github.com> Message-ID: <5K5mTzzC870xXM4pX5gkk72-vZviS_VkJVmyyI6IPxw=.6e8d29e6-fa53-4fae-9b48-94831a79d44a@github.com> On Fri, 8 Mar 2024 11:34:12 GMT, Prasanta Sadhukhan wrote: >> OPensource BoxView test > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18147#pullrequestreview-1927533498 From aivanov at openjdk.org Mon Mar 11 11:08:59 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 11:08:59 GMT Subject: RFR: 8327492: Remove applet usage and update DisposeInActionEventTest.html [v15] In-Reply-To: References: Message-ID: On Sat, 9 Mar 2024 00:54:05 GMT, Alisen Chung wrote: >> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update test instructions, fix spacing test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 70: > 68: "The test checks if any exceptions are thrown when removing and\n" + > 69: " re-adding the icon. If something is wrong, the test will automatically fail.\n" + > 70: " Repeat clicks several times Then press PASS button."; You've lost the full stop after _?times?_. It's not worth a new PR. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1519541474 From tr at openjdk.org Mon Mar 11 11:15:01 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 11 Mar 2024 11:15:01 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main Message-ID: Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18189/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327787 Stats: 94 lines in 2 files changed: 37 ins; 44 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18189.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18189/head:pull/18189 PR: https://git.openjdk.org/jdk/pull/18189 From aturbanov at openjdk.org Mon Mar 11 11:55:56 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Mon, 11 Mar 2024 11:55:56 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:41:47 GMT, Alexander Zuev wrote: > Clean up five more tests. > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java > test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 51: > 49: > 50: Robot robot; > 51: volatile boolean keyTyped = false; Suggestion: volatile boolean keyTyped = false; test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 83: > 81: robo.setAutoDelay(100); > 82: robo.delay(1000); > 83: robo.mouseMove(100,100); Suggestion: robo.mouseMove(100, 100); test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java line 33: > 31: > 32: public class bug4330998 { > 33: public static void main(String[] args) { Suggestion: public static void main(String[] args) { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519594212 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519594515 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519594745 From jkern at openjdk.org Mon Mar 11 12:29:55 2024 From: jkern at openjdk.org (Joachim Kern) Date: Mon, 11 Mar 2024 12:29:55 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: <0yRLC1SM9um8MIZYJP6sf8OOMeOCbzCc1LF_JQLxZHg=.e3391f4e-ab9e-423c-880c-e84aba29e87b@github.com> On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes make/autoconf/toolchain.m4 line 940: > 938: if test "x$OPENJDK_TARGET_OS" = xaix; then > 939: # Make sure we have the Open XL version of clang on AIX > 940: $ECHO "$CC_VERSION_OUTPUT" | $GREP "IBM Open XL C/C++ for AIX" > /dev/null This does not work since $CC_VERSION_OUTPUT is unset. We need CC_VERSION_OUTPUT=`${XLC_TEST_PATH}ibm-clang++_r --version 2>&1 | $HEAD -n 1` before, as in the previous code some lines above which you removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519634810 From mbaesken at openjdk.org Mon Mar 11 12:47:57 2024 From: mbaesken at openjdk.org (Matthias Baesken) Date: Mon, 11 Mar 2024 12:47:57 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes With this change added, currently configure fails checking for ibm-llvm-cxxfilt... /opt/IBM/openxlC/17.1.1/tools/ibm-llvm-cxxfilt configure: error: ibm-clang_r version output check failed, output: configure exiting with result code maybe related to what Joachim pointed out ? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1988358518 From aivanov at openjdk.org Mon Mar 11 13:37:57 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 13:37:57 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: 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 otherwise return the default color by calling native APIs. >> Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > separate method to get LAF defined color src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java line 186: > 184: > 185: if (id == Region.LABEL && type == ColorType.FOREGROUND > 186: && (state & SynthConstants.ENABLED) != 0) { Doesn't `SynthConstants.DISABLED` need the same treatment? test/jdk/javax/swing/plaf/basic/BasicHTML/bug4248210.java line 111: > 109: > 110: private static boolean chkImgForegroundColor(BufferedImage img) { > 111: Color red = new Color(255, 0, 0); I believe you should be using `labelColor` here. If anyone changes its value from `Color.RED` to anything else, the test will fail but it shouldn't. After all, why allowing configuring the colour in first place. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1519714194 PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1519712200 From aivanov at openjdk.org Mon Mar 11 13:37:58 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 13:37:58 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> <9LaK7sRChE5CkU7okuhRSRhRGRFRfjlYrb7dvpE_oFo=.ac9b318d-c3c1-4df5-a880-2baffe8ef502@github.com> Message-ID: On Thu, 7 Mar 2024 12:42:05 GMT, Abhishek Kumar wrote: >>> Backtracking a bit, regarding `Label.foreground` why it needs to be done here? >>> >>> Other L&F, it is added in corresponding LookAndFeel class for example, in [Metal](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalLookAndFeel.java#L1001) and in [Windows](https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java#L880) etc so I think it is needed to be added in GTKLookAndFeel class >> >> IN GTKLookAndFeel, the color is returned specific to the style and state from native side . So, even if it is not added the default color for enabled, disabled or any other state is returned by native. Whereas In Metal the color is set by using UIManager define color. >> >>> and additionally there is setting of Label.foreground and other Label. property in BasicLabelUI.java [installDefaults](https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLabelUI.java#L368) >> but we dont do it for Nimbus or GTK or Synth so I guess we need to call super.installDefaults(c) in SynthLabelUI class since there is no GTKLabelUI class >> or >> maybe do >> LookAndFeel.installColorsAndFont(c, "Label.background", "Label.foreground", "Label.font"); alone to avoid other properties being set and to not fallback >> >> This properties are set via SynthStyle [installDefaults](https://github.com/kumarabhi006/jdk/blob/master/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthStyle.java#L928) method where the foreground, background are set by getting the value from `getColorForState` method. So, calling super.installDefaults(c) in SynthLabelUI will not make any difference. >> >> I checked for JLabel properties set in enabled and disabled state. >> >> >> In Nimbus LAF >> UIManager.getDefaults().put("Label[Enabled].textForeground", labelColor); >> UIManager.getDefaults().put("Label[Disabled].textForeground", labelDisabledColor); >> >> Other LAF >> UIManager.getDefaults().put("Label.foreground", labelColor); >> UIManager.getDefaults().put("Label.disabledForeground", labelDisabledColor); >> >> >> It works as expected for Metal and GTK. For Nimbus LAF, disabled color is not painted correctly. In stead the default color specified in skin.laf is rendered. > >> It works as expected for Metal and GTK. For Nimbus LAF, disabled color is not painted correctly. In stead the default color specified in skin.laf is rendered. > > For HTML text, disabled state doesn't render in LAF defined color for Metal and GTK as well. This looks weird? So you're saying `Label[Enabled].textForeground` and `Label[Disabled].textForeground` are used for Nimbus (and Synth and GTK) instead of `Label.foreground` and `Label.disabledForeground` which are used for other L&Fs. Shouldn't we fix the problem by correcting the keys instead? It looks like it's what you're doing for specific components. Is it specified anywhere that Synth-based L&Fs use different constants? It results in incorrect colors. If a developer sets the common properties, should they override Look-and-Feel defaults? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1519696320 From aivanov at openjdk.org Mon Mar 11 13:46:56 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 13:46:56 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 11:10:14 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. Changes requested by aivanov (Reviewer). test/jdk/javax/swing/border/Test4129681.java line 48: > 46: String testInstructions = """ > 47: When applet starts, you'll see a checkbox > 48: and a label with a titled border. Update the instructions not to refer to applet. test/jdk/javax/swing/border/Test4129681.java line 54: > 52: """; > 53: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() > 54: .title("JInternalFrame Instructions") Is this test related to `JInternalFrame`? It doesn't look so. test/jdk/javax/swing/border/Test4129681.java line 56: > 54: .title("JInternalFrame Instructions") > 55: .instructions(testInstructions) > 56: .testTimeOut(5) The default timeout could be left out. test/jdk/javax/swing/border/Test4129681.java line 67: > 65: } > 66: > 67: public static void init() { I propose using `testUI` method of the builder, it hides the complexity of registering and positioning the frame. Modify this method to return the created `frame`. See PR #17838 as an example or other PRs. The javadoc for `PassFailJFrame` also contains the recommended usage. ------------- PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1927850517 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519732701 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519733729 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519734220 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519743444 From jkern at openjdk.org Mon Mar 11 13:48:56 2024 From: jkern at openjdk.org (Joachim Kern) Date: Mon, 11 Mar 2024 13:48:56 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:48:08 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > Revert SEARCH_PATH changes Changes requested by jkern (Author). ------------- PR Review: https://git.openjdk.org/jdk/pull/18172#pullrequestreview-1927875301 From jkern at openjdk.org Mon Mar 11 13:48:56 2024 From: jkern at openjdk.org (Joachim Kern) Date: Mon, 11 Mar 2024 13:48:56 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 08:59:03 GMT, Joachim Kern wrote: >> make/autoconf/flags-cflags.m4 line 687: >> >>> 685: PICFLAG="-fPIC" >>> 686: PIEFLAG="-fPIE" >>> 687: elif test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then >> >> Just a remark: This code has never been executed, since running with clang on any OS would hit the branch above. Also, the code is syntactically incorrect, missing a trailing `"`. > > OK this was a flaw in my introduction of clang toolchain for AIX. The intention was to keep the xlc options in form of their clang counterparts. I will try with a corrected version for clang on AIX and will come back to you. OK, the `-Wl,-bbigtoc` is not a compiler option but a linker option and it is already set in the linker options. But the `-fpic -mcmodel=large` should be set to avoid creating a jump to out-of-order code. So we can replace the JVM_PICFLAG="$PICFLAG" JDK_PICFLAG="$PICFLAG" code some lines below by if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then JVM_PICFLAG="-fpic -mcmodel=large" else JVM_PICFLAG="$PICFLAG" fi JDK_PICFLAG="$PICFLAG" ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1519747481 From alexsch at openjdk.org Mon Mar 11 13:58:22 2024 From: alexsch at openjdk.org (Alexander Scherbatiy) Date: Mon, 11 Mar 2024 13:58:22 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS Message-ID: The fix provides ability to print Black & White pages on macOS. Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. There is no replacement; this function was included to facilitate porting legacy applications to macOS, but it serves no useful purpose. Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. For example, the tested `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. This is the code snippet used to print `NSPrintInfo` presets: PMPrinter pr; PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); CFArrayRef presetsList = nil; status = PMPrinterCopyPresets(pr, &presetsList); CFIndex arrayCount = CFArrayGetCount(presetsList); for (CFIndex index = 0; index < arrayCount; index++) { PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); CFStringRef presetName = nil; if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { NSLog(@" presetName: '%@'", presetName); NSDictionary* dict = nil; if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { // print preset dict The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. The property file has the format: print-attribute.print-attribute-value.key=value where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. For example, for `Chromaticity` attribute the property file could look like: Chromaticity.MONOCHROME.ColorModel=Gray Chromaticity.COLOR.ColorModel=CMYK Chromaticity.MONOCHROME.HPColorMode=grayscale Chromaticity.COLOR.HPColorMode=color where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (`ColorModel`, `Gray`) and (`HPColorMode`, `grayscale`) key/value pairs. Similarly `Chromaticity.COLOR` key prefix with (`ColorModel`, `CMYK`) and (`HPColorMode`, `color`) key/value pairs correspond to `Chromaticity.COLOR` print attribute. https://www.openprinting.org/download/PPD/ site has been used to collect `monochrome` and `color` constants from ppd files and save them in `/conf/printer.properties` file. For example, for the Brother printer the https://www.openprinting.org/download/PPD/Brother/BR9440_2_GPL.ppd ppd file defines `BRPrintQuality` option: *OpenUI *BRPrintQuality/Color/Mono: PickOne *OrderDependency: 15 AnySetup *BRPrintQuality *DefaultBRPrintQuality: Auto *BRPrintQuality Auto/Auto: " <>setpagedevice <>setpagedevice <>setpagedevice" *BRPrintQuality Color/Color: " <>setpagedevice <>setpagedevice <>setpagedevice" *BRPrintQuality Black/Mono: " <>setpagedevice <>setpagedevice <>setpagedevice" ... *CloseUI: *BRPrintQuality which is listed in the `printer.properties` file as: Chromaticity.MONOCHROME.BRPrintQuality=Black Chromaticity.COLOR.BRPrintQuality=Color and for the Epson printer the https://www.openprinting.org/download/PPD/Epson/epal2600.ppd ppd file defines `EPRendering` option: *OpenUI *EPRendering/Color Mode: PickOne *% EPRendering must be after EPColorModel *OrderDependency: 50 AnySetup *EPRendering *DefaultEPRendering: None *EPRendering None/Mono: " <> >> setpagedevice" *End *% ProcessColorModel is already set in EPColorModel *EPRendering RGB/Color: " << /ProcessColorModel (DeviceRGB) >> setpagedevice <> >> setpagedevice" ... *CloseUI: *EPRendering which is listed in the `printer.properties` file as: Chromaticity.MONOCHROME.EPRendering=None Chromaticity.COLOR.EPRendering=RGB The full list of constants from https://www.openprinting.org/download/PPD/ used in `printer.properties` is # Brother Chromaticity.MONOCHROME.BRPrintQuality=Black Chromaticity.COLOR.BRPrintQuality=Color # Dell Chromaticity.MONOCHROME.DLColorMode=Black Chromaticity.COLOR.DLColorMode=Color # Epson Chromaticity.MONOCHROME.EPRendering=None Chromaticity.COLOR.EPRendering=RGB # Gestener # Kyocera # Lanier # NRG # Ricoh # Savin # Utax Chromaticity.MONOCHROME.ColorModel=Gray Chromaticity.COLOR.ColorModel=CMYK # HP Chromaticity.MONOCHROME.HPColorAsGray=Yes Chromaticity.COLOR.HPColorAsGray=No # KONICA_MINOLTA Chromaticity.MONOCHROME.SelectColor=Grayscale Chromaticity.COLOR.SelectColor=Color # Lexmark Chromaticity.MONOCHROME.ColorMode=FalseM Chromaticity.COLOR.ColorMode=TrueM Chromaticity.MONOCHROME.BLW=FalseM Chromaticity.COLOR.BLW=TrueM # Oki Chromaticity.MONOCHROME.OKControl=Gray Chromaticity.COLOR.OKControl=Auto # Sharp Chromaticity.MONOCHROME.ARCMode=CMBW Chromaticity.COLOR.ARCMode=CMColor # Xerox Chromaticity.MONOCHROME.XRXColor=BW Chromaticity.COLOR.XRXColor=Automatic Chromaticity.MONOCHROME.XRColorMode=Black Chromaticity.COLOR.XRColorMode=Color Chromaticity.MONOCHROME.XRColorModeSetting=Black Chromaticity.COLOR.XRColorModeSetting=Color Chromaticity.MONOCHROME.EFColorMode=GRAY Chromaticity.COLOR.EFColorMode=CMYK There are printers with the same color attributes and different values. For example, Kyocera defines `ColorModel` Color option as `CMYK` in https://www.openprinting.org/download/PPD/Kyocera/en/Kyocera_CS-C4035E_en.ppd file: *OpenUI *ColorModel/Color Mode: PickOne *OrderDependency: 10 AnySetup *ColorModel *DefaultColorModel: CMYK *ColorModel CMYK/Color (CMYK): "<< /ProcessColorModel /DeviceCMYK >> setpagedevice" *ColorModel Gray/Monochrome: "<< /ProcessColorModel /DeviceGray >> setpagedevice" ... *CloseUI: *ColorModel and Samsung defines the same `ColorModel` Color option as `Color` in https://www.openprinting.org/download/PPD/Samsung/PS/Samsung_C2670_Series.ppd *OrderDependency: 70 AnySetup *ColorModel *DefaultColorModel: Color *ColorModel Gray/Grayscale: "<> setpagedevice" *ColorModel Color/Color: "<> setpagedevice" *CloseUI: *ColorModel The fix has been tested with 2 color printers `HP Color LaserJet MFP M180n` and `HP Ink Tank 110 series`. `HP Color LaserJet MFP M180n` uses `ColorModel` key and `Gray` value for black & white printing. `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. Only `HPColorAsGray` option with `Yes` and `No` values is listed in https://www.openprinting.org/download/PPD/HP files. For example, https://www.openprinting.org/download/PPD/HP/HP_DesignJet_3500CP_PS3.ppd *OpenUI *HPColorAsGray/Print Color as Gray: PickOne *OrderDependency: 5.0 AnySetup *HPColorAsGray *DefaultHPColorAsGray: No *HPColorAsGray Yes/Yes: "<< /ProcessColorModel /DeviceGray >> setpagedevice" *HPColorAsGray No/No: "<< /ProcessColorModel /DeviceCMYK >> setpagedevice" ... *CloseUI: *HPColorAsGray Both `HPColorAsGray` and `HPColorMode` options are added to the `printer.properties` file as: Chromaticity.MONOCHROME.HPColorAsGray=Yes Chromaticity.COLOR.HPColorAsGray=No Chromaticity.MONOCHROME.HPColorMode=grayscale Chromaticity.COLOR.HPColorMode=color ------------- Commit messages: - 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS Changes: https://git.openjdk.org/jdk/pull/18195/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18195&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8315113 Stats: 431 lines in 6 files changed: 429 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18195.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18195/head:pull/18195 PR: https://git.openjdk.org/jdk/pull/18195 From aivanov at openjdk.org Mon Mar 11 14:17:59 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 14:17:59 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:41:47 GMT, Alexander Zuev wrote: > Clean up five more tests. > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java > test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java The copyright year should be updated to 2024. The directory structure should be flattened, there's no need for additional folder in the path. test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java line 47: > 45: } catch (PropertyVetoException ex) { > 46: ex.printStackTrace(); > 47: } Shouldn't the test fail if an unexpected exception is thrown? test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java line 59: > 57: throw new RuntimeException("Test interrupted by " > 58: + e.getLocalizedMessage()); > 59: } You can add `throws Exception` clause to the `main` method and remove this `catch` block. test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 69: > 67: keyTyped = true; > 68: bug4773378.this.notifyAll(); > 69: } A `CountDownLatch` would work great in this case. And `keyTyped` is a confusing name for a flag which gets to `true` when the internal frame is activated. test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 85: > 83: public void performTest() { > 84: try { > 85: jif.setSelected(true); This should be called via `SwingUtilities.invokeLater` on EDT. test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 102: > 100: } catch (Throwable t) { > 101: t.printStackTrace(); > 102: } A `Throwable` should fail the test, it must be propagated. test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 83: > 81: robo.setAutoDelay(100); > 82: robo.delay(1000); > 83: robo.mouseMove(100,100); This may fail if the frame location of (50, 50) isn't respected by a window manager. test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 115: > 113: try { > 114: SwingUtilities.invokeAndWait(b::setupGUI); > 115: safeSleep(3000); Instead of sleeping, you can use a `CountDownLatch(3)` which you'll `countDown()` for each mouse click. Here you'll call `await(3, TimeUnit.SECONDS)` and throw a timeout error if `await` returns `false`. Another synchroniser may be used to handle the case where `BadLocationException` is thrown to fail the test right away. Alternatively, `BadLocationException` may be wrapped into `RuntimeException` and re-thrown. test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html line 1: > 1: Can this file be created by the test on the fly? There's no need for a supporting file. In #18147, Prasanta handled the same situation. test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 29: > 27: * @summary JEditor pane throws NullPointerException on mouse movement. > 28: * @library ../../regtesthelpers > 29: * @build JRobot The test doesn't seem to use any of the extended functionality provided by JRobot, so the standard `java.awt.Robot` can be used instead. test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 40: > 38: > 39: public class bug4694598 { > 40: JFrame frame = null; Suggestion: JFrame frame; `null` is the default value any way. test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 69: > 67: public void performTest() throws InterruptedException, > 68: InvocationTargetException { > 69: JRobot jRobo = JRobot.getRobot(); Suggestion: JRobot jRobo = JRobot.getRobot(); jRobo.waitForIdle(); Let the frame appear on the screen. test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 81: > 79: try { > 80: Thread.sleep(50); > 81: } catch (InterruptedException ex) {} Suggestion: jRobo.delay(50); test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 93: > 91: > 92: public static void main(String args[]) throws InterruptedException, > 93: InvocationTargetException { Suggestion: public static void main(String[] args) throws Exception { Java-style array declaration, shortened `throws` clause. ------------- Changes requested by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18184#pullrequestreview-1927877446 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519748640 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519751913 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519757762 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519759741 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519764367 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519773893 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519778086 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519785057 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519790641 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519791220 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519789098 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519787470 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1519793301 From aivanov at openjdk.org Mon Mar 11 16:32:18 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 16:32:18 GMT Subject: RFR: 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 10:02:21 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework Changes requested by aivanov (Reviewer). test/jdk/javax/swing/JInternalFrame/6726866/bug6726866.java line 51: > 49: > 50: public static void main(String[] args) throws Exception { > 51: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() Please use the `builder` helper method instead of using `new` explicitly. test/jdk/javax/swing/JInternalFrame/6726866/bug6726866.java line 54: > 52: .title("JInternalFrame Instructions") > 53: .instructions(instructionsText) > 54: .testTimeOut(5) The default timeout can be omitted. ------------- PR Review: https://git.openjdk.org/jdk/pull/18186#pullrequestreview-1927995890 PR Review Comment: https://git.openjdk.org/jdk/pull/18186#discussion_r1519859043 PR Review Comment: https://git.openjdk.org/jdk/pull/18186#discussion_r1519820170 From aivanov at openjdk.org Mon Mar 11 16:32:20 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 16:32:20 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 08:54:38 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 60: > 58: .getInstalledLookAndFeels(); > 59: for (final UIManager.LookAndFeelInfo info : infos) { > 60: SwingUtilities.invokeAndWait(() -> { As far as I can see, the test creates multiple frames. This situation isn't handled well automatically by `PassFailJFrame` so far, no default window layout is provided. However, it could not be needed here? test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 70: > 68: PassFailJFrame.addTestWindow(frame); > 69: PassFailJFrame.positionTestWindow(frame, PassFailJFrame.Position.TOP_LEFT_CORNER); > 70: frame.pack(); You should call `pack()` before positioning the frame, otherwise the frame won't be positioned correctly. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1519817966 PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1519815357 From aivanov at openjdk.org Mon Mar 11 16:32:24 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 16:32:24 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:53:17 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > typo Changes requested by aivanov (Reviewer). test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 1: > 1: /* Likely, all the catch blocks which simply print stack traces should propagate the exception or rather in addition to printing the stack trace call `PassFailJFrame.forceFail` with a corresponding message. The `fail` method of the test should also call `PassFailJFrame.forceFail` to fail the test. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 78: > 76: > 77: public static void main(String[] args) throws Exception { > 78: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() Please use the `builder` helper method instead of `new`. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 86: > 84: .build(); > 85: > 86: SwingUtilities.invokeAndWait(() -> { I suggest using the `testUI` method of the builder which accepts a lambda expression that returns a frame. Calling the passed method reference or lambda expression on EDT, registering the frame with `PassFailJFrame` and its positioning is handled automatically. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 107: > 105: } > 106: > 107: private JComponent initialize() { I suggest creating the files in the current directory instead of `temp` or `home`. When run with jtreg, the current directory is set to `scratch` which is automatically removed by jtreg, which ensures no files are left behind if the test fails to clean them up for whatever reason. ------------- PR Review: https://git.openjdk.org/jdk/pull/18180#pullrequestreview-1928016162 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519841469 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519857497 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519832650 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519835478 From aivanov at openjdk.org Mon Mar 11 16:32:25 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 16:32:25 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:48:36 GMT, Prasanta Sadhukhan wrote: >> test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 56: >> >>> 54: public class bug6798062 { >>> 55: >>> 56: private static final String instructionsText = """ >> >> `instructionsText` may be capitalize as using capital letter is common convention for final variables. > > That is for constant, IIRC... Either way is fine? And `instructionsText` *is* a constant but it's not public. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1519826585 From tr at openjdk.org Mon Mar 11 16:32:38 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 11 Mar 2024 16:32:38 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: References: Message-ID: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> > Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with three additional commits since the last revision: - Review updates - Review updates - Updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18189/files - new: https://git.openjdk.org/jdk/pull/18189/files/244437cd..d76714e8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=00-01 Stats: 21 lines in 1 file changed: 1 ins; 11 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18189.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18189/head:pull/18189 PR: https://git.openjdk.org/jdk/pull/18189 From aivanov at openjdk.org Mon Mar 11 16:32:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 16:32:39 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> References: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> Message-ID: On Mon, 11 Mar 2024 15:00:21 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with three additional commits since the last revision: > > - Review updates > - Review updates > - Updates Changes requested by aivanov (Reviewer). Marked as reviewed by aivanov (Reviewer). test/jdk/javax/swing/border/Test4129681.java line 41: > 39: > 40: public class Test4129681 { > 41: private static JLabel label; The `label` does not need to be global, it can be confined to `init`. test/jdk/javax/swing/border/Test4129681.java line 47: > 45: public static void main(String[] args) throws Exception { > 46: String testInstructions = """ > 47: When frame starts, you'll see a checkbox It's not what I really meant. The instructions and the frame appear simultaneously, thus the tester doesn't need to wait for anything. Just describe what the tester needs to do. test/jdk/javax/swing/border/Test4129681.java line 53: > 51: is disabled as well as the label. > 52: """; > 53: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() Suggestion: PassFailJFrame passFailJFrame = PassFailJFrame.builder() Use helper method to create the builder, don't use `new` explicitly. ------------- PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1928044311 PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1928078877 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519870582 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519849859 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519855420 From aivanov at openjdk.org Mon Mar 11 16:32:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 16:32:41 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: References: Message-ID: <8Sa7igl3eK0WlSMyMi9uLoCH09b2Rr9Zl9sQo_Ogr0M=.bd1966f2-6118-4dbc-86d5-86a26521ee20@github.com> On Mon, 11 Mar 2024 13:43:56 GMT, Alexey Ivanov wrote: >> Tejesh R has updated the pull request incrementally with three additional commits since the last revision: >> >> - Review updates >> - Review updates >> - Updates > > test/jdk/javax/swing/border/Test4129681.java line 67: > >> 65: } >> 66: >> 67: public static void init() { > > I propose using `testUI` method of the builder, it hides the complexity of registering and positioning the frame. Modify this method to return the created `frame`. > > See PR #17838 as an example or other PRs. The javadoc for `PassFailJFrame` also contains the recommended usage. If the test UI is simple enough, you can even use `splitUI` to display the test UI along with the instructions. In this case, instead of frame return a `JComponent`, likely `JPanel`, which contains all the test UI. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1519853979 From tr at openjdk.org Mon Mar 11 16:42:08 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 11 Mar 2024 16:42:08 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main Message-ID: Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18197/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327826 Stats: 74 lines in 2 files changed: 31 ins; 35 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18197.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18197/head:pull/18197 PR: https://git.openjdk.org/jdk/pull/18197 From erikj at openjdk.org Mon Mar 11 17:29:53 2024 From: erikj at openjdk.org (Erik Joelsson) Date: Mon, 11 Mar 2024 17:29:53 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:54:02 GMT, Alexander Scherbatiy wrote: > The fix provides ability to print Black & White pages on macOS. > > Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. > > There is no replacement; this function was included to facilitate porting legacy applications to macOS, > but it serves no useful purpose. > > Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. > For example, the tested > `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and > `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. > > Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. > This is the code snippet used to print `NSPrintInfo` presets: > > PMPrinter pr; > PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; > OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > CFArrayRef presetsList = nil; > status = PMPrinterCopyPresets(pr, &presetsList); > CFIndex arrayCount = CFArrayGetCount(presetsList); > > for (CFIndex index = 0; index < arrayCount; index++) { > PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > CFStringRef presetName = nil; > if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { > NSLog(@" presetName: '%@'", presetName); > NSDictionary* dict = nil; > if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { > // print preset dict > > > The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. > > The property file has the format: > > print-attribute.print-attribute-value.key=value > > where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. > > For example, for `Chromaticity` attribute the property file could look like: > > Chromaticity.MONOCHROME.ColorModel=Gray > Chromaticity.COLOR.ColorModel=CMYK > Chromaticity.MONOCHROME.HPColorMode=grayscale > Chromaticity.COLOR.HPColorMode=color > > where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (... Build change looks ok. (The copy logic follows the existing pattern in that file so it's fine, even though we have generally moved to different patterns using the SetupCopyFile macro.) ------------- Marked as reviewed by erikj (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18195#pullrequestreview-1928548932 From azvegint at openjdk.org Mon Mar 11 17:40:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 11 Mar 2024 17:40:21 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main Message-ID: The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. ------------- Commit messages: - fix spacing - remove def timeout - remove separate dir - initial Changes: https://git.openjdk.org/jdk/pull/18203/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18203&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327835 Stats: 345 lines in 4 files changed: 75 ins; 270 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18203.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18203/head:pull/18203 PR: https://git.openjdk.org/jdk/pull/18203 From azvegint at openjdk.org Mon Mar 11 17:59:20 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 11 Mar 2024 17:59:20 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main Message-ID: The test is converted to main. Tested on Linux, Macos and Windows. ------------- Commit messages: - 8327838 Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main Changes: https://git.openjdk.org/jdk/pull/18205/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18205&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327838 Stats: 445 lines in 3 files changed: 113 ins; 332 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18205.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18205/head:pull/18205 PR: https://git.openjdk.org/jdk/pull/18205 From aivanov at openjdk.org Mon Mar 11 17:59:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 17:59:55 GMT Subject: RFR: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." [v2] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 20:07:19 GMT, Alisen Chung wrote: >> Introduce delays in test to stabilize. Test passes 50x after fix. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update copyright, fix jtreg formatting, update frame title, expand imports Looks fine. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18091#pullrequestreview-1928660737 From alexey.ivanov at oracle.com Mon Mar 11 18:19:44 2024 From: alexey.ivanov at oracle.com (Aleksei Ivanov) Date: Mon, 11 Mar 2024 18:19:44 +0000 Subject: introducing myself In-Reply-To: <1453988293.356073367.1709908702002.JavaMail.zimbra@free.fr> References: <1453988293.356073367.1709908702002.JavaMail.zimbra@free.fr> Message-ID: Hello Raphael, Thank you for your contribution. Your message belongs at client-libs-dev at openjdk.org where client issues?2D, AWT, Swing?are discussed. Your PR isn't announced on the mailing list because it's not linked to an issue in JDK Bug System (JBS): https://bugs.openjdk.org/ Your PR shortly describes the problem. Do you have a test case to demonstrate the problem? This test case would then serve as regression test for the changeset, so it's still useful. Once I've got more details, I'll submit a new bug for you. I searched JBS for ChangedCharSetException and I didn't find any bug which is similar to what you describe. On 2024-03-08 14:38, raphael.jolly at free.fr wrote: > Hello, my name is Raphael Jolly, I am the developer of (among other) this software https://github.com/rjolly/linoleum and I was invited following posting this PR https://github.com/openjdk/jdk/pull/17567 which prevents reading email in HTML format in said software mailer, for which I have a workaround but that I thought would be worth fixing in the JDK, despite Swing (and especially the JEditorPane) not being that much used these days. > > Thanks for reading and looking forward to interesting discussions, > Raphael -- Regards, Alexey From aivanov at openjdk.org Mon Mar 11 18:44:27 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 18:44:27 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> References: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> Message-ID: On Mon, 11 Mar 2024 16:32:38 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with three additional commits since the last revision: > > - Review updates > - Review updates > - Updates > > I propose using testUI method of the builder, it hides the complexity of registering and positioning the frame. Modify this method to return the created frame. > > If the test UI is simple enough, you can even use splitUI to display the test UI along with the instructions. In this case, instead of frame return a JComponent, likely JPanel, which contains all the test UI. It fits into splitUI pretty well, especially if you reduce the size of the test UI frame. Yet you'll have convert `JFrame` to `JPanel` or `Box`. You can find a sample usage in #17847 or #17608 in [Collate2DPrintingTest.java](https://github.com/openjdk/jdk/blob/69fe7d9651cd759eea0495a0b7bf8c356d9b93a6/test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java#L96-L104). ------------- PR Comment: https://git.openjdk.org/jdk/pull/18189#issuecomment-1989179731 From aivanov at openjdk.org Mon Mar 11 19:19:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 19:19:13 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 15:52:45 GMT, Alexey Ivanov wrote: > I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). > > I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. > > The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. > > For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. > > When the test passes, it usually completes in 5 minutes. > > **How the test works** > > The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. > > The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. > > A timer is used to create new files in the directory that the file chooser is using. > > After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. > > If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. > > On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. > > On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. > > On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for it to complete. The chance of updating `fileCache` whil... @mrserb, @RealCLanger, could you run this test in your environments, please? It is for Linux and macOS only. I'm looking for confirmation that the test fails without the fix for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670). Since JDK-8323670 is fixed in mainline, you can run it in 21u or 17u which don't have the fix yet. You'll need to run the test several times because it fails only occasionally. That's why I want to collect more data on whether the test is useful/stable enough. I greatly appreciate your help. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-1989244423 From aivanov at openjdk.org Mon Mar 11 21:23:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 21:23:23 GMT Subject: RFR: 8325851: Hide PassFailJFrame.Builder constructor Message-ID: The `Builder` class in `PassFailJFrame` is public and has a public constructor. At the same time, a better design would be to hide all the Builder constructors and rely on the `builder()` method which returns an instance of the `Builder` class. This PR makes the constructor of the `Builder` class private so that it's not accessible directly. Use `PassFailJFrame.builder()` to get an instance of the builder and configure parameters of `PassFailJFrame`. I updated all the tests which used the constructor directly by calling `new PassFailJFrame.Builder()`. I converted a few tests to use the `testUI`, which greatly simplifies the test code. This change also removes flickering of the test UI. ------------- Commit messages: - Minor updates to createUI in ComboPopupBug - Use testUI in ComboPopupBug - Use testUI in DefaultCloseOperation and reduce the number of columns - Use testUI in LightweightCliprect - Remove unused EventQueue import - Use testUI in DefaultSizeTest - Use testUI in FrameRepackTest - Use testUI in MultimonVImage - Use testUI in AddRemoveMenuBar_{1..4} - Remove unused EventQueue import - ... and 5 more: https://git.openjdk.org/jdk/compare/0a6e64e2...91361e52 Changes: https://git.openjdk.org/jdk/pull/18206/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18206&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8325851 Stats: 242 lines in 21 files changed: 14 ins; 118 del; 110 mod Patch: https://git.openjdk.org/jdk/pull/18206.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18206/head:pull/18206 PR: https://git.openjdk.org/jdk/pull/18206 From aivanov at openjdk.org Mon Mar 11 21:27:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 21:27:14 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main In-Reply-To: References: Message-ID: <3V8ICRRvev5oxT7k8QDL2ZoeTTi-hCYNTWlJIcvsdo0=.833d3917-a5da-416a-bf22-473def7cff1c@github.com> On Mon, 11 Mar 2024 17:29:50 GMT, Alexander Zvegintsev wrote: > The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. > > We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. > The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. > > The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. Changes requested by aivanov (Reviewer). test/jdk/ProblemList.txt line 799: > 797: java/awt/TrayIcon/DragEventSource/DragEventSource.java 8252242 macosx-all > 798: java/awt/FileDialog/DefaultFocusOwner/DefaultFocusOwner.java 7187728 macosx-all,linux-all > 799: java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest.html 7187728 macosx-all,linux-all What about [JDK-7187728](https://bugs.openjdk.org/browse/JDK-7187728)? It's still unresolved. test/jdk/java/awt/FileDialog/RegexpFilterTest.java line 73: > 71: .build(); > 72: > 73: passFailJFrame.awaitAndCheck(); Suggestion: .build() .awaitAndCheck(); Chain it. Then the variable `passFailJFrame` becomes redundant. test/jdk/java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest.java line 1: > 1: /* I believe we haven't flattened the directory structure when modifying tests. On the other hand, this file has no meaningful modification history, so nothing's lost. ------------- PR Review: https://git.openjdk.org/jdk/pull/18203#pullrequestreview-1929348959 PR Review Comment: https://git.openjdk.org/jdk/pull/18203#discussion_r1520449595 PR Review Comment: https://git.openjdk.org/jdk/pull/18203#discussion_r1520446796 PR Review Comment: https://git.openjdk.org/jdk/pull/18203#discussion_r1520448130 From aivanov at openjdk.org Mon Mar 11 21:32:18 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 21:32:18 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 17:53:48 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. Changes requested by aivanov (Reviewer). test/jdk/java/awt/FileDialog/MultipleMode.java line 68: > 66: .build(); > 67: > 68: EventQueue.invokeAndWait(MultipleMode::init); I suggest using `testUI` method. Make your `init` method return `Frame` after you call `pack()`, don't call `setVisible(true)`. .testUI(MultipleMode::init) Then you'll be able to chain `awaitAndCheck()` call. test/jdk/java/awt/FileDialog/MultipleMode.java line 82: > 80: Button open = new Button("open"); > 81: open.addActionListener(e -> { > 82: FileDialog d = new FileDialog((Frame)null); Make `frame` the owner? test/jdk/java/awt/FileDialog/MultipleMode/MultipleMode.java line 1: > 1: /* Do we move test files when modifying? ------------- PR Review: https://git.openjdk.org/jdk/pull/18205#pullrequestreview-1929367696 PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1520452456 PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1520453034 PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1520453449 From aivanov at openjdk.org Mon Mar 11 21:39:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 21:39:13 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main In-Reply-To: References: Message-ID: <9KzJQOh_Bn-wPhoA2_vMhHfAjXxNALG6KkJHAQE0NMg=.1d9c6cc5-597c-4ad5-8d51-99dd92621a9f@github.com> On Mon, 11 Mar 2024 14:46:11 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. Changes requested by aivanov (Reviewer). test/jdk/javax/swing/border/Test4243289.java line 47: > 45: When frame starts, you'll see a panel with a TitledBorder > 46: with title "Panel Title". If this title is overstriken with > 47: the border line, test fails, otherwise it passes. As in #18189, just explain what the tester needs to do. Both the instructions and the test UI appear on the screen simultaneously. test/jdk/javax/swing/border/Test4243289.java line 49: > 47: the border line, test fails, otherwise it passes. > 48: """; > 49: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() Suggestion: PassFailJFrame passFailJFrame = PassFailJFrame.builder() Please use the `builder` method instead of instantiating the `Builder` object directly. test/jdk/javax/swing/border/Test4243289.java line 59: > 57: SwingUtilities.invokeAndWait(() -> { > 58: init(); > 59: }); Convert to `testUI` which streamlines the `main` method and simplifies creating the test UI. Alternatively, use `splitUI` which could simplify the resulting UI. test/jdk/javax/swing/border/Test4243289.java line 77: > 75: frame.setSize(300, 300); > 76: PassFailJFrame.addTestWindow(frame); > 77: PassFailJFrame.positionTestWindow(frame, PassFailJFrame.Position.TOP_LEFT_CORNER); Any particular reason why top left corner is used instead of centered-positioning? ------------- PR Review: https://git.openjdk.org/jdk/pull/18197#pullrequestreview-1928952878 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1520332384 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1520317239 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1520318570 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1520320069 From prr at openjdk.org Mon Mar 11 22:12:13 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 11 Mar 2024 22:12:13 GMT Subject: RFR: 8325851: Hide PassFailJFrame.Builder constructor In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 21:18:40 GMT, Alexey Ivanov wrote: > The `Builder` class in `PassFailJFrame` is public and has a public constructor. At the same time, a better design would be to hide all the Builder constructors and rely on the `builder()` method which returns an instance of the `Builder` class. > > This PR makes the constructor of the `Builder` class private so that it's not accessible directly. > > Use `PassFailJFrame.builder()` to get an instance of the builder and configure parameters of `PassFailJFrame`. > > I updated all the tests which used the constructor directly by calling `new PassFailJFrame.Builder()`. > > I converted a few tests to use the `testUI`, which greatly simplifies the test code. This change also removes flickering of the test UI. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1070: > 1068: } > 1069: > 1070: public Builder title(String title) { So what about this one ? Are too many tests using it ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18206#discussion_r1520485829 From aivanov at openjdk.org Mon Mar 11 22:29:12 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Mon, 11 Mar 2024 22:29:12 GMT Subject: RFR: 8325851: Hide PassFailJFrame.Builder constructor In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 22:09:09 GMT, Phil Race wrote: >> The `Builder` class in `PassFailJFrame` is public and has a public constructor. At the same time, a better design would be to hide all the Builder constructors and rely on the `builder()` method which returns an instance of the `Builder` class. >> >> This PR makes the constructor of the `Builder` class private so that it's not accessible directly. >> >> Use `PassFailJFrame.builder()` to get an instance of the builder and configure parameters of `PassFailJFrame`. >> >> I updated all the tests which used the constructor directly by calling `new PassFailJFrame.Builder()`. >> >> I converted a few tests to use the `testUI`, which greatly simplifies the test code. This change also removes flickering of the test UI. > > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1070: > >> 1068: } >> 1069: >> 1070: public Builder title(String title) { > > So what about this one ? Are too many tests using it ? What about them? All the methods in `Builder` return `Builder`, that's perfectly fine. The goal of this PR is to make impossible to write new PassFailJFrame.Builder(); which is replaced with PassFailJFrame.builder(); In the former case, the test explicitly depends on the fact that the builder pattern implementation is in the `PassFailJFrame.Builder` class. In the latter case, I can change the `builder()` method to return another class. As long as that other class has the same set of methods, like `instructions` and title`, which return the same object, nothing breaks. Encapsulation. With this change, all the existing tests continue to run. Those tests which failed to compile because of a breaking API change are updated in this PR. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18206#discussion_r1520497593 From prr at openjdk.org Mon Mar 11 22:52:14 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 11 Mar 2024 22:52:14 GMT Subject: RFR: 8325851: Hide PassFailJFrame.Builder constructor In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 22:25:40 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1070: >> >>> 1068: } >>> 1069: >>> 1070: public Builder title(String title) { >> >> So what about this one ? Are too many tests using it ? > > What about them? All the methods in `Builder` return `Builder`, that's perfectly fine. > > The goal of this PR is to make impossible to write > > > new PassFailJFrame.Builder(); > > > which is replaced with > > > PassFailJFrame.builder(); > > > In the former case, the test explicitly depends on the fact that the builder pattern implementation is in the `PassFailJFrame.Builder` class. > > In the latter case, I can change the `builder()` method to return another class. As long as that other class has the same set of methods, like `instructions` and title`, which return the same object, nothing breaks. Encapsulation. > > With this change, all the existing tests continue to run. Those tests which failed to compile because of a breaking API change are updated in this PR. Never mind. I wasn't reading it properly. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18206#discussion_r1520513514 From prr at openjdk.org Mon Mar 11 23:07:25 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 11 Mar 2024 23:07:25 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program Message-ID: Converts the manual applet test in the files .. SpanishDiacriticsTest/SpanishDiacriticsTest.html SpanishDiacriticsTest/SpanishDiacriticsTest.java .. to a main program using PassFailJFrame Added requires windows since it seems very windows-specific. I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway ------------- Commit messages: - 8327856 Changes: https://git.openjdk.org/jdk/pull/18208/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18208&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327856 Stats: 190 lines in 3 files changed: 93 ins; 97 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18208.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18208/head:pull/18208 PR: https://git.openjdk.org/jdk/pull/18208 From azvegint at openjdk.org Mon Mar 11 23:18:28 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 11 Mar 2024 23:18:28 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v2] In-Reply-To: References: Message-ID: <8BxI9OhD7drWcWGzTy22JA6F30UTV-XoyAHaTm-X72s=.d8c57f42-050d-44b8-b6fd-5eca399c8f3a@github.com> > The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. > > We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. > The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. > > The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: better chaining ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18203/files - new: https://git.openjdk.org/jdk/pull/18203/files/04f14aef..b43ce26b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18203&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18203&range=00-01 Stats: 5 lines in 1 file changed: 0 ins; 2 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18203.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18203/head:pull/18203 PR: https://git.openjdk.org/jdk/pull/18203 From azvegint at openjdk.org Mon Mar 11 23:18:28 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 11 Mar 2024 23:18:28 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v2] In-Reply-To: <3V8ICRRvev5oxT7k8QDL2ZoeTTi-hCYNTWlJIcvsdo0=.833d3917-a5da-416a-bf22-473def7cff1c@github.com> References: <3V8ICRRvev5oxT7k8QDL2ZoeTTi-hCYNTWlJIcvsdo0=.833d3917-a5da-416a-bf22-473def7cff1c@github.com> Message-ID: On Mon, 11 Mar 2024 21:24:51 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> better chaining > > test/jdk/ProblemList.txt line 799: > >> 797: java/awt/TrayIcon/DragEventSource/DragEventSource.java 8252242 macosx-all >> 798: java/awt/FileDialog/DefaultFocusOwner/DefaultFocusOwner.java 7187728 macosx-all,linux-all >> 799: java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest.html 7187728 macosx-all,linux-all > > What about [JDK-7187728](https://bugs.openjdk.org/browse/JDK-7187728)? It's still unresolved. It is still open because there is another non-applet test `java/awt/FileDialog/DefaultFocusOwner/DefaultFocusOwner.java` that needs attention. Since that test sprint is regarding the elimination of applet tests, it is out of scope. Hence the new bug id for this test. [JDK-8327835](https://bugs.openjdk.org/browse/JDK-8327835) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18203#discussion_r1520531854 From azvegint at openjdk.org Mon Mar 11 23:28:30 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 11 Mar 2024 23:28:30 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: > The test is converted to main. > Tested on Linux, Macos and Windows. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18205/files - new: https://git.openjdk.org/jdk/pull/18205/files/d33c3178..a9f8e21b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18205&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18205&range=00-01 Stats: 20 lines in 1 file changed: 0 ins; 8 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/18205.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18205/head:pull/18205 PR: https://git.openjdk.org/jdk/pull/18205 From azvegint at openjdk.org Mon Mar 11 23:30:14 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 11 Mar 2024 23:30:14 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 21:29:14 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> review comments > > test/jdk/java/awt/FileDialog/MultipleMode/MultipleMode.java line 1: > >> 1: /* > > Do we move test files when modifying? I think this is a good time to do it, during such a big refactory. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1520541258 From achung at openjdk.org Tue Mar 12 00:02:13 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 12 Mar 2024 00:02:13 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests 1 Message-ID: Removing applet usage from manual JColorChooser tests ------------- Commit messages: - delete html - init commit Changes: https://git.openjdk.org/jdk/pull/18209/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327857 Stats: 182 lines in 4 files changed: 40 ins; 101 del; 41 mod Patch: https://git.openjdk.org/jdk/pull/18209.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18209/head:pull/18209 PR: https://git.openjdk.org/jdk/pull/18209 From achung at openjdk.org Tue Mar 12 00:30:09 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 12 Mar 2024 00:30:09 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 Message-ID: Removing applet usage from manual JColorChooser tests ------------- Commit messages: - init commit Changes: https://git.openjdk.org/jdk/pull/18210/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327859 Stats: 104 lines in 2 files changed: 17 ins; 57 del; 30 mod Patch: https://git.openjdk.org/jdk/pull/18210.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18210/head:pull/18210 PR: https://git.openjdk.org/jdk/pull/18210 From mark.yagnatinsky at barclays.com Fri Mar 8 23:43:54 2024 From: mark.yagnatinsky at barclays.com (mark.yagnatinsky at barclays.com) Date: Fri, 8 Mar 2024 23:43:54 +0000 Subject: how to get find out the keyboard shortcut for the paste action? In-Reply-To: References: <8399c796-17e8-4d78-9916-a55054251420@oracle.com> Message-ID: Turns out that is standardized: https://docs.oracle.com/javase/8/docs/api/constant-values.html#javax.swing.text.DefaultEditorKit.cutAction From: Jeremy Wood Sent: Friday, March 8, 2024 6:40 PM To: Yagnatinsky, Mark : Markets Pre Trade ; alexey.ivanov at oracle.com; client-libs-dev at openjdk.org Subject: Re[2]: how to get find out the keyboard shortcut for the paste action? CAUTION: This email originated from outside our organisation - mickleness at gmail.com Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. Alexey, > Does the input map of JTextArea contain shortcuts for Cut, Copy and Paste? When I call (on my Mac, using openJDK 17) UIManager.getDefaults().get("TextArea.focusInputMap?) ? I get an InputMap with: ?copy-to-clipboard?, ?cut-to-clipboard?, and ?paste-from-clipboard?. The code I tested against is: InputMap inputMap = (InputMap) UIManager.getDefaults().get("TextArea.focusInputMap"); Map> map = new TreeMap<>(); for (KeyStroke keyStroke : inputMap.keys()) { Object key = inputMap.get(keyStroke); Collection value = map.get(key); if (value == null) { value = new HashSet(); map.put(key, value); } value.add(keyStroke); } for (Map.Entry> e : map.entrySet()) { System.out.println(e); } Previous tests showed the same naming convention on Windows for JTextFields; I don?t know how standardized that naming convention is across all platforms / L&F?s. - Jeremy ------ Original Message ------ From mark.yagnatinsky at barclays.com To alexey.ivanov at oracle.com; mickleness at gmail.com; client-libs-dev at openjdk.org Date 3/5/24, 11:48:48?AM Subject RE: how to get find out the keyboard shortcut for the paste action? 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 >; mickleness at gmail.com; client-libs-dev at openjdk.org Subject: Re: how to get find out the keyboard shortcut for the paste action? CAUTION: This email originated from outside our organisation - alexey.ivanov at oracle.com Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. 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 ? usually have the same shortcuts across all languages and OS, although macOS uses Cmd instead of Ctrl. However, the shortcut for Redo is not as standard, Ctrl+Shift+Z and Ctrl+Y are used, both could be mapped at the same time. I wonder what is the shortcut for Undo in German versions since German keyboard layout has Z and Y keys swapped. Does anyone know? So, the shortcuts used in an application are controlled by the application and the shortcuts can be localised. For this reason, the shortcuts are usually ?hardcoded?. @Jeremy Does the input map of JTextArea contain shortcuts for Cut, Copy and Paste? On 2024-03-04 20:42, mark.yagnatinsky at barclays.com wrote: Thanks! I don?t have a particularly deep motivation here, other than curiosity. If you?re wondering how my curiosity got piqued initially, it was something like this: A while ago, someone at work was adding copy/paste support to some component that didn?t have it. I noticed that they ?hardcoded? the shortcut ?ctrl C?. And I thought to myself: Swing already ?knows? that this is the right keyboard shortcut, in the sense that all components that support copy/paste ?out of the box? use it. It would be nice if there was some way to ASK it to tell me what it ?knows?. *From:* Jeremy Wood > *Sent:* Sunday, March 3, 2024 11:30 PM *To:* Yagnatinsky, Mark : Markets Pre Trade >; client-libs-dev at openjdk.org *Subject:* Re[2]: how to get find out the keyboard shortcut for the paste action? CAUTION: This email originated from outside our organisation - mickleness at gmail.com Do not click on links, open attachments, or respond unless you recognize the sender and can validate the content is safe. > But now I have a new question? > Is there any way to get the ?usual? letter for a ?common? operation? Hmm. Good question. Not that I know of. > Again, one could create a scratch text area and grovel through its input map, but that seems hacky. I agree sifting through the L&F seems hacky. I don?t think I understand exactly what you?re trying to implement here. If you give me a more concrete example: maybe I (or someone on this list) can offer a more concrete suggestion? I?ll add some context in case this speaks to your question. By default Swing gets this information in places like BasicTextUI#getInputMap(), which calls: InputMap shared= (InputMap)DefaultLookup./get/(editor, this, getPropertyPrefix() + ".focusInputMap?); The following works on my Mac & Windows machine (I think using JDK 19), but I wouldn?t be surprised if it fails in other platforms / L&F?s. It feels brittle, but it might (?) have potential: private KeyStroke getCopyKeyStroke() { InputMap inputMap = (InputMap) UIManager.getDefaults().get("TextField.focusInputMap"); for (KeyStroke keyStroke : inputMap.keys()) { Object action = inputMap.get(keyStroke); if ("copy-to-clipboard".equals(action)) { return keyStroke; } } /// this will show all the default keystrokes // System.out.println(Arrays.asList(inputMap.allKeys())); /return null; } Regards, - Jeremy ------ Original Message ------ From mark.yagnatinsky at barclays.com To mickleness at gmail.com; client-libs-dev at openjdk.org Date 3/3/24, 6:00:46?PM Subject RE: how to get find out the keyboard shortcut for the paste action? Thanks for the response! I didn?t expect to get one at this point J It does indeed answer my question! (Though you didn?t quite get the name right: there?s no Ex at the end? I take it you?ve done some Windows programming at some point) But now I have a new question? Is there any way to get the ?usual? letter for a ?common? operation? For instance, lots of programs support copy and paste. Is there a way to ask Java ?what is the standard letter for paste? and get back ?V?? Again, one could create a scratch text area and grovel through its input map, but that seems hacky. -- Regards, Alexey This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ This message is for information purposes only. It is not a recommendation, advice, offer or solicitation to buy or sell a product or service, nor an official confirmation of any transaction. It is directed at persons who are professionals and is intended for the recipient(s) only. It is not directed at retail customers. This message is subject to the terms at: https://www.ib.barclays/disclosures/web-and-email-disclaimer.html. For important disclosures, please see: https://www.ib.barclays/disclosures/sales-and-trading-disclaimer.html regarding marketing commentary from Barclays Sales and/or Trading desks, who are active market participants; https://www.ib.barclays/disclosures/barclays-global-markets-disclosures.html regarding our standard terms for Barclays Investment Bank where we trade with you in principal-to-principal wholesale markets transactions; and in respect to Barclays Research, including disclosures relating to specific issuers, see: http://publicresearch.barclays.com. __________________________________________________________________________________ If you are incorporated or operating in Australia, read these important disclosures: https://www.ib.barclays/disclosures/important-disclosures-asia-pacific.html. __________________________________________________________________________________ For more details about how we use personal information, see our privacy notice: https://www.ib.barclays/disclosures/personal-information-use.html. __________________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From achung at openjdk.org Tue Mar 12 00:37:37 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 12 Mar 2024 00:37:37 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v2] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: fix pfjframe builder styling and jtreg manual tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18210/files - new: https://git.openjdk.org/jdk/pull/18210/files/a46995a4..b720007d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=00-01 Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18210.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18210/head:pull/18210 PR: https://git.openjdk.org/jdk/pull/18210 From achung at openjdk.org Tue Mar 12 00:39:26 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 12 Mar 2024 00:39:26 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v2] In-Reply-To: References: Message-ID: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with five additional commits since the last revision: - fix pfjframe builder styling and jtreg manual tag - revert spacing - revert files - restore file - revert file ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18209/files - new: https://git.openjdk.org/jdk/pull/18209/files/83a839fe..0c45d1cc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=00-01 Stats: 107 lines in 3 files changed: 58 ins; 18 del; 31 mod Patch: https://git.openjdk.org/jdk/pull/18209.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18209/head:pull/18209 PR: https://git.openjdk.org/jdk/pull/18209 From prr at openjdk.org Tue Mar 12 00:39:27 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 00:39:27 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v2] In-Reply-To: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> References: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> Message-ID: <5Z5WUM8Xc3vKv-RLWhfOXzIWhdWTFGPap6iMVbgVzag=.3c52f6aa-e9fc-4ae7-85b8-c093e4eeaecc@github.com> On Tue, 12 Mar 2024 00:35:24 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with five additional commits since the last revision: > > - fix pfjframe builder styling and jtreg manual tag > - revert spacing > - revert files > - restore file > - revert file test/jdk/javax/swing/JColorChooser/Test4222508.java line 35: > 33: * @build PassFailJFrame > 34: * @summary Tests the color chooser disabling > 35: * @run main Test4222508 This needs to specify the test is manual. test/jdk/javax/swing/JColorChooser/Test4222508.java line 47: > 45: .testTimeOut(10) > 46: .rows(5) > 47: .columns(40) A style thing but since rows + columns apply to the instruction window I think they should go right after .instructions test/jdk/javax/swing/JColorChooser/Test4319113.java line 47: > 45: * @build PassFailJFrame > 46: * @summary Tests the open JColorChooser behavior on LaF change. > 47: * @run main Test4319113 This needs to specify the test is manual. test/jdk/javax/swing/JColorChooser/Test4319113.java line 58: > 56: .testTimeOut(10) > 57: .rows(5) > 58: .columns(40) same style comment ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1520604494 PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1520606750 PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1520605090 PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1520610670 From achung at openjdk.org Tue Mar 12 00:39:27 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 12 Mar 2024 00:39:27 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v2] In-Reply-To: <5Z5WUM8Xc3vKv-RLWhfOXzIWhdWTFGPap6iMVbgVzag=.3c52f6aa-e9fc-4ae7-85b8-c093e4eeaecc@github.com> References: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> <5Z5WUM8Xc3vKv-RLWhfOXzIWhdWTFGPap6iMVbgVzag=.3c52f6aa-e9fc-4ae7-85b8-c093e4eeaecc@github.com> Message-ID: On Tue, 12 Mar 2024 00:24:11 GMT, Phil Race wrote: >> Alisen Chung has updated the pull request incrementally with five additional commits since the last revision: >> >> - fix pfjframe builder styling and jtreg manual tag >> - revert spacing >> - revert files >> - restore file >> - revert file > > test/jdk/javax/swing/JColorChooser/Test4319113.java line 47: > >> 45: * @build PassFailJFrame >> 46: * @summary Tests the open JColorChooser behavior on LaF change. >> 47: * @run main Test4319113 > > This needs to specify the test is manual. i've separated the two tests into two separate PRs ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1520618967 From psadhukhan at openjdk.org Tue Mar 12 02:47:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 02:47:25 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: - Review comment update - Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18182/files - new: https://git.openjdk.org/jdk/pull/18182/files/3c0f1be9..7c2ce443 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18182&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18182&range=00-01 Stats: 5 lines in 1 file changed: 1 ins; 2 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18182.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18182/head:pull/18182 PR: https://git.openjdk.org/jdk/pull/18182 From psadhukhan at openjdk.org Tue Mar 12 02:47:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 02:47:25 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 14:27:09 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: >> >> - Review comment update >> - Review comment update > > test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 70: > >> 68: PassFailJFrame.addTestWindow(frame); >> 69: PassFailJFrame.positionTestWindow(frame, PassFailJFrame.Position.TOP_LEFT_CORNER); >> 70: frame.pack(); > > You should call `pack()` before positioning the frame, otherwise the frame won't be positioned correctly. Updated... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1520763715 From psadhukhan at openjdk.org Tue Mar 12 02:49:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 02:49:25 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18180/files - new: https://git.openjdk.org/jdk/pull/18180/files/0c8ae3a0..71d387b5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=01-02 Stats: 38 lines in 1 file changed: 1 ins; 12 del; 25 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From psadhukhan at openjdk.org Tue Mar 12 02:49:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 02:49:25 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 14:52:04 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> typo > > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 78: > >> 76: >> 77: public static void main(String[] args) throws Exception { >> 78: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() > > Please use the `builder` helper method instead of `new`. Updated... > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 86: > >> 84: .build(); >> 85: >> 86: SwingUtilities.invokeAndWait(() -> { > > I suggest using the `testUI` method of the builder which accepts a lambda expression that returns a frame. Calling the passed method reference or lambda expression on EDT, registering the frame with `PassFailJFrame` and its positioning is handled automatically. ok..updated... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1520765177 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1520765007 From psadhukhan at openjdk.org Tue Mar 12 02:51:48 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 02:51:48 GMT Subject: RFR: 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: - Review comment update - Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18186/files - new: https://git.openjdk.org/jdk/pull/18186/files/ad5564c4..14679ff1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18186&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18186&range=00-01 Stats: 28 lines in 1 file changed: 4 ins; 5 del; 19 mod Patch: https://git.openjdk.org/jdk/pull/18186.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18186/head:pull/18186 PR: https://git.openjdk.org/jdk/pull/18186 From psadhukhan at openjdk.org Tue Mar 12 02:51:48 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 02:51:48 GMT Subject: RFR: 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main [v2] In-Reply-To: References: Message-ID: <1VpDe74cAPS6coz2SknpH-iO7K1rEb3hXwXvBJdjT04=.741b2e0c-05cc-4db2-b370-59982f4c82b2@github.com> On Mon, 11 Mar 2024 14:52:57 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: >> >> - Review comment update >> - Review comment update > > test/jdk/javax/swing/JInternalFrame/6726866/bug6726866.java line 51: > >> 49: >> 50: public static void main(String[] args) throws Exception { >> 51: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() > > Please use the `builder` helper method instead of using `new` explicitly. updated... > test/jdk/javax/swing/JInternalFrame/6726866/bug6726866.java line 54: > >> 52: .title("JInternalFrame Instructions") >> 53: .instructions(instructionsText) >> 54: .testTimeOut(5) > > The default timeout can be omitted. ok ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18186#discussion_r1520766343 PR Review Comment: https://git.openjdk.org/jdk/pull/18186#discussion_r1520766184 From tr at openjdk.org Tue Mar 12 03:21:12 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 03:21:12 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: References: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> Message-ID: On Mon, 11 Mar 2024 14:59:43 GMT, Alexey Ivanov wrote: >> Tejesh R has updated the pull request incrementally with three additional commits since the last revision: >> >> - Review updates >> - Review updates >> - Updates > > test/jdk/javax/swing/border/Test4129681.java line 41: > >> 39: >> 40: public class Test4129681 { >> 41: private static JLabel label; > > The `label` does not need to be global, it can be confined to `init`. Its been used inside `itemListener`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1520795726 From tr at openjdk.org Tue Mar 12 03:29:26 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 03:29:26 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18189/files - new: https://git.openjdk.org/jdk/pull/18189/files/d76714e8..e77cb0cc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=01-02 Stats: 15 lines in 1 file changed: 5 ins; 2 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18189.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18189/head:pull/18189 PR: https://git.openjdk.org/jdk/pull/18189 From tr at openjdk.org Tue Mar 12 03:48:37 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 03:48:37 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates - splitUI ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18197/files - new: https://git.openjdk.org/jdk/pull/18197/files/c0c109a6..458b55fc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=00-01 Stats: 28 lines in 1 file changed: 5 ins; 8 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/18197.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18197/head:pull/18197 PR: https://git.openjdk.org/jdk/pull/18197 From tr at openjdk.org Tue Mar 12 03:48:37 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 03:48:37 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v2] In-Reply-To: <9KzJQOh_Bn-wPhoA2_vMhHfAjXxNALG6KkJHAQE0NMg=.1d9c6cc5-597c-4ad5-8d51-99dd92621a9f@github.com> References: <9KzJQOh_Bn-wPhoA2_vMhHfAjXxNALG6KkJHAQE0NMg=.1d9c6cc5-597c-4ad5-8d51-99dd92621a9f@github.com> Message-ID: On Mon, 11 Mar 2024 19:30:15 GMT, Alexey Ivanov wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates - splitUI > > test/jdk/javax/swing/border/Test4243289.java line 77: > >> 75: frame.setSize(300, 300); >> 76: PassFailJFrame.addTestWindow(frame); >> 77: PassFailJFrame.positionTestWindow(frame, PassFailJFrame.Position.TOP_LEFT_CORNER); > > Any particular reason why top left corner is used instead of centered-positioning? Nothing particular, anyhow I have used spiltUI now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1520809453 From tr at openjdk.org Tue Mar 12 03:54:12 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 03:54:12 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 02:47:25 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: > > - Review comment update > - Review comment update test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 53: > 51: .instructions(INSTRUCTIONS) > 52: .rows(10) > 53: .columns(35) I guess testUI and awaitAndCheck can be used here only. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1520812289 From tr at openjdk.org Tue Mar 12 05:21:19 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 05:21:19 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 23:28:30 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments test/jdk/java/awt/FileDialog/MultipleMode.java line 63: > 61: .instructions(INSTRUCTIONS) > 62: .rows(15) > 63: .columns(40) column size can be reduced based on the test instructions. test/jdk/java/awt/FileDialog/MultipleMode.java line 101: > 99: frame.add(sysout, BorderLayout.CENTER); > 100: > 101: frame.pack(); Frame size is too big and going out of the screen, might fix a size here. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1520865593 PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1520864787 From tr at openjdk.org Tue Mar 12 05:26:14 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 05:26:14 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 00:37:37 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > fix pfjframe builder styling and jtreg manual tag test/jdk/javax/swing/JColorChooser/Test4319113.java line 53: > 51: PassFailJFrame.builder() > 52: .title("Test4319113") > 53: .instructions("Choose a LaF using the dropdown. Click on the Show JColorChooser button.\n" + I feel its better to use a separate String variable for Test instructions and then use it here. test/jdk/javax/swing/JColorChooser/Test4319113.java line 65: > 63: > 64: private static JFrame test() { > 65: JFrame frame = new JFrame("Test4319113"); Title can be something like "JColorChooser behavior test". ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18210#discussion_r1520870884 PR Review Comment: https://git.openjdk.org/jdk/pull/18210#discussion_r1520869172 From tr at openjdk.org Tue Mar 12 05:29:13 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 05:29:13 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 00:37:37 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > fix pfjframe builder styling and jtreg manual tag test/jdk/javax/swing/JColorChooser/Test4319113.java line 44: > 42: * @test > 43: * @bug 4319113 > 44: * @library /test/jdk/java/awt/regtesthelpers /test/lib Any reason why /test/lib is used here? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18210#discussion_r1520872616 From abhiscxk at openjdk.org Tue Mar 12 05:40:14 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 12 Mar 2024 05:40:14 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Whitespace fix - Applet test converted to manual main based Changes: https://git.openjdk.org/jdk/pull/18212/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327872 Stats: 369 lines in 2 files changed: 0 ins; 331 del; 38 mod Patch: https://git.openjdk.org/jdk/pull/18212.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18212/head:pull/18212 PR: https://git.openjdk.org/jdk/pull/18212 From tr at openjdk.org Tue Mar 12 06:07:31 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 06:07:31 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main Message-ID: Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18213/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327873 Stats: 79 lines in 2 files changed: 33 ins; 41 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18213.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18213/head:pull/18213 PR: https://git.openjdk.org/jdk/pull/18213 From abhiscxk at openjdk.org Tue Mar 12 06:48:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 12 Mar 2024 06:48:20 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main Message-ID: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Applet based test converted to main manual Changes: https://git.openjdk.org/jdk/pull/18215/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18215&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327874 Stats: 79 lines in 2 files changed: 18 ins; 41 del; 20 mod Patch: https://git.openjdk.org/jdk/pull/18215.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18215/head:pull/18215 PR: https://git.openjdk.org/jdk/pull/18215 From tr at openjdk.org Tue Mar 12 07:00:35 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 07:00:35 GMT Subject: RFR: 8327876: Convert javax/swing/border/Test4252164.java applet test to main Message-ID: Convert javax/swing/border/Test4252164.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18216/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18216&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327876 Stats: 81 lines in 2 files changed: 14 ins; 44 del; 23 mod Patch: https://git.openjdk.org/jdk/pull/18216.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18216/head:pull/18216 PR: https://git.openjdk.org/jdk/pull/18216 From tr at openjdk.org Tue Mar 12 07:40:21 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 07:40:21 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main Message-ID: Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18217/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18217&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327879 Stats: 72 lines in 2 files changed: 26 ins; 35 del; 11 mod Patch: https://git.openjdk.org/jdk/pull/18217.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18217/head:pull/18217 PR: https://git.openjdk.org/jdk/pull/18217 From mkartashev at openjdk.org Tue Mar 12 08:18:20 2024 From: mkartashev at openjdk.org (Maxim Kartashev) Date: Tue, 12 Mar 2024 08:18:20 GMT Subject: Integrated: 8326497: Window.toFront() fails for iconified windows on Linux In-Reply-To: References: Message-ID: On Fri, 23 Feb 2024 15:58:18 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 sending the message. > > The test verifies that the fix works for maximized and undecorated frames as well out of abundance of caution; they do not represent a special case from the `toFront()` standpoint. > > References > * `_NET_ACTIVE_WINDOW`: https://specifications.freedesktop.org/wm-spec/1.3/ar01s03.html > * [Inter-Client Communication Conventions Manual, 4.1.4. Changing Window State](https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.4) This pull request has now been integrated. Changeset: 139681a7 Author: Maxim Kartashev Committer: Alexey Ushakov URL: https://git.openjdk.org/jdk/commit/139681a7eb7a0a1207f66e72095766983e7b717b Stats: 124 lines in 3 files changed: 122 ins; 0 del; 2 mod 8326497: Window.toFront() fails for iconified windows on Linux Reviewed-by: tr, prr ------------- PR: https://git.openjdk.org/jdk/pull/17985 From aivanov at openjdk.org Tue Mar 12 08:38:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 08:38:22 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java Message-ID: This is to simplify `TrayIconScalingTest.java`. 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. 2. Move creating tray icon to the top. 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. 4. Ensure tray is not null before removing the icon. 5. Pass AWTException as the cause in the wrapped exception. Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. ------------- Depends on: https://git.openjdk.org/jdk/pull/18206 Commit messages: - Pass AWTException as the cause in the wrapped exception - Re-arrange the code in TrayIconScalingTest.java Changes: https://git.openjdk.org/jdk/pull/18224/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18224&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327924 Stats: 27 lines in 1 file changed: 10 ins; 11 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/18224.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18224/head:pull/18224 PR: https://git.openjdk.org/jdk/pull/18224 From kizune at openjdk.org Tue Mar 12 08:49:14 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 08:49:14 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:46:23 GMT, Alexey Ivanov wrote: >> Clean up five more tests. >> >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java >> test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java line 47: > >> 45: } catch (PropertyVetoException ex) { >> 46: ex.printStackTrace(); >> 47: } > > Shouldn't the test fail if an unexpected exception is thrown? It is not unexpected but instead of failing i think test should just pass. Which will happen because the internal frame is not minimized so the test condition is not recreated. > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java line 59: > >> 57: throw new RuntimeException("Test interrupted by " >> 58: + e.getLocalizedMessage()); >> 59: } > > You can add `throws Exception` clause to the `main` method and remove this `catch` block. Ok. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521066921 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521067257 From aivanov at openjdk.org Tue Mar 12 08:51:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 08:51:13 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 03:48:37 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates - splitUI Changes requested by aivanov (Reviewer). test/jdk/javax/swing/border/Test4243289.java line 44: > 42: public static void main(String[] args) throws Exception { > 43: String testInstructions = """ > 44: If TiltedBorder with title "Panel Title" is overstriken with Suggestion: If TitledBorder with title "Panel Title" is overstruck with Typo in the border class name; _?overstriken?_ is a rare form, more standard form is _?overstruck?_, see Wiktionary [entry for ?overstrike?](https://en.wiktionary.org/wiki/overstrike#Verb), other dictionaries agree. test/jdk/javax/swing/border/Test4243289.java line 59: > 57: > 58: public static JComponent init() { > 59: Font font = new Font("Dialog", Font.PLAIN, 12); // NON-NLS: the font name Suggestion: Font font = new Font(Font.DIALOG, Font.PLAIN, 12); I suggest using the constant. The test may have been written before this constant became available. test/jdk/javax/swing/border/Test4243289.java line 74: > 72: main.add(Box.createVerticalGlue()); > 73: main.add(panel); > 74: main.add(Box.createVerticalGlue()); Suggestion: main.add(panel); The glue isn't needed here, the panel handles resizing well. ------------- PR Review: https://git.openjdk.org/jdk/pull/18197#pullrequestreview-1930429030 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1521066252 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1521068946 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1521067546 From aivanov at openjdk.org Tue Mar 12 09:03:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 09:03:16 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: References: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> Message-ID: On Tue, 12 Mar 2024 03:18:15 GMT, Tejesh R wrote: >> test/jdk/javax/swing/border/Test4129681.java line 41: >> >>> 39: >>> 40: public class Test4129681 { >>> 41: private static JLabel label; >> >> The `label` does not need to be global, it can be confined to `init`. > > Its been used inside `itemListener`. I guess it was needed but now it's not; so it's better to clean this up. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1521088159 From kizune at openjdk.org Tue Mar 12 09:05:17 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 09:05:17 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:51:47 GMT, Alexey Ivanov wrote: >> Clean up five more tests. >> >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java >> test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java > > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 69: > >> 67: keyTyped = true; >> 68: bug4773378.this.notifyAll(); >> 69: } > > A `CountDownLatch` would work great in this case. > > And `keyTyped` is a confusing name for a flag which gets to `true` when the internal frame is activated. Renamed as frameActivated > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 85: > >> 83: public void performTest() { >> 84: try { >> 85: jif.setSelected(true); > > This should be called via `SwingUtilities.invokeLater` on EDT. Fixed > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 102: > >> 100: } catch (Throwable t) { >> 101: t.printStackTrace(); >> 102: } > > A `Throwable` should fail the test, it must be propagated. Fixed. > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html line 1: > >> 1: > > Can this file be created by the test on the fly? There's no need for a supporting file. > > In #18147, Prasanta handled the same situation. I prefer to keep things simpler and not to create an additional possible point of failure. The supporting html file is self-explanatory and, if needed, can be changed outside of fixing the test itself. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521088031 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521088346 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521088621 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521092628 From aivanov at openjdk.org Tue Mar 12 09:12:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 09:12:16 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 03:29:26 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Changes requested by aivanov (Reviewer). test/jdk/javax/swing/border/Test4129681.java line 61: > 59: > 60: public static JComponent init() { > 61: JCheckBox check = new JCheckBox("Enable/Disable"); Suggestion: JLable label = new JLabel("message"); JCheckBox check = new JCheckBox("Enable/Disable"); And then both are local variables which you can use in lambda expressions. test/jdk/javax/swing/border/Test4129681.java line 75: > 73: main.add(Box.createVerticalStrut(4)); > 74: main.add(label); > 75: main.add(Box.createVerticalGlue()); A `JPanel` with `BorderLayout` works better here, you can fill the area with the `JLabel`: Suggestion: JPanel main = new JPanel(new BorderLayout()); main.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8)); main.add(check, BorderLayout.NORTH); main.add(label, BorderLayout.CENTER); ------------- PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1930479454 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1521101975 PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1521099890 From kizune at openjdk.org Tue Mar 12 09:38:15 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 09:38:15 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:41:47 GMT, Alexander Zuev wrote: > Clean up five more tests. > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java > test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java I would prefer to keep the directory structure - it does not make any difference after al and sometimes makes test logs more readable. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18184#issuecomment-1991170522 From kizune at openjdk.org Tue Mar 12 09:38:17 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 09:38:17 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 14:12:33 GMT, Alexey Ivanov wrote: >> Clean up five more tests. >> >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java >> test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java > > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 29: > >> 27: * @summary JEditor pane throws NullPointerException on mouse movement. >> 28: * @library ../../regtesthelpers >> 29: * @build JRobot > > The test doesn't seem to use any of the extended functionality provided by JRobot, so the standard `java.awt.Robot` can be used instead. I do not see any harm in using JRobot, it is a Swing test after all. > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 40: > >> 38: >> 39: public class bug4694598 { >> 40: JFrame frame = null; > > Suggestion: > > JFrame frame; > > `null` is the default value any way. Ok. > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 81: > >> 79: try { >> 80: Thread.sleep(50); >> 81: } catch (InterruptedException ex) {} > > Suggestion: > > jRobo.delay(50); Fixed. > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 93: > >> 91: >> 92: public static void main(String args[]) throws InterruptedException, >> 93: InvocationTargetException { > > Suggestion: > > public static void main(String[] args) throws Exception { > > Java-style array declaration, shortened `throws` clause. Switched the array declaration but i would prefer to keep all the exceptions listed in the main method declaration. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521142437 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521141637 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521139604 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521136603 From aivanov at openjdk.org Tue Mar 12 09:40:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 09:40:15 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v2] In-Reply-To: <8BxI9OhD7drWcWGzTy22JA6F30UTV-XoyAHaTm-X72s=.d8c57f42-050d-44b8-b6fd-5eca399c8f3a@github.com> References: <8BxI9OhD7drWcWGzTy22JA6F30UTV-XoyAHaTm-X72s=.d8c57f42-050d-44b8-b6fd-5eca399c8f3a@github.com> Message-ID: On Mon, 11 Mar 2024 23:18:28 GMT, Alexander Zvegintsev wrote: >> The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. >> >> We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. >> The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. >> >> The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > better chaining Changes requested by aivanov (Reviewer). test/jdk/java/awt/FileDialog/RegexpFilterTest.java line 59: > 57: > 58: public static void main(String[] args) throws Exception { > 59: new PassFailJFrame.Builder() Suggestion: PassFailJFrame.builder() Please, use the helper method `builder()` instead of instantiating the `Builder` class explicitly. ------------- PR Review: https://git.openjdk.org/jdk/pull/18203#pullrequestreview-1930546191 PR Review Comment: https://git.openjdk.org/jdk/pull/18203#discussion_r1521143484 From aivanov at openjdk.org Tue Mar 12 09:44:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 09:44:17 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v2] In-Reply-To: <8BxI9OhD7drWcWGzTy22JA6F30UTV-XoyAHaTm-X72s=.d8c57f42-050d-44b8-b6fd-5eca399c8f3a@github.com> References: <8BxI9OhD7drWcWGzTy22JA6F30UTV-XoyAHaTm-X72s=.d8c57f42-050d-44b8-b6fd-5eca399c8f3a@github.com> Message-ID: On Mon, 11 Mar 2024 23:18:28 GMT, Alexander Zvegintsev wrote: >> The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. >> >> We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. >> The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. >> >> The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > better chaining Changes requested by aivanov (Reviewer). test/jdk/java/awt/FileDialog/RegexpFilterTest.java line 65: > 63: JButton show = new JButton("show"); > 64: show.addActionListener(e -> > 65: new FileDialog(new Frame()).setVisible(true)); Suggestion: new FileDialog((Frame) null).setVisible(true)); There's no meaningful owner, `null` should do. Alternatively, you can find the top level owner of the `show` button, but I don't think it's worth the effort. ------------- PR Review: https://git.openjdk.org/jdk/pull/18203#pullrequestreview-1930557050 PR Review Comment: https://git.openjdk.org/jdk/pull/18203#discussion_r1521150843 From tr at openjdk.org Tue Mar 12 09:44:20 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 09:44:20 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v2] In-Reply-To: References: <4X4wbMQLitT4ayAenjHb1g11517tv6pcTceWQBDdzlo=.a08d04f8-d49f-4b89-8d8e-7538d105a53f@github.com> Message-ID: On Tue, 12 Mar 2024 09:00:23 GMT, Alexey Ivanov wrote: >> Its been used inside `itemListener`. > > I guess it was needed but now it's not; so it's better to clean this up. Yeah, will do it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1521152598 From tr at openjdk.org Tue Mar 12 09:47:37 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 09:47:37 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18189/files - new: https://git.openjdk.org/jdk/pull/18189/files/e77cb0cc..bc78d143 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=02-03 Stats: 8 lines in 1 file changed: 1 ins; 7 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18189.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18189/head:pull/18189 PR: https://git.openjdk.org/jdk/pull/18189 From aivanov at openjdk.org Tue Mar 12 09:51:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 09:51:15 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 05:17:31 GMT, Tejesh R wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> review comments > > test/jdk/java/awt/FileDialog/MultipleMode.java line 101: > >> 99: frame.add(sysout, BorderLayout.CENTER); >> 100: >> 101: frame.pack(); > > Frame size is too big and going out of the screen, might fix a size here. It doesn't fit on the screen of my VM either. One way to resolve this problem is to add .position(PassFailJFrame.Position.TOP_LEFT_CORNER) to `PassFailJFrame` builder as there's no easy way to move the instruction frame to the left so that both frames fit on the screen. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521162323 From tr at openjdk.org Tue Mar 12 09:53:43 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 09:53:43 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v3] In-Reply-To: References: Message-ID: <5j-kUmJAGV9tEZBTNWCCUAYbQCdYbkS2aT4smyVjqe4=.61f56bc7-0389-4182-9b5a-6d06b676cdea@github.com> > Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18197/files - new: https://git.openjdk.org/jdk/pull/18197/files/458b55fc..9077a872 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=01-02 Stats: 5 lines in 1 file changed: 0 ins; 2 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18197.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18197/head:pull/18197 PR: https://git.openjdk.org/jdk/pull/18197 From psadhukhan at openjdk.org Tue Mar 12 09:55:22 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 09:55:22 GMT Subject: Integrated: 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class In-Reply-To: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> References: <8VnEO3HS6wKX45a3tokydw_aTorFic1acaSiIqm4-7A=.58457c31-1969-47d9-9c1e-365bba1b7174@github.com> Message-ID: On Thu, 7 Mar 2024 03:16:20 GMT, Prasanta Sadhukhan wrote: > OPensource BoxView test This pull request has now been integrated. Changeset: 013aff87 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/013aff87ce7ece5cd4676aa452557ea3f222cede Stats: 135 lines in 1 file changed: 135 ins; 0 del; 0 mod 8326606: Test javax/swing/text/BoxView/6494356/bug6494356.java performs a synchronization on a value based class Reviewed-by: tr, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18147 From tr at openjdk.org Tue Mar 12 09:56:44 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 09:56:44 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18217/files - new: https://git.openjdk.org/jdk/pull/18217/files/4490174c..689c9091 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18217&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18217&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18217.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18217/head:pull/18217 PR: https://git.openjdk.org/jdk/pull/18217 From aivanov at openjdk.org Tue Mar 12 09:59:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 09:59:14 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 23:28:30 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments Looks good to me. Yet I left a couple of suggestions. test/jdk/java/awt/FileDialog/MultipleMode.java line 74: > 72: sysout.setEditable(false); > 73: > 74: final Checkbox mode = new Checkbox("multiple", true); Does it make sense to leave the checkbox unselected, provided the instructions start with unselect the _Multiple_ checkbox (turn off)? test/jdk/java/awt/FileDialog/MultipleMode.java line 90: > 88: for (File f : d.getFiles()) { > 89: sysout.append(" %s\n".formatted(f)); > 90: } If you like you can replace the for-loop with functional-style stream: Suggestion: sysout.append("FILES:\n"); sysout.append(Arrays.stream(d.getFiles()) .map(" %s\n"::formatted) .collect(Collectors.joining())); ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18205#pullrequestreview-1930590396 PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521173947 PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521172060 From tr at openjdk.org Tue Mar 12 10:01:25 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:01:25 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18213/files - new: https://git.openjdk.org/jdk/pull/18213/files/8d7c3236..22f73583 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=00-01 Stats: 4 lines in 1 file changed: 0 ins; 2 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18213.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18213/head:pull/18213 PR: https://git.openjdk.org/jdk/pull/18213 From tr at openjdk.org Tue Mar 12 10:06:19 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:06:19 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 05:33:40 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JToolTip/4644444/bug4644444.java line 46: > 44: > 45: private static JFrame frame; > 46: private static JButton button; Both frame and button can be inside `creatUI()`. If you can use `splitUI` instead of `testUI` that would be even better. test/jdk/javax/swing/JToolTip/4644444/bug4644444.java line 64: > 62: frame.getContentPane().add(button); > 63: frame.setSize(200, 80); > 64: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); `frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); `Not required. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18212#discussion_r1521184513 PR Review Comment: https://git.openjdk.org/jdk/pull/18212#discussion_r1521185597 From tr at openjdk.org Tue Mar 12 10:08:13 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:08:13 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main In-Reply-To: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: On Tue, 12 Mar 2024 06:43:36 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JTree/4314199/bug4314199.java line 53: > 51: press 'Pass' else 'Fail'. """; > 52: > 53: private static JFrame frame; Frame can be moved inside creatUI(). If you can use splitUI instead of testUI that would be even better. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18215#discussion_r1521187565 From dmarkov at openjdk.org Tue Mar 12 10:10:13 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Tue, 12 Mar 2024 10:10:13 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 23:02:53 GMT, Phil Race wrote: > Converts the manual applet test in the files .. > SpanishDiacriticsTest/SpanishDiacriticsTest.html > SpanishDiacriticsTest/SpanishDiacriticsTest.java > .. to a main program using PassFailJFrame > > Added requires windows since it seems very windows-specific. > > I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway Marked as reviewed by dmarkov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18208#pullrequestreview-1930620808 From aivanov at openjdk.org Tue Mar 12 10:11:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 10:11:15 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 02:47:25 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: > > - Review comment update > - Review comment update Marked as reviewed by aivanov (Reviewer). test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 54: > 52: .rows(10) > 53: .columns(35) > 54: .build(); Suggestion: .position(PassFailJFrame.Position.TOP_LEFT_CORNER) .build(); To move the instruction frame into its final position right away since `build()` shows the instruction UI. Later the instruction frame is moved when you use `PassFailJFrame.positionTestWindow`. ------------- PR Review: https://git.openjdk.org/jdk/pull/18182#pullrequestreview-1930616215 PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1521190975 From aivanov at openjdk.org Tue Mar 12 10:11:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 10:11:16 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 03:51:52 GMT, Tejesh R wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: >> >> - Review comment update >> - Review comment update > > test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 53: > >> 51: .instructions(INSTRUCTIONS) >> 52: .rows(10) >> 53: .columns(35) > > I guess testUI and awaitAndCheck can be used here only. It may, but it wouldn't work well. Prasanta's approach works better. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1521188014 From dmarkov at openjdk.org Tue Mar 12 10:12:21 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Tue, 12 Mar 2024 10:12:21 GMT Subject: Integrated: 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS In-Reply-To: References: Message-ID: On Sun, 3 Mar 2024 09:01:49 GMT, Dmitry Markov wrote: > Updated several tests to avoid potential failure with recent LCMS update and non-LCMS generated profile. This pull request has now been integrated. Changeset: 1f43fa0f Author: Dmitry Markov URL: https://git.openjdk.org/jdk/commit/1f43fa0f8b0f956b41015e0ebc257e15a11ad99b Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod 8326661: sun/java2d/cmm/ColorConvertOp/ColConvTest.java assumes profiles were generated by LCMS Reviewed-by: aivanov, serb ------------- PR: https://git.openjdk.org/jdk/pull/18097 From tr at openjdk.org Tue Mar 12 10:15:15 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:15:15 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 02:47:25 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: > > - Review comment update > - Review comment update test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 42: > 40: public final class FileFilterDescription { > 41: > 42: private static final String INSTRUCTIONS = """ `INSTRUCTIONS ` can be moved inside main. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1521197001 From tr at openjdk.org Tue Mar 12 10:22:15 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:22:15 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: <740m_-_rhTLqYbNfOFhsfqyjK9dNJWLns-CbXGLN5mY=.1e0c06b5-5426-4ec8-a913-7e0e22d30865@github.com> On Tue, 12 Mar 2024 02:49:25 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 68: > 66: > 67: private static JSlider slider; > 68: private static JFrame frame; `frame` Can be moved inside `createUI()`. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 69: > 67: private static JSlider slider; > 68: private static JFrame frame; > 69: private static JTextField tfLink; `tfLink` and `btnGC` can be initialized inside `initialize()` and moved there. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521204448 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521206245 From azvegint at openjdk.org Tue Mar 12 10:22:35 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 10:22:35 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v3] In-Reply-To: References: Message-ID: > The test is converted to main. > Tested on Linux, Macos and Windows. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18205/files - new: https://git.openjdk.org/jdk/pull/18205/files/a9f8e21b..58e3d73a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18205&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18205&range=01-02 Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18205.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18205/head:pull/18205 PR: https://git.openjdk.org/jdk/pull/18205 From azvegint at openjdk.org Tue Mar 12 10:22:35 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 10:22:35 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 05:18:15 GMT, Tejesh R wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> review comments > > test/jdk/java/awt/FileDialog/MultipleMode.java line 63: > >> 61: .instructions(INSTRUCTIONS) >> 62: .rows(15) >> 63: .columns(40) > > column size can be reduced based on the test instructions. The instructions use different default fonts and sizes on each system, if I reduce the columns it will not fit on Linux. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521193766 From azvegint at openjdk.org Tue Mar 12 10:22:36 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 10:22:36 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:55:57 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> review comments > > test/jdk/java/awt/FileDialog/MultipleMode.java line 74: > >> 72: sysout.setEditable(false); >> 73: >> 74: final Checkbox mode = new Checkbox("multiple", true); > > Does it make sense to leave the checkbox unselected, provided the instructions start with unselect the _Multiple_ checkbox (turn off)? It could be, updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521204415 From azvegint at openjdk.org Tue Mar 12 10:22:36 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 10:22:36 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:48:11 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/FileDialog/MultipleMode.java line 101: >> >>> 99: frame.add(sysout, BorderLayout.CENTER); >>> 100: >>> 101: frame.pack(); >> >> Frame size is too big and going out of the screen, might fix a size here. > > It doesn't fit on the screen of my VM either. > > One way to resolve this problem is to add > > .position(PassFailJFrame.Position.TOP_LEFT_CORNER) > > to `PassFailJFrame` builder as there's no easy way to move the instruction frame to the left so that both frames fit on the screen. Updated. What resolution and scale are you using? I've tested at 1920x1080 and default scale 1, and it has plenty of room: ![image](https://github.com/openjdk/jdk/assets/77687766/5ab8035b-7d50-402b-a26d-0cbade786673) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521196731 From azvegint at openjdk.org Tue Mar 12 10:25:28 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 10:25:28 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v3] In-Reply-To: References: Message-ID: > The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. > > We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. > The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. > > The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18203/files - new: https://git.openjdk.org/jdk/pull/18203/files/b43ce26b..e1b9422e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18203&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18203&range=01-02 Stats: 14 lines in 1 file changed: 1 ins; 0 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18203.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18203/head:pull/18203 PR: https://git.openjdk.org/jdk/pull/18203 From tr at openjdk.org Tue Mar 12 10:26:15 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:26:15 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:12:22 GMT, Alexander Zvegintsev wrote: >> It doesn't fit on the screen of my VM either. >> >> One way to resolve this problem is to add >> >> .position(PassFailJFrame.Position.TOP_LEFT_CORNER) >> >> to `PassFailJFrame` builder as there's no easy way to move the instruction frame to the left so that both frames fit on the screen. > > Updated. > > What resolution and scale are you using? > I've tested at 1920x1080 and default scale 1, and it has plenty of room: > ![image](https://github.com/openjdk/jdk/assets/77687766/5ab8035b-7d50-402b-a26d-0cbade786673) Now its fine on my screen. But its not in center, but top. Does it differ for windows and linux? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521211983 From azvegint at openjdk.org Tue Mar 12 10:30:14 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 10:30:14 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:23:39 GMT, Tejesh R wrote: >> Updated. >> >> What resolution and scale are you using? >> I've tested at 1920x1080 and default scale 1, and it has plenty of room: >> ![image](https://github.com/openjdk/jdk/assets/77687766/5ab8035b-7d50-402b-a26d-0cbade786673) > > Now its fine on my screen. But its not in center, but top. Does it differ for windows and linux? It is not in the center, because in the latest commit I added `.position(PassFailJFrame.Position.TOP_LEFT_CORNER)`, as Alexey suggested. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521217782 From psadhukhan at openjdk.org Tue Mar 12 10:41:24 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 10:41:24 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Position frame at TOP_LEFT_CORNER before build ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18182/files - new: https://git.openjdk.org/jdk/pull/18182/files/7c2ce443..f5bae849 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18182&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18182&range=01-02 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18182.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18182/head:pull/18182 PR: https://git.openjdk.org/jdk/pull/18182 From psadhukhan at openjdk.org Tue Mar 12 10:41:24 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 10:41:24 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:08:04 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: >> >> - Review comment update >> - Review comment update > > test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 54: > >> 52: .rows(10) >> 53: .columns(35) >> 54: .build(); > > Suggestion: > > .position(PassFailJFrame.Position.TOP_LEFT_CORNER) > .build(); > > To move the instruction frame into its final position right away since `build()` shows the instruction UI. Later the instruction frame is moved when you use `PassFailJFrame.positionTestWindow`. ok. updated..but it doesn't seem to make any difference.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1521229399 From tr at openjdk.org Tue Mar 12 10:45:18 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 10:45:18 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:22:35 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18205#pullrequestreview-1930693062 From psadhukhan at openjdk.org Tue Mar 12 10:48:17 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 10:48:17 GMT Subject: Integrated: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 08:54:38 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 78beb031 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/78beb031c75d2435c3543a0edc2335b92e115858 Stats: 81 lines in 2 files changed: 23 ins; 50 del; 8 mod 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main Reviewed-by: aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18182 From psadhukhan at openjdk.org Tue Mar 12 10:54:37 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 10:54:37 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v4] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: move frame init in createUI ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18180/files - new: https://git.openjdk.org/jdk/pull/18180/files/71d387b5..abd16b4f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=02-03 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From psadhukhan at openjdk.org Tue Mar 12 10:54:37 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 10:54:37 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: <740m_-_rhTLqYbNfOFhsfqyjK9dNJWLns-CbXGLN5mY=.1e0c06b5-5426-4ec8-a913-7e0e22d30865@github.com> References: <740m_-_rhTLqYbNfOFhsfqyjK9dNJWLns-CbXGLN5mY=.1e0c06b5-5426-4ec8-a913-7e0e22d30865@github.com> Message-ID: On Tue, 12 Mar 2024 10:18:06 GMT, Tejesh R wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment update > > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 68: > >> 66: >> 67: private static JSlider slider; >> 68: private static JFrame frame; > > `frame` Can be moved inside `createUI()`. ok > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 69: > >> 67: private static JSlider slider; >> 68: private static JFrame frame; >> 69: private static JTextField tfLink; > > `tfLink` and `btnGC` can be initialized inside `initialize()` and moved there. As I understood, testUI calls the passed method in EDT so I think it's better to init the swing variables there.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521247916 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521249290 From kizune at openjdk.org Tue Mar 12 11:07:38 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 11:07:38 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: > Clean up five more tests. > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java > test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Bumped copyright year of the affected tests Minor changes based on the review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18184/files - new: https://git.openjdk.org/jdk/pull/18184/files/71461d63..84eb696b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18184&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18184&range=00-01 Stats: 60 lines in 5 files changed: 12 ins; 13 del; 35 mod Patch: https://git.openjdk.org/jdk/pull/18184.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18184/head:pull/18184 PR: https://git.openjdk.org/jdk/pull/18184 From kizune at openjdk.org Tue Mar 12 11:07:39 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 11:07:39 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 14:04:36 GMT, Alexey Ivanov wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Bumped copyright year of the affected tests >> Minor changes based on the review comments > > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 115: > >> 113: try { >> 114: SwingUtilities.invokeAndWait(b::setupGUI); >> 115: safeSleep(3000); > > Instead of sleeping, you can use a `CountDownLatch(3)` which you'll `countDown()` for each mouse click. Here you'll call `await(3, TimeUnit.SECONDS)` and throw a timeout error if `await` returns `false`. > > Another synchroniser may be used to handle the case where `BadLocationException` is thrown to fail the test right away. Alternatively, `BadLocationException` may be wrapped into `RuntimeException` and re-thrown. This is a very simple case and sleeping worked for it so i do not see reason to rewrite it with CDL. > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 69: > >> 67: public void performTest() throws InterruptedException, >> 68: InvocationTargetException { >> 69: JRobot jRobo = JRobot.getRobot(); > > Suggestion: > > JRobot jRobo = JRobot.getRobot(); > jRobo.waitForIdle(); > > Let the frame appear on the screen. Done ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521268654 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521267248 From aivanov at openjdk.org Tue Mar 12 11:14:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:14:16 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 02:49:25 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 52: > 50: import javax.swing.JSlider; > 51: import javax.swing.JTextField; > 52: import javax.swing.SwingUtilities; `SwingUtilities` is unused now. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 60: > 58: > 59: 1. Create a link > 60: 2. Copy path to the link into TextField I understand the instructions aren't new but I can't comprehend what it's required. Does it mean a Windows shortcut, `.lnk` file? Seems like it's the case because `getLinkLocation` is called which resolves a shortcut to its original file. Can the text field be pre-populated with a default? There could be shortcuts on Desktop, there are many shortcuts in the Start menu. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 65: > 63: 5. Wait several minutes and observe in the Windows Task Manager > 64: that Memory Usage of java process is not increasing > 65: If memory usage is increasing, click Fail else click Pass . """; Suggestion: If memory usage is increasing, click Fail else click Pass."""; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521264352 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521262560 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521263213 From aivanov at openjdk.org Tue Mar 12 11:14:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:14:16 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: <740m_-_rhTLqYbNfOFhsfqyjK9dNJWLns-CbXGLN5mY=.1e0c06b5-5426-4ec8-a913-7e0e22d30865@github.com> Message-ID: On Tue, 12 Mar 2024 10:51:47 GMT, Prasanta Sadhukhan wrote: > As I understood, testUI calls the passed method in EDT so I think it's better to init the swing variables there.. Yes, that's true, if you pass a lambda expression to `testUI`, it is called on EDT. Since `initialize` is called from `createUI`, both methods will be called on EDT. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521271334 From aivanov at openjdk.org Tue Mar 12 11:14:18 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:14:18 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:54:37 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > move frame init in createUI test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 108: > 106: > 107: try { > 108: folder = ShellFolder.getShellFolder(new File(".")); I wonder if it was expected that there are files in the directory. Like yes, so I could be wrong. I assumed files were created but no file is created, instead the files in this directory is listed. The expected result is that each file in the directory creates a new `ShellFolder` instance. test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 177: > 175: private static void fail(String msg) { > 176: PassFailJFrame.forceFail(); > 177: throw new RuntimeException(msg); Suggestion: PassFailJFrame.forceFail(msg); `forceFail` will throw the exception on the main thread. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521274628 PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521275324 From psadhukhan at openjdk.org Tue Mar 12 11:14:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 11:14:25 GMT Subject: RFR: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main Changes: https://git.openjdk.org/jdk/pull/18228/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18228&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327752 Stats: 75 lines in 2 files changed: 21 ins; 40 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/18228.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18228/head:pull/18228 PR: https://git.openjdk.org/jdk/pull/18228 From aivanov at openjdk.org Tue Mar 12 11:16:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:16:15 GMT Subject: RFR: 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main [v2] In-Reply-To: References: Message-ID: <0E8XfAia27yUjZuJ9OtIJQGCMgXJ0c0TTkle3OUiwIQ=.008e3dd9-d3d2-4096-b452-ea15917886fe@github.com> On Tue, 12 Mar 2024 02:51:48 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: > > - Review comment update > - Review comment update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18186#pullrequestreview-1930764110 From aivanov at openjdk.org Tue Mar 12 11:18:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:18:14 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:54:37 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > move frame init in createUI test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 80: > 78: .title("JFileChooser Instructions") > 79: .instructions(INSTRUCTIONS) > 80: .rows(10) Suggestion: .instructions(INSTRUCTIONS) .testTimeOut(10) .rows(10) This test will benefit from a longer time out. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521282483 From tr at openjdk.org Tue Mar 12 11:20:31 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 12 Mar 2024 11:20:31 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main Message-ID: Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18229/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18229&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327969 Stats: 61 lines in 2 files changed: 20 ins; 34 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/18229.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18229/head:pull/18229 PR: https://git.openjdk.org/jdk/pull/18229 From aivanov at openjdk.org Tue Mar 12 11:26:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:26:15 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v3] In-Reply-To: <5j-kUmJAGV9tEZBTNWCCUAYbQCdYbkS2aT4smyVjqe4=.61f56bc7-0389-4182-9b5a-6d06b676cdea@github.com> References: <5j-kUmJAGV9tEZBTNWCCUAYbQCdYbkS2aT4smyVjqe4=.61f56bc7-0389-4182-9b5a-6d06b676cdea@github.com> Message-ID: On Tue, 12 Mar 2024 09:53:43 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18197#pullrequestreview-1930784580 From aivanov at openjdk.org Tue Mar 12 11:26:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:26:15 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:47:37 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1930781424 From aivanov at openjdk.org Tue Mar 12 11:26:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:26:16 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:08:08 GMT, Alexey Ivanov wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/border/Test4129681.java line 75: > >> 73: main.add(Box.createVerticalStrut(4)); >> 74: main.add(label); >> 75: main.add(Box.createVerticalGlue()); > > A `JPanel` with `BorderLayout` works better here, you can fill the area with the `JLabel`: > Suggestion: > > JPanel main = new JPanel(new BorderLayout()); > main.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8)); > main.add(check, BorderLayout.NORTH); > main.add(label, BorderLayout.CENTER); You didn't change to `JPanel` with `BorderLayout`. Whatever. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1521290590 From psadhukhan at openjdk.org Tue Mar 12 11:27:13 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 11:27:13 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v4] In-Reply-To: References: Message-ID: <3V0bSMbDRx1AkWBosiTRtEYV8tt5xHh-mcImXu7NR1o=.72b016b3-8fe2-4bfa-89c9-142465fccf61@github.com> On Tue, 12 Mar 2024 11:09:17 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> move frame init in createUI > > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 108: > >> 106: >> 107: try { >> 108: folder = ShellFolder.getShellFolder(new File(".")); > > I wonder if it was expected that there are files in the directory. Like yes, so I could be wrong. I assumed files were created but no file is created, instead the files in this directory is listed. The expected result is that each file in the directory creates a new `ShellFolder` instance. I think it's needed to have some files in the directory.. This test is problemlisted actually and as per [this comment](https://bugs.openjdk.org/browse/JDK-8146446?focusedId=13884125&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13884125) it needs to be tested on a directory with some files in it but sometimes, in CI system temp folder may have thousand of files so I think we should revert back to "java.io.tmpdir" for this test sprint and figure out the fix for the tmpdir in JDK-8146446...Any objection? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521295800 From aivanov at openjdk.org Tue Mar 12 11:33:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:33:15 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:22:35 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18205#pullrequestreview-1930798500 From aivanov at openjdk.org Tue Mar 12 11:33:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:33:16 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: References: Message-ID: <0BgrMHnRLNliT2frpabItYx4BBckGEoj0-nRJNDkgTg=.dd03fbd1-27e3-4ff0-84da-f770f21abfcf@github.com> On Tue, 12 Mar 2024 10:27:45 GMT, Alexander Zvegintsev wrote: >> Now its fine on my screen. But its not in center, but top. Does it differ for windows and linux? > > It is not in the center, because in the latest commit I added `.position(PassFailJFrame.Position.TOP_LEFT_CORNER)`, as Alexey suggested. I have 1920?1200 with 150%. This is why it doesn't fit. The second frame overlapped instructions a bit. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1521302367 From aivanov at openjdk.org Tue Mar 12 11:34:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:34:14 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:25:28 GMT, Alexander Zvegintsev wrote: >> The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. >> >> We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. >> The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. >> >> The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18203#pullrequestreview-1930801282 From aivanov at openjdk.org Tue Mar 12 11:36:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:36:17 GMT Subject: RFR: 8327750: Convert javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:37:04 GMT, Prasanta Sadhukhan wrote: >> test/jdk/javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.java line 54: >> >>> 52: .rows(10) >>> 53: .columns(35) >>> 54: .build(); >> >> Suggestion: >> >> .position(PassFailJFrame.Position.TOP_LEFT_CORNER) >> .build(); >> >> To move the instruction frame into its final position right away since `build()` shows the instruction UI. Later the instruction frame is moved when you use `PassFailJFrame.positionTestWindow`. > > ok. updated..but it doesn't seem to make any difference.. It does. Now the instruction frame is always in the top left corner. Before this update, it showed in the centre of the screen and in a short while moved to the top left corner. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18182#discussion_r1521306491 From aivanov at openjdk.org Tue Mar 12 11:43:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:43:13 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v4] In-Reply-To: <3V0bSMbDRx1AkWBosiTRtEYV8tt5xHh-mcImXu7NR1o=.72b016b3-8fe2-4bfa-89c9-142465fccf61@github.com> References: <3V0bSMbDRx1AkWBosiTRtEYV8tt5xHh-mcImXu7NR1o=.72b016b3-8fe2-4bfa-89c9-142465fccf61@github.com> Message-ID: On Tue, 12 Mar 2024 11:24:37 GMT, Prasanta Sadhukhan wrote: >> test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 108: >> >>> 106: >>> 107: try { >>> 108: folder = ShellFolder.getShellFolder(new File(".")); >> >> I wonder if it was expected that there are files in the directory. Like yes, so I could be wrong. I assumed files were created but no file is created, instead the files in this directory is listed. The expected result is that each file in the directory creates a new `ShellFolder` instance. > > I think it's needed to have some files in the directory.. > This test is problemlisted actually and as per [this comment](https://bugs.openjdk.org/browse/JDK-8146446?focusedId=13884125&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13884125) it needs to be tested on a directory with some files in it but sometimes, in CI system temp folder may have thousand of files so I think we should revert back to "java.io.tmpdir" for this test sprint and figure out the fix for the tmpdir in JDK-8146446...Any objection? One way to handle it is to create a number of files in the current directory, the `scratch` directory that jtreg provides and then rely on jtreg to remove it. Or to create a temp directory in the current directory and create files there. We have no control over how many files are in the temporary directory, however, in most cases it's not empty. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521313859 From aivanov at openjdk.org Tue Mar 12 11:43:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 11:43:14 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v4] In-Reply-To: References: <3V0bSMbDRx1AkWBosiTRtEYV8tt5xHh-mcImXu7NR1o=.72b016b3-8fe2-4bfa-89c9-142465fccf61@github.com> Message-ID: On Tue, 12 Mar 2024 11:39:46 GMT, Alexey Ivanov wrote: >> I think it's needed to have some files in the directory.. >> This test is problemlisted actually and as per [this comment](https://bugs.openjdk.org/browse/JDK-8146446?focusedId=13884125&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13884125) it needs to be tested on a directory with some files in it but sometimes, in CI system temp folder may have thousand of files so I think we should revert back to "java.io.tmpdir" for this test sprint and figure out the fix for the tmpdir in JDK-8146446...Any objection? > > One way to handle it is to create a number of files in the current directory, the `scratch` directory that jtreg provides and then rely on jtreg to remove it. Or to create a temp directory in the current directory and create files there. > > We have no control over how many files are in the temporary directory, however, in most cases it's not empty. > I think we should revert back to "java.io.tmpdir" for this test sprint and figure out the fix for the tmpdir in JDK-8146446...Any objection? Sounds reasonable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521314423 From aivanov at openjdk.org Tue Mar 12 12:01:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:01:17 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 08:46:45 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java line 47: >> >>> 45: } catch (PropertyVetoException ex) { >>> 46: ex.printStackTrace(); >>> 47: } >> >> Shouldn't the test fail if an unexpected exception is thrown? > > It is not unexpected but instead of failing i think test should just pass. Which will happen because the internal frame is not minimized so the test condition is not recreated. I believe it's unexpected because we don't expect `PropertyVetoException`, in which case failure seems a better option. If anything changes so that `PropertyVetoException` would be thrown all the time, the test would appear to be passing whereas it would not run at all. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521337005 From aivanov at openjdk.org Tue Mar 12 12:12:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:12:16 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 11:07:38 GMT, Alexander Zuev wrote: >> Clean up five more tests. >> >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java >> test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Bumped copyright year of the affected tests > Minor changes based on the review comments Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18184#pullrequestreview-1930877050 From aivanov at openjdk.org Tue Mar 12 12:12:18 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:12:18 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:00:18 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java line 69: >> >>> 67: keyTyped = true; >>> 68: bug4773378.this.notifyAll(); >>> 69: } >> >> A `CountDownLatch` would work great in this case. >> >> And `keyTyped` is a confusing name for a flag which gets to `true` when the internal frame is activated. > > Renamed as frameActivated I'm still for using `CountDownLatch`, it looks cleaner in my opinion. >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 115: >> >>> 113: try { >>> 114: SwingUtilities.invokeAndWait(b::setupGUI); >>> 115: safeSleep(3000); >> >> Instead of sleeping, you can use a `CountDownLatch(3)` which you'll `countDown()` for each mouse click. Here you'll call `await(3, TimeUnit.SECONDS)` and throw a timeout error if `await` returns `false`. >> >> Another synchroniser may be used to handle the case where `BadLocationException` is thrown to fail the test right away. Alternatively, `BadLocationException` may be wrapped into `RuntimeException` and re-thrown. > > This is a very simple case and sleeping worked for it so i do not see reason to rewrite it with CDL. Using CDL can reduce the execution time? likely the three clicks are handled more quickly than in 3 seconds. >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html line 1: >> >>> 1: >> >> Can this file be created by the test on the fly? There's no need for a supporting file. >> >> In #18147, Prasanta handled the same situation. > > I prefer to keep things simpler and not to create an additional possible point of failure. The supporting html file is self-explanatory and, if needed, can be changed outside of fixing the test itself. It will make the test self-contained, which, in my opinion, is preferred. >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java line 29: >> >>> 27: * @summary JEditor pane throws NullPointerException on mouse movement. >>> 28: * @library ../../regtesthelpers >>> 29: * @build JRobot >> >> The test doesn't seem to use any of the extended functionality provided by JRobot, so the standard `java.awt.Robot` can be used instead. > > I do not see any harm in using JRobot, it is a Swing test after all. No harm but a dependency on a library which isn't used. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521350860 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521346223 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521347941 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521348935 From aivanov at openjdk.org Tue Mar 12 12:15:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:15:17 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:34:38 GMT, Alexander Zuev wrote: > I would prefer to keep the directory structure - it does not make any difference after al and sometimes makes test logs more readable. At times, I find it easier to manage in IDE either. Just mark one folder as Test Sources, and it brings only one test. A folder with lots of tests often results in compilation errors because of duplicate classes and so on. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18184#issuecomment-1991512231 From aivanov at openjdk.org Tue Mar 12 12:18:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:18:15 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:05:33 GMT, Alexey Ivanov wrote: >> This is a very simple case and sleeping worked for it so i do not see reason to rewrite it with CDL. > > Using CDL can reduce the execution time? likely the three clicks are handled more quickly than in 3 seconds. On the other hand, overengineering a simple case could do more harm? as using `CountDownLatch` isn't straightforward in this case. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521358716 From aivanov at openjdk.org Tue Mar 12 12:21:19 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:21:19 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 11:58:40 GMT, Alexey Ivanov wrote: >> It is not unexpected but instead of failing i think test should just pass. Which will happen because the internal frame is not minimized so the test condition is not recreated. > > I believe it's unexpected because we don't expect `PropertyVetoException`, in which case failure seems a better option. > > If anything changes so that `PropertyVetoException` would be thrown all the time, the test would appear to be passing whereas it would not run at all. This is the only point with which I *disagree*. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1521362228 From psadhukhan at openjdk.org Tue Mar 12 12:25:17 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 12:25:17 GMT Subject: Integrated: 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 10:02:21 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: cfd9209e Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/cfd9209e03176bd8e02acd74b51a16f3113fbd21 Stats: 59 lines in 2 files changed: 19 ins; 32 del; 8 mod 8327751: Convert javax/swing/JInternalFrame/6726866/bug6726866.java applet test to main Reviewed-by: aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18186 From psadhukhan at openjdk.org Tue Mar 12 12:33:37 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 12:33:37 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v5] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Revert to tempDir ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18180/files - new: https://git.openjdk.org/jdk/pull/18180/files/abd16b4f..d2da657b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=03-04 Stats: 12 lines in 1 file changed: 9 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From azvegint at openjdk.org Tue Mar 12 12:39:34 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 12:39:34 GMT Subject: RFR: 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main Message-ID: The test is converted to main. Tested on Linux, Macos and Windows. ------------- Commit messages: - test move - 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main Changes: https://git.openjdk.org/jdk/pull/18231/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18231&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327972 Stats: 225 lines in 3 files changed: 91 ins; 134 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18231.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18231/head:pull/18231 PR: https://git.openjdk.org/jdk/pull/18231 From aivanov at openjdk.org Tue Mar 12 12:40:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:40:15 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:59:48 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment update > > test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 60: > >> 58: >> 59: 1. Create a link >> 60: 2. Copy path to the link into TextField > > I understand the instructions aren't new but I can't comprehend what it's required. > > Does it mean a Windows shortcut, `.lnk` file? Seems like it's the case because `getLinkLocation` is called which resolves a shortcut to its original file. > > Can the text field be pre-populated with a default? There could be shortcuts on Desktop, there are many shortcuts in the Start menu. Could you amend the instructions to clarify them? Define what is a _link_. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521390282 From azvegint at openjdk.org Tue Mar 12 12:42:14 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 12:42:14 GMT Subject: RFR: 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:34:57 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. test/jdk/java/awt/FileDialog/SaveFileNameOverrideTest.java line 79: > 77: > 78: fd.setFile("input"); > 79: fd.setDirectory(new File(dirPath).getAbsolutePath()); Originally it was just the `dirPath` (== `.`). However, a recently opened directory is opened when we pass `.` to `setDirectory` on WIndows. To make the test consistent, the absolute path is used. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18231#discussion_r1521393330 From aivanov at openjdk.org Tue Mar 12 12:45:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:45:13 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:37:18 GMT, Alexey Ivanov wrote: >> test/jdk/javax/swing/JFileChooser/6798062/bug6798062.java line 60: >> >>> 58: >>> 59: 1. Create a link >>> 60: 2. Copy path to the link into TextField >> >> I understand the instructions aren't new but I can't comprehend what it's required. >> >> Does it mean a Windows shortcut, `.lnk` file? Seems like it's the case because `getLinkLocation` is called which resolves a shortcut to its original file. >> >> Can the text field be pre-populated with a default? There could be shortcuts on Desktop, there are many shortcuts in the Start menu. > > Could you amend the instructions to clarify them? > > Define what is a _link_. It seems a Windows shortcut is crucial to reproducing the original problem, if it is, the handler for the Start button could show an error message about this fact. Perhaps, if this link cannot be converted to a file in `MyThread` constructor, `FileNotFoundException` should be propagated and caught in the Start button actionPerformed handler to show an error message and let the tester use another Windows shortcut. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521398715 From psadhukhan at openjdk.org Tue Mar 12 12:50:13 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 12:50:13 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:42:53 GMT, Alexey Ivanov wrote: >> Could you amend the instructions to clarify them? >> >> Define what is a _link_. > > It seems a Windows shortcut is crucial to reproducing the original problem, if it is, the handler for the Start button could show an error message about this fact. > > Perhaps, if this link cannot be converted to a file in `MyThread` constructor, `FileNotFoundException` should be propagated and caught in the Start button actionPerformed handler to show an error message and let the tester use another Windows shortcut. SInce this exercise is just to convert applet to main, I tried to keep the instructions same (although I agree it seems ambiguous and I also am not clear what needs to be done) which seems to be ok with the tester since 2009 when the test was written. I think whatever test change needs to be done should be done in JDK-8146446 as till then this test will not be run.. ELse if you disagree, what you propose to be written in the "instructions"? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521405837 From aivanov at openjdk.org Tue Mar 12 12:54:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 12:54:14 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 23:02:53 GMT, Phil Race wrote: > Converts the manual applet test in the files .. > SpanishDiacriticsTest/SpanishDiacriticsTest.html > SpanishDiacriticsTest/SpanishDiacriticsTest.java > .. to a main program using PassFailJFrame > > Added requires windows since it seems very windows-specific. > > I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 60: > 58: expected behaviour for this test. > 59: > 60: If the text field displays ''o, (i.e. o should be without an acute) Suggestion: If the text field displays \u00f3, (i.e. o should be without an acute) Use the real character? test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 71: > 69: .rows(18) > 70: .columns(50) > 71: .testUI(() -> createTestUI()) Suggestion: .testUI(SpanishDiacriticsTest::createTestUI) I prefer method references in such cases, it looks cleaner. test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 72: > 70: .columns(50) > 71: .testUI(() -> createTestUI()) > 72: .testTimeOut(5) Default timeout could be omitted. test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 89: > 87: frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); > 88: frame.pack(); > 89: frame.setVisible(true); Suggestion: frame.pack(); Calling `setVisible(true)` here causes flickering as the frame gets shown at its default location and later gets moved to its final location. Setting close operation is redundant, `PassFailJFrame` handles closing test UI (when you use the builder pattern) and fails the test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521405668 PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521410458 PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521410885 PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521409226 From psadhukhan at openjdk.org Tue Mar 12 12:55:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 12:55:25 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v6] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18180/files - new: https://git.openjdk.org/jdk/pull/18180/files/d2da657b..8c8d1b90 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=04-05 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From abhiscxk at openjdk.org Tue Mar 12 12:56:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 12 Mar 2024 12:56:20 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - whitespace fix - Applet test converted to main manual Changes: https://git.openjdk.org/jdk/pull/18233/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327980 Stats: 114 lines in 2 files changed: 27 ins; 61 del; 26 mod Patch: https://git.openjdk.org/jdk/pull/18233.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18233/head:pull/18233 PR: https://git.openjdk.org/jdk/pull/18233 From psadhukhan at openjdk.org Tue Mar 12 13:21:19 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 13:21:19 GMT Subject: RFR: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - fix - 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main Changes: https://git.openjdk.org/jdk/pull/18232/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18232&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327753 Stats: 213 lines in 2 files changed: 5 ins; 178 del; 30 mod Patch: https://git.openjdk.org/jdk/pull/18232.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18232/head:pull/18232 PR: https://git.openjdk.org/jdk/pull/18232 From aivanov at openjdk.org Tue Mar 12 13:39:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 13:39:23 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons Message-ID: The test is converted to use `PassFailJFrame`. I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. ------------- Commit messages: - 8320079: The ArabicBox.java test has no control buttons Changes: https://git.openjdk.org/jdk/pull/18234/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18234&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8320079 Stats: 103 lines in 1 file changed: 103 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18234.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18234/head:pull/18234 PR: https://git.openjdk.org/jdk/pull/18234 From aivanov at openjdk.org Tue Mar 12 13:42:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 13:42:13 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:47:55 GMT, Prasanta Sadhukhan wrote: >> It seems a Windows shortcut is crucial to reproducing the original problem, if it is, the handler for the Start button could show an error message about this fact. >> >> Perhaps, if this link cannot be converted to a file in `MyThread` constructor, `FileNotFoundException` should be propagated and caught in the Start button actionPerformed handler to show an error message and let the tester use another Windows shortcut. > > SInce this exercise is just to convert applet to main, I tried to keep the instructions same (although I agree it seems ambiguous and I also am not clear what needs to be done) which seems to be ok with the tester since 2009 when the test was written. > I think whatever test change needs to be done should be done in JDK-8146446 as till then this test will not be run.. > > ELse if you disagree, what you propose to be written in the "instructions"? Create a new bug to improve and to clean up the test then. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521485042 From aivanov at openjdk.org Tue Mar 12 13:47:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 13:47:16 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 13:39:43 GMT, Alexey Ivanov wrote: >> SInce this exercise is just to convert applet to main, I tried to keep the instructions same (although I agree it seems ambiguous and I also am not clear what needs to be done) which seems to be ok with the tester since 2009 when the test was written. >> I think whatever test change needs to be done should be done in JDK-8146446 as till then this test will not be run.. >> >> ELse if you disagree, what you propose to be written in the "instructions"? > > Create a new bug to improve and to clean up the test then. At the same time, I think you should use the term _?shortcut (.lnk file)?_ in the instructions so that it's clear. The thing is .lnk files are known as shortcuts for most users, even though in Windows Shell API uses link internally which is reflected in the file extension. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521489601 From abhiscxk at openjdk.org Tue Mar 12 13:47:29 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 12 Mar 2024 13:47:29 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v2] In-Reply-To: References: Message-ID: <5h_Cx5GZBks5nYsBwPD5qVFIVDln4nHsRKgILyFtLf0=.bfc00fee-21c6-4af4-8102-3c63a681ff94@github.com> > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment fix ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18212/files - new: https://git.openjdk.org/jdk/pull/18212/files/5e6fc19d..0d0af40d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=00-01 Stats: 6 lines in 1 file changed: 0 ins; 3 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18212.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18212/head:pull/18212 PR: https://git.openjdk.org/jdk/pull/18212 From abhiscxk at openjdk.org Tue Mar 12 13:47:30 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 12 Mar 2024 13:47:30 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:03:10 GMT, Tejesh R wrote: > Both frame and button can be inside creatUI() Updated. > If you can use splitUI instead of testUI that would be even better. Since the original bug [JDK-4644444](https://bugs.openjdk.org/browse/JDK-4644444) says `JToolTip is shown partially when placed very close to screen boundaries`, it would not be a good idea to use splitUI. User may not be able to move the testUI near screen boundaries. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18212#discussion_r1521491592 From abhiscxk at openjdk.org Tue Mar 12 13:50:42 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 12 Mar 2024 13:50:42 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Remove commented line ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18212/files - new: https://git.openjdk.org/jdk/pull/18212/files/0d0af40d..0892ab7c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18212.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18212/head:pull/18212 PR: https://git.openjdk.org/jdk/pull/18212 From psadhukhan at openjdk.org Tue Mar 12 13:52:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 13:52:28 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v7] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: instruction update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18180/files - new: https://git.openjdk.org/jdk/pull/18180/files/8c8d1b90..e994fcda Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=06 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18180&range=05-06 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18180.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18180/head:pull/18180 PR: https://git.openjdk.org/jdk/pull/18180 From aivanov at openjdk.org Tue Mar 12 13:59:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 13:59:15 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v7] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 13:52:28 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > instruction update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18180#pullrequestreview-1931145301 From aivanov at openjdk.org Tue Mar 12 13:59:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 13:59:15 GMT Subject: RFR: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main [v3] In-Reply-To: References: Message-ID: <0_ckfPYUpeQdobZZJ6ZnJiJnmXKxOklOZ3E4b9eXEbI=.67d1ed60-e96e-49e6-8c07-04a24db4aea3@github.com> On Tue, 12 Mar 2024 13:42:28 GMT, Alexey Ivanov wrote: >> Create a new bug to improve and to clean up the test then. > > At the same time, I think you should use the term _?shortcut (.lnk file)?_ in the instructions so that it's clear. > > The thing is .lnk files are known as shortcuts for most users, even though in Windows Shell API uses link internally which is reflected in the file extension. > Create a new bug to improve and to clean up the test then. I see, there's an existing bug?[JDK-8146446](https://bugs.openjdk.org/browse/JDK-8146446)?against this test. Although the bug describes that memory usage somewhat grows while the background thread is running, it actually does. It has just grown for me from 100MB to 300MB. Running `System.gc` reduces the memory consumption to 200 MB. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521509910 From ihse at openjdk.org Tue Mar 12 14:08:16 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 14:08:16 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: <8qVPKaqO0Y8go0K791uKhaxuCkmAP0v5S0ZdyBzeCtI=.1c22ea81-f39e-40f3-898a-02a0609d5831@github.com> On Mon, 11 Mar 2024 13:54:02 GMT, Alexander Scherbatiy wrote: > The fix provides ability to print Black & White pages on macOS. > > Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. > > There is no replacement; this function was included to facilitate porting legacy applications to macOS, > but it serves no useful purpose. > > Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. > For example, the tested > `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and > `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. > > Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. > This is the code snippet used to print `NSPrintInfo` presets: > > PMPrinter pr; > PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; > OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > CFArrayRef presetsList = nil; > status = PMPrinterCopyPresets(pr, &presetsList); > CFIndex arrayCount = CFArrayGetCount(presetsList); > > for (CFIndex index = 0; index < arrayCount; index++) { > PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > CFStringRef presetName = nil; > if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { > NSLog(@" presetName: '%@'", presetName); > NSDictionary* dict = nil; > if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { > // print preset dict > > > The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. > > The property file has the format: > > print-attribute.print-attribute-value.key=value > > where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. > > For example, for `Chromaticity` attribute the property file could look like: > > Chromaticity.MONOCHROME.ColorModel=Gray > Chromaticity.COLOR.ColorModel=CMYK > Chromaticity.MONOCHROME.HPColorMode=grayscale > Chromaticity.COLOR.HPColorMode=color > > where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (... Build changes look good. However, I think there is some kind of movement trying to *remove* stuff from the conf directory, rather than adding new files there. @AlanBateman might want to chime in on this. ------------- Marked as reviewed by ihse (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18195#pullrequestreview-1931171225 From aivanov at openjdk.org Tue Mar 12 14:18:12 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 14:18:12 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 08:33:41 GMT, Alexey Ivanov wrote: > This is to simplify `TrayIconScalingTest.java`. > > 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. > 2. Move creating tray icon to the top. > 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. > 4. Ensure tray is not null before removing the icon. > 5. Pass AWTException as the cause in the wrapped exception. > > Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. > > With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. @honkar-jdk, could you, as the author of the test, take a look, please? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18224#issuecomment-1991753900 From ihse at openjdk.org Tue Mar 12 15:16:30 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:16:30 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v3] In-Reply-To: References: Message-ID: <0TOkCbNH7MaB96StWPTbQZUzo2mT-9jzCSpNlqg-PJM=.4f227516-fe08-4e6b-a5db-63d39e29a4fe@github.com> > As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: - Set JVM_PICFLAG="-fpic -mcmodel=large" for AIX - Open XL 17.1.1.4 is clang 15. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18172/files - new: https://git.openjdk.org/jdk/pull/18172/files/53a05019..e7949499 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=01-02 Stats: 7 lines in 3 files changed: 4 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18172.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18172/head:pull/18172 PR: https://git.openjdk.org/jdk/pull/18172 From ihse at openjdk.org Tue Mar 12 15:16:30 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:16:30 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:30:20 GMT, Julian Waters wrote: > Is Open XL C/C++ considered a compiler or more akin to a development environment like Xcode is for macOS? Depending on which, we could just say clang is the compiler for AIX without needing to say that Open XL is treated like clang, etc You are raising a good point. Our current concept of "toolchain" is not working as smoothly as it should be. We should probably split it into "toolchain environment" (or whatever), like Xcode or Open XL, and "toolchain compiler" (like clang), and/or possibly also some concept of "toolchain sdk". The work you are doing of untangling Windows from Visual Studio would probably influence such a redesign, seeing what part of the Windows adaptions which arise from cl, and which are constant given that you compile for windows (like the Windows SDK). But this is a more architectural issue that will need to be resolved in another PR, and probably discussed quite a bit beforehand. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521637464 From ihse at openjdk.org Tue Mar 12 15:16:30 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:16:30 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 15:04:56 GMT, Magnus Ihse Bursie wrote: >> Is Open XL C/C++ considered a compiler or more akin to a development environment like Xcode is for macOS? Depending on which, we could just say clang is the compiler for AIX without needing to say that Open XL is treated like clang, etc >> >> Also, why did this remove the link to the Supported Build Platforms page? > >> Is Open XL C/C++ considered a compiler or more akin to a development environment like Xcode is for macOS? Depending on which, we could just say clang is the compiler for AIX without needing to say that Open XL is treated like clang, etc > > You are raising a good point. Our current concept of "toolchain" is not working as smoothly as it should be. We should probably split it into "toolchain environment" (or whatever), like Xcode or Open XL, and "toolchain compiler" (like clang), and/or possibly also some concept of "toolchain sdk". > > The work you are doing of untangling Windows from Visual Studio would probably influence such a redesign, seeing what part of the Windows adaptions which arise from cl, and which are constant given that you compile for windows (like the Windows SDK). > > But this is a more architectural issue that will need to be resolved in another PR, and probably discussed quite a bit beforehand. > why did this remove the link to the Supported Build Platforms page? You make it sound like it is a bad thing, but in fact I promoted the AIX build to be of the same status as all other platforms. I cowardly did not put anything specific about the AIX build in the readme before, but just referred to the wiki. Now I decided we should actually treat this as a proper platform and describe the compiler version in the readme, since it is checked in configure, just like all other platforms. There is still a link to the Supported Build Platforms wiki page in the general part of the readme. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521642995 From ihse at openjdk.org Tue Mar 12 15:16:30 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:16:30 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 15:07:15 GMT, Magnus Ihse Bursie wrote: >>> Is Open XL C/C++ considered a compiler or more akin to a development environment like Xcode is for macOS? Depending on which, we could just say clang is the compiler for AIX without needing to say that Open XL is treated like clang, etc >> >> You are raising a good point. Our current concept of "toolchain" is not working as smoothly as it should be. We should probably split it into "toolchain environment" (or whatever), like Xcode or Open XL, and "toolchain compiler" (like clang), and/or possibly also some concept of "toolchain sdk". >> >> The work you are doing of untangling Windows from Visual Studio would probably influence such a redesign, seeing what part of the Windows adaptions which arise from cl, and which are constant given that you compile for windows (like the Windows SDK). >> >> But this is a more architectural issue that will need to be resolved in another PR, and probably discussed quite a bit beforehand. > >> why did this remove the link to the Supported Build Platforms page? > > You make it sound like it is a bad thing, but in fact I promoted the AIX build to be of the same status as all other platforms. I cowardly did not put anything specific about the AIX build in the readme before, but just referred to the wiki. Now I decided we should actually treat this as a proper platform and describe the compiler version in the readme, since it is checked in configure, just like all other platforms. > > There is still a link to the Supported Build Platforms wiki page in the general part of the readme. > It is clang 15 not 13. Clang 13 was in 17.1.0 Thanks! Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521646622 From ihse at openjdk.org Tue Mar 12 15:16:30 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:16:30 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v3] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:45:46 GMT, Joachim Kern wrote: >> OK this was a flaw in my introduction of clang toolchain for AIX. The intention was to keep the xlc options in form of their clang counterparts. I will try with a corrected version for clang on AIX and will come back to you. > > OK, the `-Wl,-bbigtoc` is not a compiler option but a linker option and it is already set in the linker options. > But the `-fpic -mcmodel=large` should be set to avoid creating a jump to out-of-order code. > > So we can replace the > > JVM_PICFLAG="$PICFLAG" > JDK_PICFLAG="$PICFLAG" > > > code some lines below by > > > if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then > JVM_PICFLAG="-fpic -mcmodel=large" > else > JVM_PICFLAG="$PICFLAG" > fi > JDK_PICFLAG="$PICFLAG" I'm not entirely happy to do this here, as it is a bug fix, and it will change behavior, in contrast to the rest of the patch which is just about removing unused code. But it's a small fix, and I'm messing with the part of the code anyway, so if you are sure that this is the right thing to do I'll sneak it in here. Please make sure it works. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521652510 From ihse at openjdk.org Tue Mar 12 15:19:18 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:19:18 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 09:14:27 GMT, Joachim Kern wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: >> >> Revert SEARCH_PATH changes > > make/autoconf/toolchain.m4 line 409: > >> 407: # Target: powerpc-ibm-aix7.2.0.0 >> 408: # Thread model: posix >> 409: # InstalledDir: /opt/IBM/openxlC/17.1.0/bin > > Please correct: > IBM Open XL C/C++ for AIX 17.1.**1** (xxxxxxxxxxxxxxx), clang version 1**5**.0.0 > # Target: **powerpc-ibm-aix7.2.**5**.7** > # Thread model: posix > # InstalledDir: /opt/IBM/openxlC/17.1.**1**/bin That was just intended as an example code. At one point, this has been printed by the compiler output (at least according to the source I found on the net). I tried to find a bunch of different examples from different platforms and versions. But sure, if it makes you happier, I can replace it with a more up to date example. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521656819 From ihse at openjdk.org Tue Mar 12 15:19:19 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:19:19 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 15:15:27 GMT, Magnus Ihse Bursie wrote: >> make/autoconf/toolchain.m4 line 409: >> >>> 407: # Target: powerpc-ibm-aix7.2.0.0 >>> 408: # Thread model: posix >>> 409: # InstalledDir: /opt/IBM/openxlC/17.1.0/bin >> >> Please correct: >> IBM Open XL C/C++ for AIX 17.1.**1** (xxxxxxxxxxxxxxx), clang version 1**5**.0.0 >> # Target: **powerpc-ibm-aix7.2.**5**.7** >> # Thread model: posix >> # InstalledDir: /opt/IBM/openxlC/17.1.**1**/bin > > That was just intended as an example code. At one point, this has been printed by the compiler output (at least according to the source I found on the net). I tried to find a bunch of different examples from different platforms and versions. > > But sure, if it makes you happier, I can replace it with a more up to date example. Actually, your example seems doctored (the `xxxxx`) string. I think I'll keep the real world example. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521659238 From psadhukhan at openjdk.org Tue Mar 12 15:21:19 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 12 Mar 2024 15:21:19 GMT Subject: Integrated: 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 06:22:22 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 782206bc Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/782206bc97dc6ae953b0c3ce01f8b6edab4ad30b Stats: 106 lines in 2 files changed: 35 ins; 43 del; 28 mod 8327748: Convert javax/swing/JFileChooser/6798062/bug6798062.java applet test to main Reviewed-by: aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18180 From ihse at openjdk.org Tue Mar 12 15:27:29 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:27:29 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v4] In-Reply-To: References: Message-ID: > As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: - Replace CC_VERSION_OUTPUT with CC_VERSION_STRING - We need CC_VERSION_OUTPUT before we can check it ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18172/files - new: https://git.openjdk.org/jdk/pull/18172/files/e7949499..577715b3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18172&range=02-03 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18172.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18172/head:pull/18172 PR: https://git.openjdk.org/jdk/pull/18172 From ihse at openjdk.org Tue Mar 12 15:27:29 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:27:29 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: Message-ID: <3S9pyv9jOnJihfgqtK_CXhDDV62pzek2TrduKffVTnI=.4e8d8016-a299-4596-92f4-1bcf6bd206f4@github.com> On Mon, 11 Mar 2024 12:44:55 GMT, Matthias Baesken wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: >> >> Revert SEARCH_PATH changes > > With this change added, currently configure fails > > > checking for ibm-llvm-cxxfilt... /opt/IBM/openxlC/17.1.1/tools/ibm-llvm-cxxfilt > configure: error: ibm-clang_r version output check failed, output: > configure exiting with result code > > maybe related to what Joachim pointed out ? @MBaesken Yes, it was the bug Joachim found. It should be fixed now, together will all other comments (except the example version string in the comments). Please re-test. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1991913029 From ihse at openjdk.org Tue Mar 12 15:27:29 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 12 Mar 2024 15:27:29 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: <0yRLC1SM9um8MIZYJP6sf8OOMeOCbzCc1LF_JQLxZHg=.e3391f4e-ab9e-423c-880c-e84aba29e87b@github.com> References: <0yRLC1SM9um8MIZYJP6sf8OOMeOCbzCc1LF_JQLxZHg=.e3391f4e-ab9e-423c-880c-e84aba29e87b@github.com> Message-ID: <7IuMlu40vZGHuJYHQZvYgMVi72Hd72bn1RfkvD0gygg=.27838cfe-7ae7-42e7-ac46-b08b5610d979@github.com> On Mon, 11 Mar 2024 12:27:08 GMT, Joachim Kern wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: >> >> Revert SEARCH_PATH changes > > make/autoconf/toolchain.m4 line 940: > >> 938: if test "x$OPENJDK_TARGET_OS" = xaix; then >> 939: # Make sure we have the Open XL version of clang on AIX >> 940: $ECHO "$CC_VERSION_OUTPUT" | $GREP "IBM Open XL C/C++ for AIX" > /dev/null > > This does not work since $CC_VERSION_OUTPUT is unset. We need > CC_VERSION_OUTPUT=`${XLC_TEST_PATH}ibm-clang++_r --version 2>&1 | $HEAD -n 1` > before, as in the previous code some lines above which you removed. Yeah, you are right. I confused it with CC_VERSION_STRING. ... duh. Actually, that is what I should be using instead. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18172#discussion_r1521667916 From mbaesken at openjdk.org Tue Mar 12 16:05:18 2024 From: mbaesken at openjdk.org (Matthias Baesken) Date: Tue, 12 Mar 2024 16:05:18 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: <3S9pyv9jOnJihfgqtK_CXhDDV62pzek2TrduKffVTnI=.4e8d8016-a299-4596-92f4-1bcf6bd206f4@github.com> References: <3S9pyv9jOnJihfgqtK_CXhDDV62pzek2TrduKffVTnI=.4e8d8016-a299-4596-92f4-1bcf6bd206f4@github.com> Message-ID: On Tue, 12 Mar 2024 15:24:21 GMT, Magnus Ihse Bursie wrote: > Please re-test. Hi Magnus, thanks for the adjustments. I reenabled your patch in our build/test queue . ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1992009593 From aivanov at openjdk.org Tue Mar 12 16:05:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 16:05:13 GMT Subject: RFR: 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:34:57 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18231#pullrequestreview-1931511748 From duke at openjdk.org Tue Mar 12 16:32:13 2024 From: duke at openjdk.org (Tres Finocchiaro) Date: Tue, 12 Mar 2024 16:32:13 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:54:02 GMT, Alexander Scherbatiy wrote: > The fix provides ability to print Black & White pages on macOS. > > Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. > > There is no replacement; this function was included to facilitate porting legacy applications to macOS, > but it serves no useful purpose. > > Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. > For example, the tested > `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and > `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. > > Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. > This is the code snippet used to print `NSPrintInfo` presets: > > PMPrinter pr; > PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; > OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > CFArrayRef presetsList = nil; > status = PMPrinterCopyPresets(pr, &presetsList); > CFIndex arrayCount = CFArrayGetCount(presetsList); > > for (CFIndex index = 0; index < arrayCount; index++) { > PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > CFStringRef presetName = nil; > if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { > NSLog(@" presetName: '%@'", presetName); > NSDictionary* dict = nil; > if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { > // print preset dict > > > The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. > > The property file has the format: > > print-attribute.print-attribute-value.key=value > > where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. > > For example, for `Chromaticity` attribute the property file could look like: > > Chromaticity.MONOCHROME.ColorModel=Gray > Chromaticity.COLOR.ColorModel=CMYK > Chromaticity.MONOCHROME.HPColorMode=grayscale > Chromaticity.COLOR.HPColorMode=color > > where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (... > Build changes look good. However, I think there is some kind of movement trying to _remove_ stuff from the conf directory, rather than adding new files there. @AlanBateman might want to chime in on this. Hi, as a regular JDK user and a stakeholder to this getting fixed, is there any insight as to where they're moving to? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992075911 From prr at openjdk.org Tue Mar 12 16:39:15 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 16:39:15 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 13:35:33 GMT, Alexey Ivanov wrote: > The test is converted to use `PassFailJFrame`. > > I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. test/jdk/java/awt/font/TextLayout/ArabicBox.java line 38: > 36: * @bug 4427483 > 37: * @summary Arabic text followed by newline should have no missing glyphs > 38: * @library /open/test/jdk/java/awt/regtesthelpers Are you sure about that path prefix ? this works properly on a purely open repo ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18234#discussion_r1521792908 From prr at openjdk.org Tue Mar 12 16:41:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 16:41:14 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:54:02 GMT, Alexander Scherbatiy wrote: > The fix provides ability to print Black & White pages on macOS. > > Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. > > There is no replacement; this function was included to facilitate porting legacy applications to macOS, > but it serves no useful purpose. > > Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. > For example, the tested > `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and > `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. > > Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. > This is the code snippet used to print `NSPrintInfo` presets: > > PMPrinter pr; > PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; > OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > CFArrayRef presetsList = nil; > status = PMPrinterCopyPresets(pr, &presetsList); > CFIndex arrayCount = CFArrayGetCount(presetsList); > > for (CFIndex index = 0; index < arrayCount; index++) { > PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > CFStringRef presetName = nil; > if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { > NSLog(@" presetName: '%@'", presetName); > NSDictionary* dict = nil; > if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { > // print preset dict > > > The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. > > The property file has the format: > > print-attribute.print-attribute-value.key=value > > where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. > > For example, for `Chromaticity` attribute the property file could look like: > > Chromaticity.MONOCHROME.ColorModel=Gray > Chromaticity.COLOR.ColorModel=CMYK > Chromaticity.MONOCHROME.HPColorMode=grayscale > Chromaticity.COLOR.HPColorMode=color > > where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (... /Reviewers 2 /Reviewers 4 ------------- PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992093431 PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992094712 From prr at openjdk.org Tue Mar 12 16:46:16 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 16:46:16 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:54:02 GMT, Alexander Scherbatiy wrote: > The fix provides ability to print Black & White pages on macOS. > > Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. > > There is no replacement; this function was included to facilitate porting legacy applications to macOS, > but it serves no useful purpose. > > Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. > For example, the tested > `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and > `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. > > Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. > This is the code snippet used to print `NSPrintInfo` presets: > > PMPrinter pr; > PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; > OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > CFArrayRef presetsList = nil; > status = PMPrinterCopyPresets(pr, &presetsList); > CFIndex arrayCount = CFArrayGetCount(presetsList); > > for (CFIndex index = 0; index < arrayCount; index++) { > PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > CFStringRef presetName = nil; > if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { > NSLog(@" presetName: '%@'", presetName); > NSDictionary* dict = nil; > if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { > // print preset dict > > > The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. > > The property file has the format: > > print-attribute.print-attribute-value.key=value > > where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. > > For example, for `Chromaticity` attribute the property file could look like: > > Chromaticity.MONOCHROME.ColorModel=Gray > Chromaticity.COLOR.ColorModel=CMYK > Chromaticity.MONOCHROME.HPColorMode=grayscale > Chromaticity.COLOR.HPColorMode=color > > where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (... This needs at least two client Capital R reviewers to approve. And a CSR. But I am really surprised to see a PR rather than a discussion first as it is making a lot of policy decisions and implies we need to support something I am not sure we want to support. Yeah this looks like a complete mis-feature. Meaning it is very unlikely we will ever agree to integrate this. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992099400 PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992103790 From aivanov at openjdk.org Tue Mar 12 16:48:28 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 16:48:28 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons [v2] In-Reply-To: References: Message-ID: > The test is converted to use `PassFailJFrame`. > > I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Use the correct path to library ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18234/files - new: https://git.openjdk.org/jdk/pull/18234/files/ef948140..bba0baae Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18234&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18234&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18234.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18234/head:pull/18234 PR: https://git.openjdk.org/jdk/pull/18234 From aivanov at openjdk.org Tue Mar 12 16:51:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 16:51:15 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 16:36:15 GMT, Phil Race wrote: >> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: >> >> Use the correct path to library > > test/jdk/java/awt/font/TextLayout/ArabicBox.java line 38: > >> 36: * @bug 4427483 >> 37: * @summary Arabic text followed by newline should have no missing glyphs >> 38: * @library /open/test/jdk/java/awt/regtesthelpers > > Are you sure about that path prefix ? this works properly on a purely open repo ? My bad, I forgot to update the path. I might've used a wrong command after copying the file around and didn't notice it. Updated now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18234#discussion_r1521810999 From prr at openjdk.org Tue Mar 12 16:54:16 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 16:54:16 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 13:54:02 GMT, Alexander Scherbatiy wrote: > The fix provides ability to print Black & White pages on macOS. > > Cocoa API has [PMSetColorMode](https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode) function but it is marked as deprecated and really does nothing. > > There is no replacement; this function was included to facilitate porting legacy applications to macOS, > but it serves no useful purpose. > > Dumping `NSPrintInfo` print settings which were set by the native print dialog on macOS shows that the keys and values used for Black & White printing depend on the used printer type. > For example, the tested > `HP Color LaserJet MFP M180n` printer uses `ColorModel` key and`Gray` value, and > `HP Ink Tank 110 series` uses `HPColorMode` key and `grayscale` value. > > Printing all `NSPrintInfo` presets shows that they do not contain key/value pairs for Black&White settings. > This is the code snippet used to print `NSPrintInfo` presets: > > PMPrinter pr; > PMPrintSession printSession = (PMPrintSession)[printInfo PMPrintSession]; > OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > CFArrayRef presetsList = nil; > status = PMPrinterCopyPresets(pr, &presetsList); > CFIndex arrayCount = CFArrayGetCount(presetsList); > > for (CFIndex index = 0; index < arrayCount; index++) { > PMPreset preset = (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > CFStringRef presetName = nil; > if (PMPresetCopyName(preset, &presetName) == noErr && CFStringGetLength(presetName) > 0) { > NSLog(@" presetName: '%@'", presetName); > NSDictionary* dict = nil; > if (PMPresetGetAttributes(preset, (CFDictionaryRef*)(&dict)) == noErr) { > // print preset dict > > > The idea of the proposed fix is to store printer dependent key/value pairs in the `/conf/printer.properties` property file. > > The property file has the format: > > print-attribute.print-attribute-value.key=value > > where `print-attribute` is the java print attribute, `print-attribute-value` is the corresponding attribute value, and `key` and `value` is the key/value pair used by a specific printer. > > For example, for `Chromaticity` attribute the property file could look like: > > Chromaticity.MONOCHROME.ColorModel=Gray > Chromaticity.COLOR.ColorModel=CMYK > Chromaticity.MONOCHROME.HPColorMode=grayscale > Chromaticity.COLOR.HPColorMode=color > > where `Chromaticity.MONOCHROME` key prefix corresponds to `Chromaticity.MONOCHOROME` print attribute constant with (... I wonder how this is supposed to be documented ? And who is supposed to maintain this file ? I think this PR should be withdrawn. src/java.desktop/share/conf/printer.properties line 1: > 1: Chromaticity.MONOCHROME.BRPrintQuality=Black Why, oh why would a file needed for CUPS on macOS be in shared code ? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992119844 PR Review Comment: https://git.openjdk.org/jdk/pull/18195#discussion_r1521814087 From honkar at openjdk.org Tue Mar 12 16:57:12 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 16:57:12 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 08:33:41 GMT, Alexey Ivanov wrote: > This is to simplify `TrayIconScalingTest.java`. > > 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. > 2. Move creating tray icon to the top. > 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. > 4. Ensure tray is not null before removing the icon. > 5. Pass AWTException as the cause in the wrapped exception. > > Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. > > With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. Changes looks good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18224#pullrequestreview-1931662180 From prr at openjdk.org Tue Mar 12 16:57:13 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 16:57:13 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 16:48:28 GMT, Alexey Ivanov wrote: >> The test is converted to use `PassFailJFrame`. >> >> I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Use the correct path to library Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18234#pullrequestreview-1931663214 From honkar at openjdk.org Tue Mar 12 17:00:16 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 17:00:16 GMT Subject: RFR: 8325851: Hide PassFailJFrame.Builder constructor In-Reply-To: References: Message-ID: <1dB0wbceTakN-sKndzyzrRfCvtcoyR95a4Djd44S-Qo=.a458fa76-32af-498f-84d0-585496575801@github.com> On Mon, 11 Mar 2024 21:18:40 GMT, Alexey Ivanov wrote: > The `Builder` class in `PassFailJFrame` is public and has a public constructor. At the same time, a better design would be to hide all the Builder constructors and rely on the `builder()` method which returns an instance of the `Builder` class. > > This PR makes the constructor of the `Builder` class private so that it's not accessible directly. > > Use `PassFailJFrame.builder()` to get an instance of the builder and configure parameters of `PassFailJFrame`. > > I updated all the tests which used the constructor directly by calling `new PassFailJFrame.Builder()`. > > I converted a few tests to use the `testUI`, which greatly simplifies the test code. This change also removes flickering of the test UI. PassFailJFrame's Builder changes and corresponding test changes look good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18206#pullrequestreview-1931674713 From prr at openjdk.org Tue Mar 12 17:02:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 17:02:14 GMT Subject: RFR: 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:34:57 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18231#pullrequestreview-1931679316 From prr at openjdk.org Tue Mar 12 17:07:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 17:07:14 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:47:46 GMT, Alexey Ivanov wrote: >> Converts the manual applet test in the files .. >> SpanishDiacriticsTest/SpanishDiacriticsTest.html >> SpanishDiacriticsTest/SpanishDiacriticsTest.java >> .. to a main program using PassFailJFrame >> >> Added requires windows since it seems very windows-specific. >> >> I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway > > test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 60: > >> 58: expected behaviour for this test. >> 59: >> 60: If the text field displays ''o, (i.e. o should be without an acute) > > Suggestion: > > If the text field displays \u00f3, (i.e. o should be without an acute) > > Use the real character? It isn't a single char. It is as written - the sequence of 3 characters - "single quote" "single quote", "latin lower case o" ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521834822 From aivanov at openjdk.org Tue Mar 12 17:11:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 17:11:14 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 17:05:04 GMT, Phil Race wrote: >> test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 60: >> >>> 58: expected behaviour for this test. >>> 59: >>> 60: If the text field displays ''o, (i.e. o should be without an acute) >> >> Suggestion: >> >> If the text field displays \u00f3, (i.e. o should be without an acute) >> >> Use the real character? > > It isn't a single char. It is as written - the sequence of 3 characters - "single quote" "single quote", "latin lower case o" I misread it. If the text is `''o` instead of `?`? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521839155 From aivanov at openjdk.org Tue Mar 12 17:15:20 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 17:15:20 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 17:08:18 GMT, Alexey Ivanov wrote: >> It isn't a single char. It is as written - the sequence of 3 characters - "single quote" "single quote", "latin lower case o" > > I misread it. If the text is `''o` instead of `?`? What if we spell the conditions explicitly: The text field should display ''o (i.e. two apostrophes and o without an acute), press Pass. If you see ? (i.e. o with an acute), press Fail. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521844133 From prr at openjdk.org Tue Mar 12 17:27:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 17:27:14 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 17:12:08 GMT, Alexey Ivanov wrote: >> I misread it. If the text is `''o` instead of `?`? > > What if we spell the conditions explicitly: > > The text field should display ''o (i.e. two apostrophes and o without an acute), press Pass. > If you see ? (i.e. o with an acute), press Fail. I will reword it but the text is the same as was in the HTML file with just some minor grammatical changes in the surrounding text. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521860016 From alexsch at openjdk.org Tue Mar 12 17:31:14 2024 From: alexsch at openjdk.org (Alexander Scherbatiy) Date: Tue, 12 Mar 2024 17:31:14 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 16:41:12 GMT, Phil Race wrote: > But I am really surprised to see a PR rather than a discussion first as it is making a lot of policy decisions and implies we need to support something I am not sure we want to support. There was an email with the issue discussion on the client-libs-dev alias: https://mail.openjdk.org/pipermail/client-libs-dev/2023-August/014497.html Setting Chromaticity.MONOCHROME print request attribute on macOS What is the right way to use different key/values (ColorModel: Gray, HPColorMode: grayscale, ...) in code to set Black & White settings for NSPrintInfo? Could it be a configuration file which contains all color model key/values for all known printers? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992189765 From prr at openjdk.org Tue Mar 12 17:36:46 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 17:36:46 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program [v2] In-Reply-To: References: Message-ID: > Converts the manual applet test in the files .. > SpanishDiacriticsTest/SpanishDiacriticsTest.html > SpanishDiacriticsTest/SpanishDiacriticsTest.java > .. to a main program using PassFailJFrame > > Added requires windows since it seems very windows-specific. > > I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway Phil Race has updated the pull request incrementally with two additional commits since the last revision: - 8327856 - 8327856 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18208/files - new: https://git.openjdk.org/jdk/pull/18208/files/a2cb3493..7fb3fe7c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18208&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18208&range=00-01 Stats: 6 lines in 1 file changed: 1 ins; 1 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18208.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18208/head:pull/18208 PR: https://git.openjdk.org/jdk/pull/18208 From aivanov at openjdk.org Tue Mar 12 17:55:12 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 17:55:12 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program [v2] In-Reply-To: References: Message-ID: <2VuqrJiojAD00M1Wzqo1uJPUFUFiaQmr4iqBf2T97eo=.50c1f6d0-9288-43b9-b140-f0a518bb3f31@github.com> On Tue, 12 Mar 2024 17:24:22 GMT, Phil Race wrote: >> What if we spell the conditions explicitly: >> >> The text field should display ''o (i.e. two apostrophes and o without an acute), press Pass. >> If you see ? (i.e. o with an acute), press Fail. > > I will reword it but the text is the same as was in the HTML file with just some minor grammatical changes in the surrounding text. Making the instructions clearer helps to avoid confusion. Thank you for updating them, looks clearer now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521897700 From aivanov at openjdk.org Tue Mar 12 17:55:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 17:55:14 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:50:16 GMT, Alexey Ivanov wrote: >> Phil Race has updated the pull request incrementally with two additional commits since the last revision: >> >> - 8327856 >> - 8327856 > > test/jdk/java/awt/InputMethods/SpanishDiacriticsTest.java line 89: > >> 87: frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); >> 88: frame.pack(); >> 89: frame.setVisible(true); > > Suggestion: > > frame.pack(); > > Calling `setVisible(true)` here causes flickering as the frame gets shown at its default location and later gets moved to its final location. > > Setting close operation is redundant, `PassFailJFrame` handles closing test UI (when you use the builder pattern) and fails the test if it's closed. Calling `setVisible(true)` does not affect functionality, purely aesthetic effect to avoid window flickering. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18208#discussion_r1521899607 From aivanov at openjdk.org Tue Mar 12 18:01:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 18:01:13 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program [v2] In-Reply-To: References: Message-ID: <3V94z10zAR33k1zhAAESJ3Kf9Z7SJTP3Lk0pBiAYyDA=.f94cbf19-2c3c-4a80-bc05-6ddc4ec8cec3@github.com> On Tue, 12 Mar 2024 17:36:46 GMT, Phil Race wrote: >> Converts the manual applet test in the files .. >> SpanishDiacriticsTest/SpanishDiacriticsTest.html >> SpanishDiacriticsTest/SpanishDiacriticsTest.java >> .. to a main program using PassFailJFrame >> >> Added requires windows since it seems very windows-specific. >> >> I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway > > Phil Race has updated the pull request incrementally with two additional commits since the last revision: > > - 8327856 > - 8327856 Looks good to me except for `setVisible(true)` in `createUI`. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18208#pullrequestreview-1931891527 From prr at openjdk.org Tue Mar 12 18:24:31 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 18:24:31 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program [v3] In-Reply-To: References: Message-ID: > Converts the manual applet test in the files .. > SpanishDiacriticsTest/SpanishDiacriticsTest.html > SpanishDiacriticsTest/SpanishDiacriticsTest.java > .. to a main program using PassFailJFrame > > Added requires windows since it seems very windows-specific. > > I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8327856 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18208/files - new: https://git.openjdk.org/jdk/pull/18208/files/7fb3fe7c..73aa1b7a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18208&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18208&range=01-02 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18208.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18208/head:pull/18208 PR: https://git.openjdk.org/jdk/pull/18208 From aivanov at openjdk.org Tue Mar 12 18:24:31 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 12 Mar 2024 18:24:31 GMT Subject: RFR: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 18:21:58 GMT, Phil Race wrote: >> Converts the manual applet test in the files .. >> SpanishDiacriticsTest/SpanishDiacriticsTest.html >> SpanishDiacriticsTest/SpanishDiacriticsTest.java >> .. to a main program using PassFailJFrame >> >> Added requires windows since it seems very windows-specific. >> >> I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8327856 Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18208#pullrequestreview-1931975342 From honkar at openjdk.org Tue Mar 12 18:25:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 18:25:26 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main Message-ID: The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. - test renamed to PinyinIMCapsTest - moved one directory above - /java/awt/im/ - html file deleted. ------------- Commit messages: - added requires tag - removed extra newline - test file added - applet test to main Changes: https://git.openjdk.org/jdk/pull/18245/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18245&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328000 Stats: 168 lines in 3 files changed: 82 ins; 86 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18245.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18245/head:pull/18245 PR: https://git.openjdk.org/jdk/pull/18245 From azvegint at openjdk.org Tue Mar 12 18:26:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 18:26:21 GMT Subject: Integrated: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 17:53:48 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. This pull request has now been integrated. Changeset: 30249c4c Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/30249c4cca51dccd24d5f8f58c7a34c27948a295 Stats: 438 lines in 3 files changed: 106 ins; 332 del; 0 mod 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main Reviewed-by: aivanov, tr ------------- PR: https://git.openjdk.org/jdk/pull/18205 From azvegint at openjdk.org Tue Mar 12 18:27:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 18:27:21 GMT Subject: Integrated: 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:34:57 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. This pull request has now been integrated. Changeset: 7283c8b0 Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/7283c8b075aa289dbb9cb80f6937b3349c8d4769 Stats: 225 lines in 3 files changed: 91 ins; 134 del; 0 mod 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main Reviewed-by: aivanov, prr ------------- PR: https://git.openjdk.org/jdk/pull/18231 From honkar at openjdk.org Tue Mar 12 18:29:12 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 18:29:12 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 18:20:14 GMT, Harshitha Onkar wrote: > The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. > > - test renamed to PinyinIMCapsTest > - moved one directory above - /java/awt/im/ > - html file deleted. I tried to automate this test using Robot, but was unable to produce the same effect as a keyboard keypress for Pinyin. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18245#issuecomment-1992294533 From prr at openjdk.org Tue Mar 12 18:30:24 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 18:30:24 GMT Subject: Integrated: 8327856: Convert applet test SpanishDiacriticsTest.java to a main program In-Reply-To: References: Message-ID: <376WJeSOKzdDfgFt-ByO2StnN8TjERWS9jaJFbC5TXg=.bd0c8e7d-db5a-4759-a216-75701fd1883d@github.com> On Mon, 11 Mar 2024 23:02:53 GMT, Phil Race wrote: > Converts the manual applet test in the files .. > SpanishDiacriticsTest/SpanishDiacriticsTest.html > SpanishDiacriticsTest/SpanishDiacriticsTest.java > .. to a main program using PassFailJFrame > > Added requires windows since it seems very windows-specific. > > I got rid of the redundant extra directory which makes the .java file "new" according to github but it is largely changed anyway This pull request has now been integrated. Changeset: 22f10e04 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/22f10e045b3decdb51a3cc7644c47f911aec753d Stats: 189 lines in 3 files changed: 92 ins; 97 del; 0 mod 8327856: Convert applet test SpanishDiacriticsTest.java to a main program Reviewed-by: dmarkov, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18208 From prr at openjdk.org Tue Mar 12 18:54:24 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 18:54:24 GMT Subject: RFR: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java Message-ID: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> This was recently converted from a manual Applet to a PassFailJFrame main program But I see a few things that could be tweaked - Clarify instructions - Set path to PassFailJFrame - reduce timeout to default - eliminate redundant folder ------------- Commit messages: - 8328004 - 8328004 Changes: https://git.openjdk.org/jdk/pull/18246/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18246&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328004 Stats: 264 lines in 2 files changed: 133 ins; 131 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18246.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18246/head:pull/18246 PR: https://git.openjdk.org/jdk/pull/18246 From dnguyen at openjdk.org Tue Mar 12 18:55:32 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 12 Mar 2024 18:55:32 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main Message-ID: Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. ------------- Commit messages: - Initial test changes Changes: https://git.openjdk.org/jdk/pull/18247/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328005 Stats: 72 lines in 2 files changed: 15 ins; 31 del; 26 mod Patch: https://git.openjdk.org/jdk/pull/18247.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18247/head:pull/18247 PR: https://git.openjdk.org/jdk/pull/18247 From prr at openjdk.org Tue Mar 12 18:56:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 18:56:14 GMT Subject: RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 17:28:57 GMT, Alexander Scherbatiy wrote: > > But I am really surprised to see a PR rather than a discussion first as it is making a lot of policy decisions > > and implies we need to support something I am not sure we want to support. > > There was an email with the issue discussion on the client-libs-dev alias: https://mail.openjdk.org/pipermail/client-libs-dev/2023-August/014497.html > > ``` > Setting Chromaticity.MONOCHROME print request attribute on macOS > > What is the right way to use different key/values (ColorModel: Gray, > HPColorMode: grayscale, ...) in code to set Black & White settings for > NSPrintInfo? > Could it be a configuration file which contains all color model > key/values for all known printers? > ``` No replies to that. Clearly it was not noticed. A problem with all the PR notifications to the mailing lists is that real emails get overlooked. You should have re-sent it. I don't know what the right answer is for this. Not off the top of my head. I just know that this smells like the Linux font configuration files which were always wrong and/or late as well as being a serious maintenance burden. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18195#issuecomment-1992334610 From prr at openjdk.org Tue Mar 12 19:38:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 19:38:14 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> Message-ID: <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> On Tue, 5 Mar 2024 17:40:01 GMT, Alexey Ivanov wrote: >> 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 evaluation performed by the submitter of the bug provided enough details to create a test, reproduce the problem and finally resolve it. >> >> Without the fix, the regression test always fails: >> >> a < b & b < c but a >= c >> where >> a = C:\Users\Documents(true) >> b = C:\Users(false) >> c = C:\Users\Documents(false) >> >> as well as for the reverse case: `a > b & b > c`. >> >> How it is possible to have the same folder in a list of files twice remains unknown. I believe it is another bug in JDK, however, no one has been able to reproduce it so far. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Handle fakePersonal on Windows 10 > > The desktop folder on Windows 10 does not include > the Personal (Documents) folder. src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java line 525: > 523: boolean special2 = sf2.isSpecial(); > 524: > 525: if (special1 && special2) { Could you please say something on how/why this change solves it ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1522020052 From prr at openjdk.org Tue Mar 12 20:04:13 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:04:13 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 11:27:08 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Store the size of fileCache inside synchronized block If this makes that CCME go away I'll be pleased. I am assuming you've run the "full" battery of tests on this. ------------- Marked as reviewed by prr (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18111#pullrequestreview-1932311404 From azvegint at openjdk.org Tue Mar 12 20:09:25 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 20:09:25 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main Message-ID: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> The test is converted to main. Tested on Linux, Macos and Windows. ------------- Commit messages: - 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main - 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main Changes: https://git.openjdk.org/jdk/pull/18250/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328011 Stats: 271 lines in 3 files changed: 95 ins; 176 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18250.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18250/head:pull/18250 PR: https://git.openjdk.org/jdk/pull/18250 From honkar at openjdk.org Tue Mar 12 20:09:30 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 20:09:30 GMT Subject: RFR: JDK-8328012 : Convert java/awt/im/8148984/bug8148984.java applet test to main Message-ID: The following InputMethod test, bug8148984.java is converted to main using PassFailJFrame. - test intruction updated to make to more clear - test renamed to PinyinIMCommaTest - moved one directory above - /java/awt/im/ - html file deleted. ------------- Commit messages: - applet to main changes Changes: https://git.openjdk.org/jdk/pull/18251/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328012 Stats: 170 lines in 3 files changed: 85 ins; 85 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18251.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18251/head:pull/18251 PR: https://git.openjdk.org/jdk/pull/18251 From azvegint at openjdk.org Tue Mar 12 20:09:25 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 20:09:25 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main In-Reply-To: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Tue, 12 Mar 2024 19:28:45 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1338: > 1336: if (panelCreator != null) { > 1337: if (splitUI && (testWindows != null || windowListCreator != null)) { > 1338: // TODO Is it required? We can support both @aivanov-jdk please note, I am going to remove this check, it looks artificial to me. In this test I added a JTextArea to display logs and messages. It looks like we could add similar functionality to PassFailJFrame (outside the scope of this issue, of course). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1522022355 From prr at openjdk.org Tue Mar 12 20:10:15 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:10:15 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 11:07:38 GMT, Alexander Zuev wrote: >> Clean up five more tests. >> >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java >> test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Bumped copyright year of the affected tests > Minor changes based on the review comments With the exception of bug4694598.java, there is no need for the extra level of folder for these tests ------------- PR Comment: https://git.openjdk.org/jdk/pull/18184#issuecomment-1992474806 From prr at openjdk.org Tue Mar 12 20:10:16 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:10:16 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:18:25 GMT, Alexey Ivanov wrote: >> I believe it's unexpected because we don't expect `PropertyVetoException`, in which case failure seems a better option. >> >> If anything changes so that `PropertyVetoException` would be thrown all the time, the test would appear to be passing whereas it would not run at all. > > This is the only point with which I *disagree*. Right, I see no reason to catch anything unless it is known to sometimes happen and not be a problem. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522052020 From prr at openjdk.org Tue Mar 12 20:10:16 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:10:16 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:06:59 GMT, Alexey Ivanov wrote: >> I prefer to keep things simpler and not to create an additional possible point of failure. The supporting html file is self-explanatory and, if needed, can be changed outside of fixing the test itself. > > It will make the test self-contained, which, in my opinion, is preferred. This is a good point. If we can find a way to do this without the extra file it is very much preferred. Then we don't need the extra folder level either. >> I do not see any harm in using JRobot, it is a Swing test after all. > > No harm but a dependency on a library which isn't used. I am very much against including libraries that aren't needed. If this test isn't using any JRobot functionality, please remove it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522051125 PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522049055 From azvegint at openjdk.org Tue Mar 12 20:13:15 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 12 Mar 2024 20:13:15 GMT Subject: RFR: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java In-Reply-To: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> References: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> Message-ID: On Tue, 12 Mar 2024 18:49:03 GMT, Phil Race wrote: > This was recently converted from a manual Applet to a PassFailJFrame main program > But I see a few things that could be tweaked > - Clarify instructions > - Set path to PassFailJFrame > - reduce timeout to default > - eliminate redundant folder test/jdk/java/awt/TrayIcon/DisposeInActionEventTest.java line 58: > 56: } > 57: String clickInstruction = > 58: (Platform.isOSX()) ? "Right-click" : "Double click (left mouse button)"; On Linux, it triggers with a single click(Tested on Ubuntu 23.10) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18246#discussion_r1522053539 From prr at openjdk.org Tue Mar 12 20:13:15 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:13:15 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 11:53:14 GMT, Andrey Turbanov wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Bumped copyright year of the affected tests >> Minor changes based on the review comments > > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 83: > >> 81: robo.setAutoDelay(100); >> 82: robo.delay(1000); >> 83: robo.mouseMove(100,100); > > Suggestion: > > robo.mouseMove(100, 100); Whilst it is fine to use setLocation(int, int), I do agree that assuming it will be precisely honoured is risky. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522054869 From prr at openjdk.org Tue Mar 12 20:19:16 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:19:16 GMT Subject: RFR: 8325851: Hide PassFailJFrame.Builder constructor In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 21:18:40 GMT, Alexey Ivanov wrote: > The `Builder` class in `PassFailJFrame` is public and has a public constructor. At the same time, a better design would be to hide all the Builder constructors and rely on the `builder()` method which returns an instance of the `Builder` class. > > This PR makes the constructor of the `Builder` class private so that it's not accessible directly. > > Use `PassFailJFrame.builder()` to get an instance of the builder and configure parameters of `PassFailJFrame`. > > I updated all the tests which used the constructor directly by calling `new PassFailJFrame.Builder()`. > > I converted a few tests to use the `testUI`, which greatly simplifies the test code. This change also removes flickering of the test UI. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18206#pullrequestreview-1932375765 From prr at openjdk.org Tue Mar 12 20:29:19 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:29:19 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v2] In-Reply-To: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> References: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> Message-ID: On Tue, 12 Mar 2024 00:39:26 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with five additional commits since the last revision: > > - fix pfjframe builder styling and jtreg manual tag > - revert spacing > - revert files > - restore file > - revert file test/jdk/javax/swing/JColorChooser/Test4222508.java line 32: > 30: * @test > 31: * @bug 4222508 > 32: * @library /test/jdk/java/awt/regtesthelpers /test/lib change this to remove /test/jdk test/jdk/javax/swing/JColorChooser/Test4222508.java line 44: > 42: "and click on colors again. \n" + > 43: "If the JColorChooser is disabled when the checkbox is unchecked, \n" + > 44: "then pass the test.") The line breaks here are in random odd places. It should be more like this "Click on colors in the JColorChooser.\n" + "Then uncheck the checkbox and click on colors again.\n" + "If the JColorChooser is disabled when the checkbox is unchecked, then pass the test."; You can also use text blocks if you want test/jdk/javax/swing/JColorChooser/Test4222508.java line 54: > 52: > 53: public static JFrame test() { > 54: JFrame frame = new JFrame(); give the frame a meaningful title that is not identical to the one to the PassFailJFrame. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1522066024 PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1522068889 PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1522070278 From honkar at openjdk.org Tue Mar 12 20:33:29 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 20:33:29 GMT Subject: RFR: JDK-8328012 : Convert java/awt/im/8148984/bug8148984.java applet test to main [v2] In-Reply-To: References: Message-ID: > The following InputMethod test, bug8148984.java is converted to main using PassFailJFrame. > > - test instructions updated to make to more clear > - test renamed to PinyinIMCommaTest > - moved one directory above - /java/awt/im/ > - html file deleted. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: removed unused Util from jtreg header ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18251/files - new: https://git.openjdk.org/jdk/pull/18251/files/4db1ad72..2253bf68 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18251.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18251/head:pull/18251 PR: https://git.openjdk.org/jdk/pull/18251 From prr at openjdk.org Tue Mar 12 20:43:15 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:43:15 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 13:50:42 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Remove commented line Marked as reviewed by prr (Reviewer). Oh, I just noticed we have an extra folder level. Please fix that. test/jdk/javax/swing/JToolTip/4644444/bug4644444.java line 58: > 56: JButton button = new JButton("Button"); > 57: button.setToolTipText("Somthing really long 1234567890 1234567890 " + > 58: "1234567890 1234567890 1234567890 1234567890 1234567890 1234567890"); VERY minor : Somthing -> Something ------------- PR Review: https://git.openjdk.org/jdk/pull/18212#pullrequestreview-1932482393 PR Comment: https://git.openjdk.org/jdk/pull/18212#issuecomment-1992539883 PR Review Comment: https://git.openjdk.org/jdk/pull/18212#discussion_r1522083936 From prr at openjdk.org Tue Mar 12 20:50:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:50:14 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v2] In-Reply-To: References: Message-ID: <_LATXltsWFMkk0DScS2Xk5e4_Yc-iGQbts9NDYjUOQg=.84dc1a2a-8622-45df-a980-5cd33571af0c@github.com> On Tue, 12 Mar 2024 10:01:25 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates test/jdk/javax/swing/border/Test4247606.java line 47: > 45: public static void main(String[] args) throws Exception { > 46: String testInstructions = """ > 47: If the button do not fit into the titled border bounds do -> does test/jdk/javax/swing/border/Test4247606.java line 62: > 60: } > 61: > 62: public static JComponent init() { It is no longer an applet. I expect we can find a different method name. test/jdk/javax/swing/border/Test4247606.java line 74: > 72: > 73: Box main = Box.createVerticalBox(); > 74: main.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8)); The above empty border was not in the original test. Why is it needed ? And why the Box too ? Surely we should just return the value of the call to create(..) ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18213#discussion_r1522086715 PR Review Comment: https://git.openjdk.org/jdk/pull/18213#discussion_r1522090271 PR Review Comment: https://git.openjdk.org/jdk/pull/18213#discussion_r1522092280 From prr at openjdk.org Tue Mar 12 20:53:13 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:53:13 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main In-Reply-To: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: On Tue, 12 Mar 2024 06:43:36 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework We no longer need the extra folder level. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18215#issuecomment-1992552561 From prr at openjdk.org Tue Mar 12 20:59:19 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:59:19 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:22:35 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments test/jdk/java/awt/FileDialog/MultipleMode.java line 70: > 68: } > 69: > 70: private static Frame init() { init() -> createMultiModeFrame() ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1522100330 From prr at openjdk.org Tue Mar 12 20:59:19 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 20:59:19 GMT Subject: RFR: 8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main [v2] In-Reply-To: <0BgrMHnRLNliT2frpabItYx4BBckGEoj0-nRJNDkgTg=.dd03fbd1-27e3-4ff0-84da-f770f21abfcf@github.com> References: <0BgrMHnRLNliT2frpabItYx4BBckGEoj0-nRJNDkgTg=.dd03fbd1-27e3-4ff0-84da-f770f21abfcf@github.com> Message-ID: On Tue, 12 Mar 2024 11:30:00 GMT, Alexey Ivanov wrote: >> It is not in the center, because in the latest commit I added `.position(PassFailJFrame.Position.TOP_LEFT_CORNER)`, as Alexey suggested. > > I have 1920?1200 with 150%. This is why it doesn't fit. The second frame overlapped instructions a bit. That would be 1280x800 user pixels ? These days tests should be able to assume that there are 1920x1080 user-space pixels on the screen. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18205#discussion_r1522099974 From prr at openjdk.org Tue Mar 12 21:05:15 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 21:05:15 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 15:52:45 GMT, Alexey Ivanov wrote: > I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). > > I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. > > The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. > > For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. > > When the test passes, it usually completes in 5 minutes. > > **How the test works** > > The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. > > The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. > > A timer is used to create new files in the directory that the file chooser is using. > > After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. > > If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. > > On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. > > On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. > > On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for it to complete. The chance of updating `fileCache` whil... "When the test passes, it usually completes in 5 minutes." and you've never seen the test time out ? I thought default jtreg timeout is 120 seconds. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-1992583634 From prr at openjdk.org Tue Mar 12 21:06:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 21:06:14 GMT Subject: RFR: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." [v2] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 20:07:19 GMT, Alisen Chung wrote: >> Introduce delays in test to stabilize. Test passes 50x after fix. > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update copyright, fix jtreg formatting, update frame title, expand imports Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18091#pullrequestreview-1932592126 From prr at openjdk.org Tue Mar 12 21:07:15 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 21:07:15 GMT Subject: RFR: 8286759: TextComponentPrintable: consequent -> consecutive positions [v2] In-Reply-To: References: Message-ID: On Tue, 5 Mar 2024 15:51:56 GMT, Alexey Ivanov wrote: >> 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 incrementally with one additional commit since the last revision: > > Amend the comment with the suggested text Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18067#pullrequestreview-1932599239 From honkar at openjdk.org Tue Mar 12 21:07:39 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 21:07:39 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v3] In-Reply-To: References: Message-ID: <41r-RpEnShR3W-_8U1yyKQ5OmfUO3FvHMLQgR9oNeB0=.b6c4544c-b75f-4476-8dee-df1dae44c7d7@github.com> > The following InputMethod test, bug8148984.java is converted to main using PassFailJFrame. > > - test instructions updated to make to more clear > - test renamed to PinyinIMCommaTest > - moved one directory above - /java/awt/im/ > - html file deleted. > > Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: added Fullstop test case ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18251/files - new: https://git.openjdk.org/jdk/pull/18251/files/2253bf68..e82034f4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=01-02 Stats: 171 lines in 3 files changed: 86 ins; 85 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18251.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18251/head:pull/18251 PR: https://git.openjdk.org/jdk/pull/18251 From honkar at openjdk.org Tue Mar 12 21:07:39 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 21:07:39 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 20:33:29 GMT, Harshitha Onkar wrote: >> The following InputMethod test, bug8148984.java is converted to main using PassFailJFrame. >> >> - test instructions updated to make to more clear >> - test renamed to PinyinIMCommaTest >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > removed unused Util from jtreg header `java/awt/im/8148984/bug8148984.java` (tests comma character) & `test/jdk/java/awt/im/8132503/bug8132503.java` (tests fullstop character) are similar so I'm using the same PR to update both. These tests essentially have similar instructions and test settings except testing a different character. As such these can be combined as a single test, but the instruction may become long and complex hence keeping them as separate tests. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18251#issuecomment-1992577598 From kizune at openjdk.org Tue Mar 12 21:36:13 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 21:36:13 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 20:08:00 GMT, Phil Race wrote: >> This is the only point with which I *disagree*. > > Right, I see no reason to catch anything unless it is known to sometimes happen and not be a problem. Ok, removing the try/catch clause, this will cause this exception to cause test to fail. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522142476 From honkar at openjdk.org Tue Mar 12 21:47:12 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 21:47:12 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main In-Reply-To: References: Message-ID: <8mKengQY72zZc6x55LgXMuV4LpH7s9Ak0sNY1FipFcU=.34987801-8b2e-491c-a6c3-d058b7c9d3f0@github.com> On Tue, 12 Mar 2024 18:50:58 GMT, Damon Nguyen wrote: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. test/jdk/java/awt/im/JTextFieldTest.java line 73: > 71: frame.getContentPane().add(tf2); > 72: frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); > 73: frame.setVisible(true); frame.setVisible(true) not required here. Can be removed has PassFailJFrame manages it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1522153325 From honkar at openjdk.org Tue Mar 12 21:53:12 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 21:53:12 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 18:50:58 GMT, Damon Nguyen wrote: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. test/jdk/java/awt/im/JTextFieldTest.java line 59: > 57: .columns(40) > 58: .position(PassFailJFrame.Position.TOP_LEFT_CORNER) > 59: .testUI(JTextFieldTest::createAndShowGUI) TestUI automatically positioned .position() is redundant Suggestion: .testUI(JTextFieldTest::createAndShowGUI) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1522158754 From honkar at openjdk.org Tue Mar 12 21:58:13 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 12 Mar 2024 21:58:13 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 16:48:28 GMT, Alexey Ivanov wrote: >> The test is converted to use `PassFailJFrame`. >> >> I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Use the correct path to library Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18234#pullrequestreview-1932771068 From kizune at openjdk.org Tue Mar 12 22:20:14 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 22:20:14 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 20:11:02 GMT, Phil Race wrote: >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java line 83: >> >>> 81: robo.setAutoDelay(100); >>> 82: robo.delay(1000); >>> 83: robo.mouseMove(100,100); >> >> Suggestion: >> >> robo.mouseMove(100, 100); > > Whilst it is fine to use setLocation(int, int), I do agree that assuming it will be precisely honoured is risky. Ok, i will ise the actual location of the frame instead. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522183171 From kizune at openjdk.org Tue Mar 12 22:33:51 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 22:33:51 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: Message-ID: > Clean up five more tests. > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java > test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Minor changes based on the review. Tests moved to the components folders. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18184/files - new: https://git.openjdk.org/jdk/pull/18184/files/84eb696b..8a3496c3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18184&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18184&range=01-02 Stats: 20 lines in 4 files changed: 4 ins; 7 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18184.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18184/head:pull/18184 PR: https://git.openjdk.org/jdk/pull/18184 From kizune at openjdk.org Tue Mar 12 22:33:51 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 12 Mar 2024 22:33:51 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: Message-ID: <69zPqF_bYOTi4OPkuaUINvLJhWo-q-07ovKH3vGTH5E=.d5682e08-a711-460d-acbb-71bed7b9f6df@github.com> On Tue, 12 Mar 2024 20:04:52 GMT, Phil Race wrote: >> No harm but a dependency on a library which isn't used. > > I am very much against including libraries that aren't needed. > If this test isn't using any JRobot functionality, please remove it. Ok, removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522192083 From prr at openjdk.org Tue Mar 12 22:59:21 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 22:59:21 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program Message-ID: java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. It can be converted to a main program test using PassFailJFrame ------------- Commit messages: - 8328021 - 8328021 - 8328021 Changes: https://git.openjdk.org/jdk/pull/18255/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18255&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328021 Stats: 372 lines in 3 files changed: 95 ins; 277 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18255.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18255/head:pull/18255 PR: https://git.openjdk.org/jdk/pull/18255 From prr at openjdk.org Tue Mar 12 23:00:17 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 23:00:17 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 22:33:51 GMT, Alexander Zuev wrote: >> Clean up five more tests. >> >> test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java >> test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java >> test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java >> test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html >> test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Minor changes based on the review. > Tests moved to the components folders. test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html line 1: > 1: Looks like you forgot to remove this file ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522219073 From prr at openjdk.org Tue Mar 12 23:07:14 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 12 Mar 2024 23:07:14 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: Message-ID: <0ryKzZHF2d93tY_BwUSXcLEkf53B5VqGQ3d68iWZ87A=.c87d8105-a1af-4213-a337-cbe5d5bb695a@github.com> On Tue, 12 Mar 2024 22:57:45 GMT, Phil Race wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Minor changes based on the review. >> Tests moved to the components folders. > > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html line 1: > >> 1: > > Looks like you forgot to remove this file ? I'm also a bit surprised I don't see all the rest of the original html & java files anywhere now, not as deleted, not as changed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522226490 From dnguyen at openjdk.org Wed Mar 13 00:27:32 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 13 Mar 2024 00:27:32 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Fix suggested redudant changes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18247/files - new: https://git.openjdk.org/jdk/pull/18247/files/4c2658c5..9c1ceab9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18247.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18247/head:pull/18247 PR: https://git.openjdk.org/jdk/pull/18247 From honkar at openjdk.org Wed Mar 13 00:40:14 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 00:40:14 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main In-Reply-To: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Tue, 12 Mar 2024 19:28:45 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 76: > 74: textArea > 75: .append("Original Frame.getBounds() = %s\n" > 76: .formatted(frame.getBounds()))); Indentation looks off here. test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 88: > 86: textArea > 87: .append("Current Frame.getBounds() = %s\n" > 88: .formatted(frame.getBounds()))); Here too. test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 95: > 93: return frame; > 94: } > 95: } newline missing at EOF ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1522307251 PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1522307449 PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1522307686 From honkar at openjdk.org Wed Mar 13 00:40:15 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 00:40:15 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Tue, 12 Mar 2024 19:37:55 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1338: > >> 1336: if (panelCreator != null) { >> 1337: if (splitUI && (testWindows != null || windowListCreator != null)) { >> 1338: // TODO Is it required? We can support both > > @aivanov-jdk please note, I am going to remove this check, it looks artificial to me. > > In this test I added a JTextArea to display logs and messages. > It looks like we could add similar functionality to PassFailJFrame (outside the scope of this issue, of course). This looks like a valid scenario where testUI as well as splitUI are required to be used in combination. Making this change to PassFailJFrame can be helpful. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1522311897 From kizune at openjdk.org Wed Mar 13 00:52:21 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 00:52:21 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: <0ryKzZHF2d93tY_BwUSXcLEkf53B5VqGQ3d68iWZ87A=.c87d8105-a1af-4213-a337-cbe5d5bb695a@github.com> References: <0ryKzZHF2d93tY_BwUSXcLEkf53B5VqGQ3d68iWZ87A=.c87d8105-a1af-4213-a337-cbe5d5bb695a@github.com> Message-ID: <7eQxH7YccnlqX_6URln_xJ5si0IQ-Wzdhu1WRL59VG8=.3c4c7294-3c31-43e5-8842-c0dfa327631e@github.com> On Tue, 12 Mar 2024 23:04:17 GMT, Phil Race wrote: >> test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html line 1: >> >>> 1: >> >> Looks like you forgot to remove this file ? > > I'm also a bit surprised I don't see all the rest of the original html & java files anywhere now, not as deleted, not as changed. There's something wrong with the latest commit. Looking at it now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522320776 From azvegint at openjdk.org Wed Mar 13 00:53:36 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 00:53:36 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> > The test is converted to main. > Tested on Linux, Macos and Windows. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: minor formatting ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18250/files - new: https://git.openjdk.org/jdk/pull/18250/files/4bf3d766..c09f4949 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=00-01 Stats: 7 lines in 1 file changed: 0 ins; 2 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18250.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18250/head:pull/18250 PR: https://git.openjdk.org/jdk/pull/18250 From azvegint at openjdk.org Wed Mar 13 00:53:36 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 00:53:36 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Wed, 13 Mar 2024 00:30:56 GMT, Harshitha Onkar wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> minor formatting > > test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 76: > >> 74: textArea >> 75: .append("Original Frame.getBounds() = %s\n" >> 76: .formatted(frame.getBounds()))); > > Indentation looks off here. Updated ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1522321553 From honkar at openjdk.org Wed Mar 13 00:56:17 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 00:56:17 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> Message-ID: On Wed, 13 Mar 2024 00:53:36 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > minor formatting Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18250#pullrequestreview-1932986444 From dnguyen at openjdk.org Wed Mar 13 01:14:12 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 13 Mar 2024 01:14:12 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 11:15:38 GMT, Tejesh R wrote: > Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. Changes look straightforward and good to me. Changes requested by dnguyen (Committer). test/jdk/javax/swing/border/Test6910490.java line 63: > 61: public JFrame init() { > 62: Insets insets = new Insets(10, 10, 10, 10); > 63: JFrame frame = new JFrame("Matte border test"); Suggestion: JFrame frame = new JFrame("Matte Border Test"); ------------- Marked as reviewed by dnguyen (Committer). PR Review: https://git.openjdk.org/jdk/pull/18229#pullrequestreview-1932997587 PR Review: https://git.openjdk.org/jdk/pull/18229#pullrequestreview-1932997852 PR Review Comment: https://git.openjdk.org/jdk/pull/18229#discussion_r1522337337 From dnguyen at openjdk.org Wed Mar 13 01:14:13 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 13 Mar 2024 01:14:13 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 01:11:10 GMT, Damon Nguyen wrote: >> Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. > > test/jdk/javax/swing/border/Test6910490.java line 63: > >> 61: public JFrame init() { >> 62: Insets insets = new Insets(10, 10, 10, 10); >> 63: JFrame frame = new JFrame("Matte border test"); > > Suggestion: > > JFrame frame = new JFrame("Matte Border Test"); Title case ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18229#discussion_r1522337788 From honkar at openjdk.org Wed Mar 13 01:20:14 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 01:20:14 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 11:15:38 GMT, Tejesh R wrote: > Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18229#pullrequestreview-1933002465 From honkar at openjdk.org Wed Mar 13 01:23:13 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 01:23:13 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:49:06 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework Changes requested by honkar (Reviewer). test/jdk/javax/swing/JToggleButton/4128979/bug4128979.java line 81: > 79: > 80: public static JFrame createAndShowUI() { > 81: frame = new JFrame("Test window"); Frame title can be more descriptive. test/jdk/javax/swing/JToggleButton/4128979/bug4128979.java line 123: > 121: frame.setSize(600, 250); > 122: frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); > 123: frame.setVisible(true); frame.setVisible(true); redundant can be removed. ------------- PR Review: https://git.openjdk.org/jdk/pull/18233#pullrequestreview-1933003573 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1522343889 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1522343535 From tr at openjdk.org Wed Mar 13 03:10:12 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 03:10:12 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 13:50:42 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Remove commented line Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18212#pullrequestreview-1933084241 From kizune at openjdk.org Wed Mar 13 04:46:14 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 04:46:14 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: <7eQxH7YccnlqX_6URln_xJ5si0IQ-Wzdhu1WRL59VG8=.3c4c7294-3c31-43e5-8842-c0dfa327631e@github.com> References: <0ryKzZHF2d93tY_BwUSXcLEkf53B5VqGQ3d68iWZ87A=.c87d8105-a1af-4213-a337-cbe5d5bb695a@github.com> <7eQxH7YccnlqX_6URln_xJ5si0IQ-Wzdhu1WRL59VG8=.3c4c7294-3c31-43e5-8842-c0dfa327631e@github.com> Message-ID: <8YyEugvoumikE2jnUD1332TWjKCr3P-mUjSu7wi_0IA=.7579aae5-8faf-4343-86d9-1a09cb7eeba8@github.com> On Wed, 13 Mar 2024 00:49:15 GMT, Alexander Zuev wrote: >> I'm also a bit surprised I don't see all the rest of the original html & java files anywhere now, not as deleted, not as changed. > > There's something wrong with the latest commit. Looking at it now. Ok, either github or skara got mad at me for pushing commit with both rename and edit changes of the same files. Tried to fix it but it only gets worse so what i'm going to do is i will clone a fresh repository, move stuff there, close this PR and create a new one tomorrow morning with the latest versions of files in correct places. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18184#discussion_r1522506236 From tr at openjdk.org Wed Mar 13 04:49:26 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 04:49:26 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main [v2] In-Reply-To: References: Message-ID: <3rekONFkE6iTJQtljUWwkpZ0NRWacqI3cK6pO33ao_U=.62c269c8-3169-4748-8dcc-c7c8ec37306e@github.com> > Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18229/files - new: https://git.openjdk.org/jdk/pull/18229/files/8e4729c3..d8f01e22 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18229&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18229&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18229.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18229/head:pull/18229 PR: https://git.openjdk.org/jdk/pull/18229 From tr at openjdk.org Wed Mar 13 04:54:23 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 04:54:23 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18229/files - new: https://git.openjdk.org/jdk/pull/18229/files/d8f01e22..11a0e2c3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18229&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18229&range=01-02 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18229.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18229/head:pull/18229 PR: https://git.openjdk.org/jdk/pull/18229 From tr at openjdk.org Wed Mar 13 05:00:35 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 05:00:35 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18213/files - new: https://git.openjdk.org/jdk/pull/18213/files/22f73583..e1a5a360 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=01-02 Stats: 8 lines in 1 file changed: 0 ins; 4 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18213.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18213/head:pull/18213 PR: https://git.openjdk.org/jdk/pull/18213 From tr at openjdk.org Wed Mar 13 05:00:36 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 05:00:36 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v2] In-Reply-To: <_LATXltsWFMkk0DScS2Xk5e4_Yc-iGQbts9NDYjUOQg=.84dc1a2a-8622-45df-a980-5cd33571af0c@github.com> References: <_LATXltsWFMkk0DScS2Xk5e4_Yc-iGQbts9NDYjUOQg=.84dc1a2a-8622-45df-a980-5cd33571af0c@github.com> Message-ID: <2WSOzJnACIV8zFYfVF7D1N38SVEqPQCJyB4Pl_O8JsI=.9b831735-31f2-4239-8bd1-31ab6b98c2d4@github.com> On Tue, 12 Mar 2024 20:47:47 GMT, Phil Race wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/border/Test4247606.java line 74: > >> 72: >> 73: Box main = Box.createVerticalBox(); >> 74: main.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8)); > > The above empty border was not in the original test. Why is it needed ? And why the Box too ? > Surely we should just return the value of the call to create(..) ? Yes, we can return the JPanel directly instead of Box. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18213#discussion_r1522517361 From tr at openjdk.org Wed Mar 13 05:06:14 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 05:06:14 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v2] In-Reply-To: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> References: <2jj3nqjuevk8X1Ew2lCdYGdP6PVvjJii1QfKkUF0_e4=.dad52d97-0c05-4fe7-984c-b395562722f4@github.com> Message-ID: On Tue, 12 Mar 2024 00:39:26 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with five additional commits since the last revision: > > - fix pfjframe builder styling and jtreg manual tag > - revert spacing > - revert files > - restore file > - revert file test/jdk/javax/swing/JColorChooser/Test4222508.java line 37: > 35: * @run main/manual Test4222508 > 36: */ > 37: public final class Test4222508 { line space here. test/jdk/javax/swing/JColorChooser/Test4222508.java line 61: > 59: > 60: frame.getContentPane().add(chooser, BorderLayout.SOUTH); > 61: frame.getContentPane().add(checkbox, BorderLayout.NORTH); U can directly add to frame, without getting the ContentPane. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1522521299 PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1522521879 From tr at openjdk.org Wed Mar 13 05:15:16 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 05:15:16 GMT Subject: RFR: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java In-Reply-To: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> References: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> Message-ID: On Tue, 12 Mar 2024 18:49:03 GMT, Phil Race wrote: > This was recently converted from a manual Applet to a PassFailJFrame main program > But I see a few things that could be tweaked > - Clarify instructions > - Set path to PassFailJFrame > - reduce timeout to default > - eliminate redundant folder `textArea` can be moved inside `showFrameAndIcon()`. ------------- PR Review: https://git.openjdk.org/jdk/pull/18246#pullrequestreview-1933175995 From psadhukhan at openjdk.org Wed Mar 13 05:18:23 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 05:18:23 GMT Subject: RFR: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Remove redundant dir ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18228/files - new: https://git.openjdk.org/jdk/pull/18228/files/0597f306..0bade49a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18228&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18228&range=00-01 Stats: 0 lines in 1 file changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18228.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18228/head:pull/18228 PR: https://git.openjdk.org/jdk/pull/18228 From abhiscxk at openjdk.org Wed Mar 13 05:19:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 05:19:32 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main [v2] In-Reply-To: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18215/files - new: https://git.openjdk.org/jdk/pull/18215/files/d8d6aaf0..b99be0aa Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18215&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18215&range=00-01 Stats: 199 lines in 2 files changed: 99 ins; 100 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18215.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18215/head:pull/18215 PR: https://git.openjdk.org/jdk/pull/18215 From psadhukhan at openjdk.org Wed Mar 13 05:21:32 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 05:21:32 GMT Subject: RFR: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Remove redundant dir ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18232/files - new: https://git.openjdk.org/jdk/pull/18232/files/7cdfccd2..b3cae5e6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18232&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18232&range=00-01 Stats: 0 lines in 1 file changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18232.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18232/head:pull/18232 PR: https://git.openjdk.org/jdk/pull/18232 From abhiscxk at openjdk.org Wed Mar 13 05:27:43 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 05:27:43 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v4] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Test file moved outside of folder ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18212/files - new: https://git.openjdk.org/jdk/pull/18212/files/0892ab7c..a1adcc7c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18212&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18212.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18212/head:pull/18212 PR: https://git.openjdk.org/jdk/pull/18212 From prr at openjdk.org Wed Mar 13 05:35:13 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 05:35:13 GMT Subject: RFR: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java In-Reply-To: References: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> Message-ID: On Tue, 12 Mar 2024 20:09:35 GMT, Alexander Zvegintsev wrote: >> This was recently converted from a manual Applet to a PassFailJFrame main program >> But I see a few things that could be tweaked >> - Clarify instructions >> - Set path to PassFailJFrame >> - reduce timeout to default >> - eliminate redundant folder > > test/jdk/java/awt/TrayIcon/DisposeInActionEventTest.java line 58: > >> 56: } >> 57: String clickInstruction = >> 58: (Platform.isOSX()) ? "Right-click" : "Double click (left mouse button)"; > > On Linux, it triggers with a single click(Tested on Ubuntu 23.10) Manual tests that require a tester's interpretation and that are specific to the way a platform expects user interaction can be subjective but the idea is that they are objective. I already didn't like the clickInstruction logic, now I like it even less. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18246#discussion_r1522547494 From abhiscxk at openjdk.org Wed Mar 13 05:38:35 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 05:38:35 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment fix ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18233/files - new: https://git.openjdk.org/jdk/pull/18233/files/104ad507..61318960 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18233.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18233/head:pull/18233 PR: https://git.openjdk.org/jdk/pull/18233 From prr at openjdk.org Wed Mar 13 05:40:12 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 05:40:12 GMT Subject: RFR: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main [v4] In-Reply-To: References: Message-ID: <8jbrQ40omnCFSfwlC3USolGNnMLbeHUP8eGuZMMMH2Q=.b9731203-dafa-47d9-9e76-24ab33b9f4c6@github.com> On Wed, 13 Mar 2024 05:27:43 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Test file moved outside of folder Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18212#pullrequestreview-1933200257 From prr at openjdk.org Wed Mar 13 05:46:15 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 05:46:15 GMT Subject: RFR: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:21:32 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Remove redundant dir test/jdk/javax/swing/JOptionPane/bug8024926.java line 46: > 44: Verify that high resolution system icons are used > 45: in JOptionPane on HiDPI displays. > 46: 1) Run the test on Retina display or enable the Quartz Debug Quartz debug ? How ? And we don't even use Quartz. The pass criteria is completely subjective. So this test looks like it needs to be better. If you can't figure out a better test for this in less than a day just delete this useless thing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18232#discussion_r1522556572 From prr at openjdk.org Wed Mar 13 05:48:12 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 05:48:12 GMT Subject: RFR: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:18:23 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Remove redundant dir test/jdk/javax/swing/JOptionPane/bug4174551.java line 43: > 41: It should be true even on OS X. > 42: If it is not so press "Fail" else press "Pass". """; > 43: These instructions are so odd. How is the tester supposed to know the size they see ? What can we do better ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18228#discussion_r1522558818 From tr at openjdk.org Wed Mar 13 05:55:22 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 05:55:22 GMT Subject: RFR: 8328030: Convert javax/swing/text/GlyphView/4984669/bug4984669.java applet test to main Message-ID: Convert javax/swing/text/GlyphView/4984669/bug4984669.java manual applet test to main based using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18256/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18256&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328030 Stats: 165 lines in 3 files changed: 80 ins; 85 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18256.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18256/head:pull/18256 PR: https://git.openjdk.org/jdk/pull/18256 From psadhukhan at openjdk.org Wed Mar 13 06:13:36 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 06:13:36 GMT Subject: RFR: 8327754: Convert javax/swing/JPopupMenu/7160604/bug7160604.java applet to main Message-ID: <7frwXMi-bkKDX7Xw-pSh-AtGg7PcEdykdSmbvlVylhI=.9c9002c1-9c12-44ad-916a-f6c7dfd579ff@github.com> Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Fix - 8327754: Convert javax/swing/JPopupMenu/7160604/bug7160604.java applet to main Changes: https://git.openjdk.org/jdk/pull/18257/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18257&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327754 Stats: 237 lines in 3 files changed: 112 ins; 125 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18257.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18257/head:pull/18257 PR: https://git.openjdk.org/jdk/pull/18257 From psadhukhan at openjdk.org Wed Mar 13 06:35:33 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 06:35:33 GMT Subject: RFR: 8327755: Convert javax/swing/JScrollBar/8039464/Test8039464.java applet to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - 8327755: Convert javax/swing/JScrollBar/8039464/Test8039464.java applet to main Changes: https://git.openjdk.org/jdk/pull/18258/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18258&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327755 Stats: 219 lines in 3 files changed: 95 ins; 124 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18258.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18258/head:pull/18258 PR: https://git.openjdk.org/jdk/pull/18258 From kizune at openjdk.org Wed Mar 13 06:51:25 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 06:51:25 GMT Subject: Withdrawn: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: <-3Cb6R_Devak8w2HldVSRO2Jn4aYl1OjW-CJHiKQcmY=.69d5af32-09b6-46d9-9b2d-05a9e7934eff@github.com> On Mon, 11 Mar 2024 09:41:47 GMT, Alexander Zuev wrote: > Clean up five more tests. > > test/jdk/javax/swing/JDesktopPane/4132993/bug4132993.java > test/jdk/javax/swing/JDesktopPane/4773378/bug4773378.java > test/jdk/javax/swing/JEditorPane/4325606/bug4325606.java > test/jdk/javax/swing/JEditorPane/4330998/bug4330998.java > test/jdk/javax/swing/JEditorPane/4694598/FrameContent.html > test/jdk/javax/swing/JEditorPane/4694598/bug4694598.java This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/18184 From kizune at openjdk.org Wed Mar 13 06:55:40 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 06:55:40 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests Message-ID: Cleaned up five more tests. Continuation of https://github.com/openjdk/jdk/pull/18184 Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. All comments from the previous review are addressed. ------------- Commit messages: - 8316388: Opensource five Swing component related regression tests Changes: https://git.openjdk.org/jdk/pull/18259/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8316388 Stats: 468 lines in 5 files changed: 468 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18259.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18259/head:pull/18259 PR: https://git.openjdk.org/jdk/pull/18259 From tr at openjdk.org Wed Mar 13 07:05:29 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 07:05:29 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main Message-ID: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18260/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18260&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328035 Stats: 109 lines in 2 files changed: 29 ins; 71 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18260.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18260/head:pull/18260 PR: https://git.openjdk.org/jdk/pull/18260 From psadhukhan at openjdk.org Wed Mar 13 07:18:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 07:18:21 GMT Subject: RFR: 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Fix - 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main Changes: https://git.openjdk.org/jdk/pull/18261/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18261&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327756 Stats: 84 lines in 2 files changed: 38 ins; 35 del; 11 mod Patch: https://git.openjdk.org/jdk/pull/18261.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18261/head:pull/18261 PR: https://git.openjdk.org/jdk/pull/18261 From tr at openjdk.org Wed Mar 13 07:23:17 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 07:23:17 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 11:27:08 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Store the size of fileCache inside synchronized block Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18111#pullrequestreview-1933320793 From psadhukhan at openjdk.org Wed Mar 13 07:41:37 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 07:41:37 GMT Subject: RFR: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Fix - 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main Changes: https://git.openjdk.org/jdk/pull/18263/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18263&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327757 Stats: 256 lines in 3 files changed: 121 ins; 135 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18263.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18263/head:pull/18263 PR: https://git.openjdk.org/jdk/pull/18263 From psadhukhan at openjdk.org Wed Mar 13 07:57:13 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 07:57:13 GMT Subject: RFR: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main [v2] In-Reply-To: References: Message-ID: <9Uu4kiGuYNcEHM6uzMpskhFqrpZiCJ0tsS3SI2rp-Aw=.76da1624-7b98-4ac7-9cac-5bc899ab7dc7@github.com> On Wed, 13 Mar 2024 05:43:20 GMT, Phil Race wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove redundant dir > > test/jdk/javax/swing/JOptionPane/bug8024926.java line 46: > >> 44: Verify that high resolution system icons are used >> 45: in JOptionPane on HiDPI displays. >> 46: 1) Run the test on Retina display or enable the Quartz Debug > > Quartz debug ? How ? And we don't even use Quartz. > The pass criteria is completely subjective. > So this test looks like it needs to be better. > If you can't figure out a better test for this in less than a day just delete this useless thing. I can remove the "Quartz debug" portion if it is not applicable, but as you know, it's a straight lift from the existing instructions...The reviewer that time did not object to this phrase it seems (was it used that time and subsequently revoked later?) https://hg.openjdk.org/jdk9/jdk9/jdk/rev/4991a758abef Also, the product fix has another test `test/javax/swing/JMenuItem/8031573/bug8031573.java` which also put the same pass criteria that icons should be smooth and our manual testing team has not made any objections to the instructions of both test it seems.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18232#discussion_r1522695516 From mbaesken at openjdk.org Wed Mar 13 08:30:16 2024 From: mbaesken at openjdk.org (Matthias Baesken) Date: Wed, 13 Mar 2024 08:30:16 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v2] In-Reply-To: References: <3S9pyv9jOnJihfgqtK_CXhDDV62pzek2TrduKffVTnI=.4e8d8016-a299-4596-92f4-1bcf6bd206f4@github.com> Message-ID: On Tue, 12 Mar 2024 16:02:41 GMT, Matthias Baesken wrote: > > Please re-test. > > Hi Magnus, thanks for the adjustments. I reenabled your patch in our build/test queue . Builds and test results on AIX (product and fastdebug) are fine with the latest version of the PR . ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1993808324 From psadhukhan at openjdk.org Wed Mar 13 08:40:42 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 08:40:42 GMT Subject: RFR: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Test passcriteria instructions update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18228/files - new: https://git.openjdk.org/jdk/pull/18228/files/0bade49a..55adbfd4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18228&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18228&range=01-02 Stats: 17 lines in 1 file changed: 9 ins; 0 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18228.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18228/head:pull/18228 PR: https://git.openjdk.org/jdk/pull/18228 From psadhukhan at openjdk.org Wed Mar 13 08:43:16 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 13 Mar 2024 08:43:16 GMT Subject: RFR: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:45:49 GMT, Phil Race wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove redundant dir > > test/jdk/javax/swing/JOptionPane/bug4174551.java line 43: > >> 41: It should be true even on OS X. >> 42: If it is not so press "Fail" else press "Pass". """; >> 43: > > These instructions are so odd. How is the tester supposed to know the size they see ? > What can we do better ? Since this test is about support of custom button in optionpane Test instructions updated for easier-to-understand pass-criteria with side-by-side optionpanes one with custom fontsize of 24 and another with default fontsize (guess it's 12) asking to verify if custom fontsize is more than default-fontsize ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18228#discussion_r1522763600 From ihse at openjdk.org Wed Mar 13 08:45:20 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Wed, 13 Mar 2024 08:45:20 GMT Subject: Integrated: 8327701: Remove the xlc toolchain In-Reply-To: References: Message-ID: On Fri, 8 Mar 2024 15:29:58 GMT, Magnus Ihse Bursie wrote: > As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. This pull request has now been integrated. Changeset: 107cb536 Author: Magnus Ihse Bursie URL: https://git.openjdk.org/jdk/commit/107cb536e75509ad63b245d20772eb2c3f73d595 Stats: 327 lines in 19 files changed: 24 ins; 266 del; 37 mod 8327701: Remove the xlc toolchain Reviewed-by: jwaters, erikj ------------- PR: https://git.openjdk.org/jdk/pull/18172 From mbaesken at openjdk.org Wed Mar 13 08:53:23 2024 From: mbaesken at openjdk.org (Matthias Baesken) Date: Wed, 13 Mar 2024 08:53:23 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v4] In-Reply-To: References: Message-ID: <-uA04de5qrhwkzJkst47cUY1ZdLaHDPn3KIclLd4b84=.e15c4d6c-2f79-4ab0-a1a0-8cc0dee581c8@github.com> On Tue, 12 Mar 2024 15:27:29 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: > > - Replace CC_VERSION_OUTPUT with CC_VERSION_STRING > - We need CC_VERSION_OUTPUT before we can check it Seems `HOTSPOT_TOOLCHAIN_TYPE=xlc ` and `TARGET_COMPILER_xlc` macros stay, is this intended ? (not saying this is a wrong thing to do, but I believed first that all the xlc toolchain references are replaced by clang?) ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1993844670 From ihse at openjdk.org Wed Mar 13 09:03:23 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Wed, 13 Mar 2024 09:03:23 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v4] In-Reply-To: <-uA04de5qrhwkzJkst47cUY1ZdLaHDPn3KIclLd4b84=.e15c4d6c-2f79-4ab0-a1a0-8cc0dee581c8@github.com> References: <-uA04de5qrhwkzJkst47cUY1ZdLaHDPn3KIclLd4b84=.e15c4d6c-2f79-4ab0-a1a0-8cc0dee581c8@github.com> Message-ID: On Wed, 13 Mar 2024 08:50:10 GMT, Matthias Baesken wrote: >> Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: >> >> - Replace CC_VERSION_OUTPUT with CC_VERSION_STRING >> - We need CC_VERSION_OUTPUT before we can check it > > Seems `HOTSPOT_TOOLCHAIN_TYPE=xlc ` and `TARGET_COMPILER_xlc` macros stay, is this intended ? > (not saying this is a wrong thing to do, but I believed first that all the xlc toolchain references are replaced by clang?) @MBaesken Yes, I discussed this in length above: https://github.com/openjdk/jdk/pull/18172#issuecomment-1985939418. In short, changing that would mean changing behavior, and that is not something I want to do in a removal refactoring. Also, it is up to you guys to make it work correctly. But I really believe you should address this. Let me know if you need help with the build aspects. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1993862922 From tr at openjdk.org Wed Mar 13 09:41:18 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 13 Mar 2024 09:41:18 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 18:20:14 GMT, Harshitha Onkar wrote: > The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. > > - test renamed to PinyinIMCapsTest > - moved one directory above - /java/awt/im/ > - html file deleted. > > PS: I tried to automate this test using Robot, but was unable to produce the same effect as a keyboard keypress for Pinyin, hence keep it as a manual test. test/jdk/java/awt/im/PinyinIMCapsTest.java line 43: > 41: > 42: public class PinyinIMCapsTest { > 43: private static final String INSTRUCTIONS = """ Can move `INSTRUCTIONS ` to main. test/jdk/java/awt/im/PinyinIMCapsTest.java line 44: > 42: public class PinyinIMCapsTest { > 43: private static final String INSTRUCTIONS = """ > 44: This test is for OS X only. It verifies if the Caps Lock key works properly I guess its not required to mention regarding OS X requirement in test instructions, anyhow its taken care in jtreg tag and also a check has been made before test initialization. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18245#discussion_r1522864097 PR Review Comment: https://git.openjdk.org/jdk/pull/18245#discussion_r1522868354 From jkern at openjdk.org Wed Mar 13 09:53:22 2024 From: jkern at openjdk.org (Joachim Kern) Date: Wed, 13 Mar 2024 09:53:22 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v4] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 15:27:29 GMT, Magnus Ihse Bursie wrote: >> As of [JDK-8325880](https://bugs.openjdk.org/browse/JDK-8325880), building the JDK requires version 17 of IBM Open XL C/C++ (xlc). This is in effect clang by another name, and it uses the clang toolchain in the JDK build. Thus the old xlc toolchain is no longer supported, and should be removed. > > Magnus Ihse Bursie has updated the pull request incrementally with two additional commits since the last revision: > > - Replace CC_VERSION_OUTPUT with CC_VERSION_STRING > - We need CC_VERSION_OUTPUT before we can check it e.g. We should change the HOTSPOT_TOOLCHAIN_TYPE=xlc to aix, because it is not toolchain, but OS related. As a consequence the globalDefinitions_xlc.hpp will become globalDefinitions_aix.hpp ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1993979991 From azvegint at openjdk.org Wed Mar 13 10:11:13 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 10:11:13 GMT Subject: RFR: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java In-Reply-To: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> References: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> Message-ID: On Tue, 12 Mar 2024 18:49:03 GMT, Phil Race wrote: > This was recently converted from a manual Applet to a PassFailJFrame main program > But I see a few things that could be tweaked > - Clarify instructions > - Set path to PassFailJFrame > - reduce timeout to default > - eliminate redundant folder Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18246#pullrequestreview-1933679765 From ihse at openjdk.org Wed Mar 13 10:28:25 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Wed, 13 Mar 2024 10:28:25 GMT Subject: RFR: 8327701: Remove the xlc toolchain [v4] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 09:50:20 GMT, Joachim Kern wrote: > e.g. We should change the HOTSPOT_TOOLCHAIN_TYPE=xlc to aix, because it is not toolchain, but OS related. As a consequence the globalDefinitions_xlc.hpp will become globalDefinitions_aix.hpp No, it's not that simple. First, the `globalDefinitions_` files are included on a per-toolchain basis, not OS basis. Secondly, I think you will want to have the stuff in globalDefinitions_gcc.h. In fact, if you compare globalDefinitions_gcc.h and globalDefinitions_xlc.h side-by-side, you see that they are much more similar than you'd perhaps naively expect. The remaining differences will probably be better expressed as #ifdef AIX inside globalDefinitions_gcc.h, I assume. (But of course, in the end this is up to the hotspot team.) I recommend doing such a side-by-side check yourself to get an understanding of the actual differences. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18172#issuecomment-1994049434 From abhiscxk at openjdk.org Wed Mar 13 11:43:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 11:43:20 GMT Subject: Integrated: 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 05:33:40 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: a4a51963 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/a4a5196351a3c8ce45e2e36d27842194cbfcc5ff Stats: 461 lines in 3 files changed: 63 ins; 398 del; 0 mod 8327872: Convert javax/swing/JToolTip/4644444/bug4644444.java applet test to main Reviewed-by: prr, tr ------------- PR: https://git.openjdk.org/jdk/pull/18212 From ihse at openjdk.org Wed Mar 13 12:34:20 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Wed, 13 Mar 2024 12:34:20 GMT Subject: RFR: 8326583: Remove over-generalized DefineNativeToolchain solution [v4] In-Reply-To: References: Message-ID: On Tue, 27 Feb 2024 11:19:59 GMT, Magnus Ihse Bursie wrote: >> The idea of setting up general "toolchains" in the native build was good, but it turned out that we really only need a single toolchain, with a single twist: if it should use CC or CPP to link. This is better described by a specific argument to SetupNativeCompilation, LANG := C++ or LANG := C (the default). >> >> There is a single exception to this rule, and that is if we want to compile for the build platform rather than the target platform. (This is only done for adlc) To keep expressing this difference, introduce TARGET_TYPE := BUILD (or TARGET_TYPE := TARGET, the default). >> >> The final odd-case was the hack for building hsdis/bin on mingw. This can be resolved using direct variables to SetupNativeCompilation, instead of first creating a toolchain. >> >> Doing this refactoring will simplify the SetupNativeCompilation code, and make it much clearer if we use the C or C++ linker. > > Magnus Ihse Bursie has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains five commits: > > - Merge branch 'master' into remove-toolchain-define > - Rename LANG to LINK_TYPE > - Reword "lib" comment to fit in better > - Merge branch 'master' into remove-toolchain-define > - 8326583: Remove over-generalized DefineNativeToolchain solution I have opened https://bugs.openjdk.org/browse/JDK-8328079 to track the ccache regression. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17986#issuecomment-1994283777 From abhiscxk at openjdk.org Wed Mar 13 13:31:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 13:31:24 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test Message-ID: Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. ------------- Commit messages: - Automate applet based test Changes: https://git.openjdk.org/jdk/pull/18274/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328087 Stats: 457 lines in 3 files changed: 245 ins; 212 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18274.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18274/head:pull/18274 PR: https://git.openjdk.org/jdk/pull/18274 From dmarkov at openjdk.org Wed Mar 13 13:37:15 2024 From: dmarkov at openjdk.org (Dmitry Markov) Date: Wed, 13 Mar 2024 13:37:15 GMT Subject: RFR: 8320079: The ArabicBox.java test has no control buttons [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 16:48:28 GMT, Alexey Ivanov wrote: >> The test is converted to use `PassFailJFrame`. >> >> I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Use the correct path to library Marked as reviewed by dmarkov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18234#pullrequestreview-1934200154 From abhiscxk at openjdk.org Wed Mar 13 13:37:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 13:37:32 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v2] In-Reply-To: References: Message-ID: <57vHBqQV5Hiqcr5Oaaj2A5-gwwi4r_QPFcDpqGGueK4=.28909cca-86f6-4c4a-a416-620d0d7052fd@github.com> > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Remove commented code ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18274/files - new: https://git.openjdk.org/jdk/pull/18274/files/6b3f50a0..66d7884c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=00-01 Stats: 18 lines in 1 file changed: 0 ins; 18 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18274.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18274/head:pull/18274 PR: https://git.openjdk.org/jdk/pull/18274 From abhiscxk at openjdk.org Wed Mar 13 13:43:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 13:43:40 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test Message-ID: Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. ------------- Commit messages: - Automate applet manual test Changes: https://git.openjdk.org/jdk/pull/18275/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328089 Stats: 194 lines in 3 files changed: 115 ins; 79 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18275.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18275/head:pull/18275 PR: https://git.openjdk.org/jdk/pull/18275 From alexander.scherbatiy at bell-sw.com Wed Mar 13 14:20:23 2024 From: alexander.scherbatiy at bell-sw.com (Alexander Scherbatiy) Date: Wed, 13 Mar 2024 17:20:23 +0300 Subject: Setting Chromaticity.MONOCHROME print request attribute on macOS In-Reply-To: <8eb8b503-6202-0bff-a512-24ab45f39d56@bell-sw.com> References: <8eb8b503-6202-0bff-a512-24ab45f39d56@bell-sw.com> Message-ID: <78e594fc-e0fb-4d02-ae32-21fe2957c0d0@bell-sw.com> Hello, There is a known issue that a PrinterJob does not take Chromaticity.MONOCHROME print request attribute into account on macOS (JDK-8315113 [1]) The possible ways for solving the issue with black & white printing on macOS could be: 1. Setting black & white printing with macOS API. ?? There is the deprecated PMSetColorMode [2] function: ?? "There is no replacement; this function was included to facilitate porting legacy applications to macOS, but it serves no useful purpose." ?? and I was not able to find another one. 2. Using a predefined printer.properties file with black & white key/value pairs for known printers. ??? It needs to maintain the property file to keep list with black & white key/value pairs. ??? Or just leave only one default? ColorModel=Gray key/value in the property file so users will need to add another ones for their needs. 3. Using a PPD API to get the corresponding black & white value for the given key. ??? In this way the black & white keys are printer specific and there should be a way to provide these keys to the program. ??? Another way is parsing a ppd file to find the black & white key/value pair in question. It still requires some search criteria to find the printer specific key. 4. Adding a custom PrintRequestAttribute which allows for a user to add a printer specific key values to PrintRequestAttributeSet. ???? These key/value pairs are then added to the NSPrintInfo printSettings on macOS. 5. Providing other ways like a jvm option which allows a user to pass black & white key/value pairs to the program. Are there better solutions for the black & white printing issue on macOS? What is the best option to start solving the issue with? Thanks, Alexander. [1] https://bugs.openjdk.org/browse/JDK-8315113 [2] https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode On 8/28/23 18:00, Alexander Scherbatiy wrote: > Hello, > > I am working on issue "8315113 Print request Chromaticity.MONOCHROME > attribute does not work on macOS" [1]. > > There is PMSetColorMode function in the Apple Developer documentation > [2] but it is marked as deprecated > ? "There is no replacement; this function was included to facilitate > porting legacy applications to macOS, but it serves no useful purpose." > and really does nothing. > > > Using native print dialog and selecting Black & White box allows to > print black and white pages on macOS. > I dumped NSPrintInfo print settings dictionary for two printers when > the Black & White box is selected and the logs contain > ColorModel key, Gray value for HP ColorLaserJet MFP M178-M181-AirPrint > printer and > HPColorMode key, grayscale value for HP Ink Tank 115. > It looks like each printer can have each own key/value for Black & > White settings. > > I tried to print key/values for all presets available for NSPrintInfo > without using the native print dialog: > ---------- > ??? PMPrinter pr; > ??? PMPrintSession printSession = (PMPrintSession)[printInfo > PMPrintSession]; > ??? OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); > ??? CFArrayRef presetsList = nil; > ??? status = PMPrinterCopyPresets(pr, &presetsList); > ??? CFIndex arrayCount = CFArrayGetCount(presetsList); > > ??? for (CFIndex index = 0; index < arrayCount; index++) { > ??????? PMPreset preset = > (PMPreset)CFArrayGetValueAtIndex(presetsList, index); > ??????? CFStringRef presetName = nil; > ??????? if (PMPresetCopyName(preset, &presetName) == noErr && > CFStringGetLength(presetName) > 0) { > ??????????? NSLog(@"? presetName: '%@'", presetName); > ??????????? NSDictionary* dict = nil; > ??????????? if (PMPresetGetAttributes(preset, > (CFDictionaryRef*)(&dict)) == noErr) { > ?????????????????? // print preset dict > > ---------- > The printers which I tested do contain "Black and White" preset but > they do not include key/values related to black and white printing. > > > What is the right way to use different key/values (ColorModel: Gray, > HPColorMode: grayscale, ...) in code to set Black & White settings for > NSPrintInfo? > Could it be a configuration file which contains all color model > key/values for all known printers? > > Thanks, > Alexander. > > [1] https://bugs.openjdk.org/browse/JDK-8315113 > > [2] > https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode > > From aivanov at openjdk.org Wed Mar 13 15:54:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 15:54:17 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Tue, 12 Mar 2024 19:37:55 GMT, Alexander Zvegintsev wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> minor formatting > > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1338: > >> 1336: if (panelCreator != null) { >> 1337: if (splitUI && (testWindows != null || windowListCreator != null)) { >> 1338: // TODO Is it required? We can support both > > @aivanov-jdk please note, I am going to remove this check, it looks artificial to me. > > In this test I added a JTextArea to display logs and messages. > It looks like we could add similar functionality to PassFailJFrame (outside the scope of this issue, of course). @azvegint, yes, we can support both. But I didn't test it thoroughly, so I decided it was safer to add this. Please, don't modify `PassFailJFrame` together with tests unless it's strictly required? It is for the sake of facilitating backporting the changes. Otherwise, backporting improvements to the framework will depend on the presence of a test. In this case, it could be fine though? provided that the test you're updating exists in all the repos. Either way, I think it's good to create a separate bug for `PassFailJFrame` which you'll resolve with the current one. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523522304 From aivanov at openjdk.org Wed Mar 13 16:01:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 16:01:15 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 20:01:29 GMT, Phil Race wrote: > If this makes that CCME go away I'll be pleased. @prrace CCME is already gone, Tejesh and I resolved it under [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) in #17462. > I am assuming you've run the "full" battery of tests on this. Yes, I did. No failures found. This is an isolated change, it prevents creating several background thread to load files. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18111#issuecomment-1994775574 From abhiscxk at openjdk.org Wed Mar 13 16:09:16 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 16:09:16 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 01:20:05 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment fix > > test/jdk/javax/swing/JToggleButton/4128979/bug4128979.java line 81: > >> 79: >> 80: public static JFrame createAndShowUI() { >> 81: frame = new JFrame("Test window"); > > Frame title can be more descriptive. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1523547010 From aivanov at openjdk.org Wed Mar 13 16:57:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 16:57:21 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> On Wed, 13 Mar 2024 06:49:16 GMT, Alexander Zuev wrote: > Cleaned up five more tests. > > Continuation of https://github.com/openjdk/jdk/pull/18184 > > Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. > All comments from the previous review are addressed. Changes requested by aivanov (Reviewer). test/jdk/javax/swing/JDesktopPane/bug4773378.java line 53: > 51: > 52: Robot robot; > 53: volatile boolean frameActivated = false; Suggestion: private final CountDownLatch frameActivated = new CountDownLatch(1); test/jdk/javax/swing/JDesktopPane/bug4773378.java line 71: > 69: frameActivated = true; > 70: bug4773378.this.notifyAll(); > 71: } Suggestion: frameActivated.countDown(); test/jdk/javax/swing/JDesktopPane/bug4773378.java line 92: > 90: } catch (PropertyVetoException e) { > 91: e.printStackTrace(); > 92: } Suggestion: try { jif.setSelected(true); } catch (PropertyVetoException e) { throw new RuntimeException(e); } Fail the test if an unexpected is thrown. Can `jif.setSelected(true)` be called in the setup code? test/jdk/javax/swing/JDesktopPane/bug4773378.java line 99: > 97: bug4773378.this.wait(); > 98: } > 99: } Suggestion: frameActivated.await(); Using `CountDownLatch` is so much cleaner. test/jdk/javax/swing/JDesktopPane/bug4773378.java line 107: > 105: robot.keyRelease(KeyEvent.VK_CONTROL); > 106: > 107: Thread.sleep(2000); Suggestion: robot.waitForIdle(); Is it really necessary to wait for 2 seconds before shutting down the test. According to [JDK-4773378](https://bugs.openjdk.org/browse/JDK-4773378), `NullPointerException` was thrown when Ctrl+F6 was pressed. The `waitForIdle` method doesn't return until the event queue is empty which implies the keyboard events are handled. It saves nearly 2 seconds. test/jdk/javax/swing/JDesktopPane/bug4773378.java line 117: > 115: } > 116: > 117: class MyDesktopManager extends DefaultDesktopManager { Suggestion: private static class MyDesktopManager extends DefaultDesktopManager { test/jdk/javax/swing/JEditorPane/bug4325606.java line 80: > 78: robo = new Robot(); > 79: } catch (AWTException e) { > 80: throw new RuntimeException("Robot could not be created"); Suggestion: throw new RuntimeException("Robot could not be created", e); Preserve the original exception, which would be very helpful for debugging if it ever occurs. test/jdk/javax/swing/JEditorPane/bug4325606.java line 84: > 82: robo.setAutoDelay(100); > 83: robo.delay(1000); > 84: Point p = frame.getLocationOnScreen(); Technically, `getLocationOnScreen` should be called on EDT. test/jdk/javax/swing/JEditorPane/bug4325606.java line 101: > 99: } catch (BadLocationException blex) { > 100: passed = false; > 101: } Suggestion: } catch (BadLocationException blex) { throw new RuntimeException("Test failed", blex); } Throw exception preserving the original exception which will help analysing the failure? test/jdk/javax/swing/JEditorPane/bug4325606.java line 120: > 118: if (!b.passed) { > 119: throw new RuntimeException("Test failed."); > 120: } Suggestion: robot.waitForIdle(); Wait until all events are processed. If test fails, it throws an exception on EDT; otherwise, the test is finished as soon as the event queue is empty. No need to waste 3 seconds. test/jdk/javax/swing/JEditorPane/bug4694598.java line 64: > 62: } catch (IOException ioe){ > 63: throw new RuntimeException("Could not create html file to embed", ioe); > 64: } Move creating the file to `main` method before setting up GUI and let `IOException` escape from main. test/jdk/javax/swing/JEditorPane/bug4694598.java line 74: > 72: String html = " " + > 73: "" + > 74: "" + Suggestion: "" + Isn't it enough? Alternatively, `"file:/" + frameContentFile.toAbsolutePath()` produces the same result as `frameContentFile.toUri().toURL()`. Another option is to convert the `Path` to `URL` in the `main` method before calling `setupGUI` and remove try-catch blocks. ------------- PR Review: https://git.openjdk.org/jdk/pull/18259#pullrequestreview-1934620670 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523563210 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523564258 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523549703 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523565594 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523573470 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523575719 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523578951 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523587677 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523582352 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523586920 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523592475 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523611406 From azvegint at openjdk.org Wed Mar 13 17:00:38 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 17:00:38 GMT Subject: RFR: 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows Message-ID: It is currently blocked with an artificial check: if (panelCreator != null) { if (splitUI && (testWindows != null || windowListCreator != null)) { // TODO Is it required? We can support both throw new IllegalStateException("Split UI is not allowed " + "with additional windows"); } } We have a number of manual tests, which has some text area in the instruction window to print a feedback from the test to be evaluated by a tester. Removing this check allows us to implement this. We can consider making a special methods for this later. This is required for the #18250 ------------- Commit messages: - 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows Changes: https://git.openjdk.org/jdk/pull/18281/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18281&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328110 Stats: 8 lines in 1 file changed: 0 ins; 8 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18281.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18281/head:pull/18281 PR: https://git.openjdk.org/jdk/pull/18281 From azvegint at openjdk.org Wed Mar 13 17:00:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 17:00:21 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Wed, 13 Mar 2024 15:51:21 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1338: >> >>> 1336: if (panelCreator != null) { >>> 1337: if (splitUI && (testWindows != null || windowListCreator != null)) { >>> 1338: // TODO Is it required? We can support both >> >> @aivanov-jdk please note, I am going to remove this check, it looks artificial to me. >> >> In this test I added a JTextArea to display logs and messages. >> It looks like we could add similar functionality to PassFailJFrame (outside the scope of this issue, of course). > > @azvegint, yes, we can support both. But I didn't test it thoroughly, so I decided it was safer to add this. > > Please, don't modify `PassFailJFrame` together with tests unless it's strictly required? It is for the sake of facilitating backporting the changes. Otherwise, backporting improvements to the framework will depend on the presence of a test. > > In this case, it could be fine though? provided that the test you're updating exists in all the repos. > > Either way, I think it's good to create a separate bug for `PassFailJFrame` which you'll resolve with the current one. That's a good point, I created #18281 for that. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523619919 From aivanov at openjdk.org Wed Mar 13 17:02:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 17:02:15 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 21:02:08 GMT, Phil Race wrote: > > "When the test passes, it usually completes in 5 minutes." > > and you've never seen the test time out ? I thought default jtreg timeout is 120 seconds. No, I've never seen the test time out. The default timeout is factored by 2 in client jobs, another factor could be applied on the hosts. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-1994999914 From honkar at openjdk.org Wed Mar 13 17:06:15 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 17:06:15 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 13:39:08 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Changes requested by honkar (Reviewer). test/jdk/javax/swing/JTable/bug4222153.java line 57: > 55: UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); > 56: Robot robot = new Robot(); > 57: robot.setAutoDelay(100); Delay can be reduced to 50ms test/jdk/javax/swing/JTable/bug4222153.java line 91: > 89: robot.keyRelease(KeyEvent.VK_TAB); > 90: robot.delay(100); > 91: robot.waitForIdle(); Since autodelay is already set you can remove the additional delay after key release or reduce it to a smaller number. Suggestion: robot.waitForIdle(); robot.delay(20); test/jdk/javax/swing/JTable/bug4222153.java line 95: > 93: robot.keyRelease(KeyEvent.VK_TAB); > 94: robot.delay(100); > 95: robot.waitForIdle(); Same here and usually it is waitForIdle() followed by delay(). ------------- PR Review: https://git.openjdk.org/jdk/pull/18275#pullrequestreview-1934739075 PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1523624229 PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1523626805 PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1523628934 From aivanov at openjdk.org Wed Mar 13 17:09:15 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 17:09:15 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 15:57:55 GMT, Alexey Ivanov wrote: > > If this makes that CCME go away I'll be pleased. > > @prrace CCME is already gone, Tejesh and I resolved it under [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) in #17462. The `BasicDirectoryModel/ConcurrentModification.java` test in #18109 usually failed with `OutOfMemoryError` on Windows because too many background threads were created and they couldn't complete contending on the COM thread. I saw more than 100 `BasicDirectoryModel.FilesLoader` threads in the debugger. With this fix, the test passes without OOME on Windows. At each given time, there's no more than one background thread loading the list of files. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18111#issuecomment-1995019580 From aivanov at openjdk.org Wed Mar 13 17:15:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 17:15:14 GMT Subject: RFR: 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 16:55:08 GMT, Alexander Zvegintsev wrote: > It is currently blocked with an artificial check: > > > if (panelCreator != null) { > if (splitUI && (testWindows != null || windowListCreator != null)) { > // TODO Is it required? We can support both > throw new IllegalStateException("Split UI is not allowed " > + "with additional windows"); > } > } > > > We have a number of manual tests, which has some text area in the instruction window to print a feedback from the test to be evaluated by a tester. > > Removing this check allows us to implement this. > We can consider making a special methods for this later. > > This is required for the #18250 Let's go for it. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18281#pullrequestreview-1934766274 From aivanov at openjdk.org Wed Mar 13 17:19:13 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 17:19:13 GMT Subject: RFR: 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 16:55:08 GMT, Alexander Zvegintsev wrote: > It is currently blocked with an artificial check: > > > if (panelCreator != null) { > if (splitUI && (testWindows != null || windowListCreator != null)) { > // TODO Is it required? We can support both > throw new IllegalStateException("Split UI is not allowed " > + "with additional windows"); > } > } > > > We have a number of manual tests, which has some text area in the instruction window to print a feedback from the test to be evaluated by a tester. > > Removing this check allows us to implement this. > We can consider making a special methods for this later. > > This is required for the #18250 I also considered extending `PanelCreator` to `PanelListCreator`, similar to how window lists are handled. The first panel could be used as a split panel. (Two splits are possible but will it be good?) Additional panels would be converted to `JDialog`s like it's done for a single panel if split UI isn't enabled. However, I'm unsure there's a use case for that. Using owned `JDialog`s results in easier switching to a running test. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18281#issuecomment-1995051952 From honkar at openjdk.org Wed Mar 13 17:20:38 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 17:20:38 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v4] In-Reply-To: References: Message-ID: > Following InputMethod applet tests are converted to main using PassFailJFrame > > 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) > 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) > > - test instructions are updated to make to more clear > - tests renamed > - moved one directory above - /java/awt/im/ > - html file deleted. > > Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: instruction updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18251/files - new: https://git.openjdk.org/jdk/pull/18251/files/e82034f4..67acd86f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=02-03 Stats: 5 lines in 2 files changed: 0 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18251.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18251/head:pull/18251 PR: https://git.openjdk.org/jdk/pull/18251 From azvegint at openjdk.org Wed Mar 13 17:22:14 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 17:22:14 GMT Subject: RFR: 8328030: Convert javax/swing/text/GlyphView/4984669/bug4984669.java applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:52:07 GMT, Tejesh R wrote: > Convert javax/swing/text/GlyphView/4984669/bug4984669.java manual applet test to main based using PassFailJFrame. It may be a good time to give the test a meaningful name. test/jdk/javax/swing/text/GlyphView/bug4984669.java line 37: > 35: * @library /java/awt/regtesthelpers > 36: * @build PassFailJFrame > 37: * @run main/manual bug4984669 Please remove extra space before `@run` ------------- Marked as reviewed by azvegint (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18256#pullrequestreview-1934778425 PR Review Comment: https://git.openjdk.org/jdk/pull/18256#discussion_r1523648132 From honkar at openjdk.org Wed Mar 13 17:28:41 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 17:28:41 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main [v2] In-Reply-To: References: Message-ID: > The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. > > - test renamed to PinyinIMCapsTest > - moved one directory above - /java/awt/im/ > - html file deleted. > > PS: I tried to automate this test using Robot, but was unable to produce the same effect as a keyboard keypress for Pinyin, hence keep it as a manual test. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: instructions updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18245/files - new: https://git.openjdk.org/jdk/pull/18245/files/b3aab572..98a13808 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18245&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18245&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18245.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18245/head:pull/18245 PR: https://git.openjdk.org/jdk/pull/18245 From honkar at openjdk.org Wed Mar 13 17:28:41 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 17:28:41 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 09:38:20 GMT, Tejesh R wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instructions updated > > test/jdk/java/awt/im/PinyinIMCapsTest.java line 44: > >> 42: public class PinyinIMCapsTest { >> 43: private static final String INSTRUCTIONS = """ >> 44: This test is for OS X only. It verifies if the Caps Lock key works properly > > I guess its not required to mention regarding OS X requirement in test instructions, anyhow its taken care in jtreg tag and also a check has been made before test initialization. Updated ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18245#discussion_r1523657165 From honkar at openjdk.org Wed Mar 13 17:31:15 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 17:31:15 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 09:36:01 GMT, Tejesh R wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instructions updated > > test/jdk/java/awt/im/PinyinIMCapsTest.java line 43: > >> 41: >> 42: public class PinyinIMCapsTest { >> 43: private static final String INSTRUCTIONS = """ > > Can move `INSTRUCTIONS ` to main. Some tests follow this pattern and few others have it within main. I usually define it as static var so retaining it the same here. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18245#discussion_r1523661666 From prr at openjdk.org Wed Mar 13 17:44:15 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 17:44:15 GMT Subject: RFR: 8328030: Convert javax/swing/text/GlyphView/4984669/bug4984669.java applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:52:07 GMT, Tejesh R wrote: > Convert javax/swing/text/GlyphView/4984669/bug4984669.java manual applet test to main based using PassFailJFrame. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18256#pullrequestreview-1934826032 From prr at openjdk.org Wed Mar 13 17:47:15 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 17:47:15 GMT Subject: RFR: 8327754: Convert javax/swing/JPopupMenu/7160604/bug7160604.java applet to main In-Reply-To: <7frwXMi-bkKDX7Xw-pSh-AtGg7PcEdykdSmbvlVylhI=.9c9002c1-9c12-44ad-916a-f6c7dfd579ff@github.com> References: <7frwXMi-bkKDX7Xw-pSh-AtGg7PcEdykdSmbvlVylhI=.9c9002c1-9c12-44ad-916a-f6c7dfd579ff@github.com> Message-ID: On Wed, 13 Mar 2024 06:04:35 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18257#pullrequestreview-1934831099 From abhiscxk at openjdk.org Wed Mar 13 17:49:13 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 17:49:13 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main In-Reply-To: References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: <_g0lXPcneLwc74naGbvMaBlYvZ3JmZLNZLG8Iknrm8c=.8198f5a5-8365-4d03-97b7-6afd524cda23@github.com> On Tue, 12 Mar 2024 20:50:18 GMT, Phil Race wrote: > We no longer need the extra folder level. Updated. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18215#issuecomment-1995154631 From abhiscxk at openjdk.org Wed Mar 13 17:52:29 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 17:52:29 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment fix ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18275/files - new: https://git.openjdk.org/jdk/pull/18275/files/6dee3d26..b8039815 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=00-01 Stats: 8 lines in 1 file changed: 3 ins; 3 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18275.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18275/head:pull/18275 PR: https://git.openjdk.org/jdk/pull/18275 From abhiscxk at openjdk.org Wed Mar 13 17:52:30 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 17:52:30 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 16:59:43 GMT, Harshitha Onkar wrote: > Delay can be reduced to 50ms AutoDealy has been set to 100ms for many of the PRs. So, kept it as 100. Anyway, I will update to 50. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1523680206 From prr at openjdk.org Wed Mar 13 17:58:13 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 17:58:13 GMT Subject: RFR: 8327755: Convert javax/swing/JScrollBar/8039464/Test8039464.java applet to main In-Reply-To: References: Message-ID: <2p6ODfDpPtYphZXvbxcCflGRQTaNbuEGkNK-pwxRtvA=.65b8a2ae-086e-4f7a-97a4-6711d2a5ed62@github.com> On Wed, 13 Mar 2024 06:30:34 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18258#pullrequestreview-1934853604 From honkar at openjdk.org Wed Mar 13 18:08:13 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 18:08:13 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v2] In-Reply-To: References: Message-ID: <5GQcNtKcaMCCwbwZIWJvU0SsnPIf84CXvHRH6u_3aHg=.eefe6d8a-c826-488f-8e90-13a2c3a1f2b7@github.com> On Wed, 13 Mar 2024 17:52:29 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment fix test/jdk/javax/swing/JTable/bug4222153.java line 95: > 93: robot.keyRelease(KeyEvent.VK_TAB); > 94: robot.waitForIdle(); > 95: robot.delay(20); @kumarabhi006 whitespace error detected at line#96. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1523706463 From abhiscxk at openjdk.org Wed Mar 13 18:12:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 18:12:38 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Whitespace error fix ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18275/files - new: https://git.openjdk.org/jdk/pull/18275/files/b8039815..c251b3f3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18275.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18275/head:pull/18275 PR: https://git.openjdk.org/jdk/pull/18275 From abhiscxk at openjdk.org Wed Mar 13 18:12:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 13 Mar 2024 18:12:38 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v2] In-Reply-To: <5GQcNtKcaMCCwbwZIWJvU0SsnPIf84CXvHRH6u_3aHg=.eefe6d8a-c826-488f-8e90-13a2c3a1f2b7@github.com> References: <5GQcNtKcaMCCwbwZIWJvU0SsnPIf84CXvHRH6u_3aHg=.eefe6d8a-c826-488f-8e90-13a2c3a1f2b7@github.com> Message-ID: On Wed, 13 Mar 2024 18:05:08 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment fix > > test/jdk/javax/swing/JTable/bug4222153.java line 95: > >> 93: robot.keyRelease(KeyEvent.VK_TAB); >> 94: robot.waitForIdle(); >> 95: robot.delay(20); > > @kumarabhi006 whitespace error detected at line#96. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1523711411 From honkar at openjdk.org Wed Mar 13 18:17:14 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 18:17:14 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v3] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 18:12:38 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Whitespace error fix Changes look good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18275#pullrequestreview-1934888206 From prr at openjdk.org Wed Mar 13 18:18:14 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 18:18:14 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v2] In-Reply-To: References: Message-ID: <05oH95MKBN-FyFfVFwzVbPXCnao8ni4J5EGiYOZRpu4=.8309b557-35b0-4fd6-898b-08db632faea2@github.com> On Wed, 13 Mar 2024 00:27:32 GMT, Damon Nguyen wrote: >> Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Fix suggested redudant changes test/jdk/java/awt/im/JTextFieldTest.java line 47: > 45: """ > 46: Please run this test case under Solaris cjk locale with inputmethod > 47: support, if you could input Chinese/Japanese/Korean in the swing The scenario here should not be specific to Solaris. I think you should rephrase the first sentence to "Please run this test in a CJK (Chinese/Japanese/Korean) locale with input method support". I some times wonder how well these tests that say "please change your environment" actually get properly tested. It is perhaps possible to do change desktop locale support on the fly but by the time you read the instructions the test is already running. That introduces another wrinkle. Maybe you need to restart at least this test. And I am not 100% sure that jtreg passes through locale vars. I hope it does. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1523718224 From azvegint at openjdk.org Wed Mar 13 18:18:22 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 18:18:22 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v4] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 17:20:38 GMT, Harshitha Onkar wrote: >> Following InputMethod applet tests are converted to main using PassFailJFrame >> >> 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) >> 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) >> >> - test instructions are updated to make to more clear >> - tests renamed >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instruction updated Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/im/PinyinIMFullstopTest.java line 81: > 79: private static JComponent createUI() { > 80: JPanel panel = new JPanel(); > 81: JTextField input = new JTextField(20); Is there a specific reason why we switched from a text area to a text field? ------------- PR Review: https://git.openjdk.org/jdk/pull/18251#pullrequestreview-1934832780 PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1523682463 From aivanov at openjdk.org Wed Mar 13 18:30:16 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 18:30:16 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> Message-ID: On Wed, 13 Mar 2024 00:53:36 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > minor formatting test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 29: > 27: import java.awt.Frame; > 28: import java.awt.EventQueue; > 29: import java.awt.Robot; We haven't agreed on the order of imports, yet in most cases `javax.*` packages follow `java.*` packages. test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 47: > 45: 2. Press the button to print the result of getBounds() to the terminal. > 46: 3. If getBounds() prints the correct values for the window, click Pass, > 47: otherwise click Fail. How do I determine whether the newly printed values are correct? test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 75: > 73: EventQueue.invokeAndWait(() -> > 74: textArea.append("Original Frame.getBounds() = %s\n" > 75: .formatted(frame.getBounds()))); Suggestion: textArea.append("Original Frame.getBounds() = %s\n" .formatted(frame.getBounds()))); I believe @honkar-jdk made you update formatting? whereas the previous version looked right. Since `.formatted` is called on the string literal, it should be aligned to the start of the literal, to the opening quote. With such formatting, it could be misinterpreted to be called on the result of `textArea.append` which doesn't return anything. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523648136 PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523665403 PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523662651 From aivanov at openjdk.org Wed Mar 13 18:30:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 18:30:17 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> Message-ID: On Wed, 13 Mar 2024 17:29:46 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> minor formatting > > test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 75: > >> 73: EventQueue.invokeAndWait(() -> >> 74: textArea.append("Original Frame.getBounds() = %s\n" >> 75: .formatted(frame.getBounds()))); > > Suggestion: > > textArea.append("Original Frame.getBounds() = %s\n" > .formatted(frame.getBounds()))); > > I believe @honkar-jdk made you update formatting? whereas the previous version looked right. Since `.formatted` is called on the string literal, it should be aligned to the start of the literal, to the opening quote. With such formatting, it could be misinterpreted to be called on the result of `textArea.append` which doesn't return anything. The same applies to the following event handler. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523730047 From aivanov at openjdk.org Wed Mar 13 18:30:17 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 18:30:17 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> Message-ID: On Wed, 13 Mar 2024 18:26:28 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 75: >> >>> 73: EventQueue.invokeAndWait(() -> >>> 74: textArea.append("Original Frame.getBounds() = %s\n" >>> 75: .formatted(frame.getBounds()))); >> >> Suggestion: >> >> textArea.append("Original Frame.getBounds() = %s\n" >> .formatted(frame.getBounds()))); >> >> I believe @honkar-jdk made you update formatting? whereas the previous version looked right. Since `.formatted` is called on the string literal, it should be aligned to the start of the literal, to the opening quote. With such formatting, it could be misinterpreted to be called on the result of `textArea.append` which doesn't return anything. > > The same applies to the following event handler. What can help to reduce the indentation is introducing a helper method. If it's still too long, store the result of formatting into a local variable and then append it to `textArea`. This can be done even in lambdas. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523730416 From aivanov at openjdk.org Wed Mar 13 18:36:14 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 13 Mar 2024 18:36:14 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 11:27:08 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Store the size of fileCache inside synchronized block @mrserb Do you have any comments? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18111#issuecomment-1995314980 From honkar at openjdk.org Wed Mar 13 18:55:23 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 13 Mar 2024 18:55:23 GMT Subject: RFR: JDK-8328115 : Convert java/awt/font/TextLayout/TestJustification.html applet test to main Message-ID: <-yOR9f0Ysff7awg6qHW2OoFR1zmgLk6c8r9qTFC6QhE=.7ac90ce0-f3f7-4ac6-ba46-945f73a5f4a8@github.com> java/awt/font/TextLayout/TestJustification.html is converted to main manual test using PassFailJFrame. This test was previously problemlisted on macOS. When tested on macOS, the problem still exists and not all lines are justified to the same length (lines containing Arabic & Hebrew differ by a small amount, Refer [JDK-8250791](https://bugs.openjdk.org/browse/JDK-8250791)). For this reason, the test is retained in problemlist but the extension is changed to .java to match the test changes. ------------- Commit messages: - reindented file - applet to main changes Changes: https://git.openjdk.org/jdk/pull/18285/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18285&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328115 Stats: 359 lines in 3 files changed: 114 ins; 154 del; 91 mod Patch: https://git.openjdk.org/jdk/pull/18285.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18285/head:pull/18285 PR: https://git.openjdk.org/jdk/pull/18285 From aturbanov at openjdk.org Wed Mar 13 18:59:14 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Wed, 13 Mar 2024 18:59:14 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: <9QDt94sVU4wTNy6YhVR6g8M0RF19IQuAGUswHah0JYQ=.055ae03f-7e71-49c3-b41d-c47618c12a5e@github.com> On Wed, 6 Mar 2024 11:27:08 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Store the size of fileCache inside synchronized block Marked as reviewed by aturbanov (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18111#pullrequestreview-1934977862 From azvegint at openjdk.org Wed Mar 13 19:01:27 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 19:01:27 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v3] In-Reply-To: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: > The test is converted to main. > Tested on Linux, Macos and Windows. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: extract logFrameBounds, instructions update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18250/files - new: https://git.openjdk.org/jdk/pull/18250/files/c09f4949..2c90d8e3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=01-02 Stats: 17 lines in 1 file changed: 8 ins; 4 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18250.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18250/head:pull/18250 PR: https://git.openjdk.org/jdk/pull/18250 From azvegint at openjdk.org Wed Mar 13 19:01:27 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 19:01:27 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> Message-ID: <9YxeUeeVFrKVvlymncS2p8IPO-rg4yBhN44Ju-F-YSU=.b8f11906-0e89-4fef-825c-4c53dbfc81dc@github.com> On Wed, 13 Mar 2024 17:32:01 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> minor formatting > > test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 47: > >> 45: 2. Press the button to print the result of getBounds() to the terminal. >> 46: 3. If getBounds() prints the correct values for the window, click Pass, >> 47: otherwise click Fail. > > How do I determine whether the newly printed values are correct? The instructions updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1523772401 From achung at openjdk.org Wed Mar 13 19:30:22 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 19:30:22 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 Message-ID: Removing applet usage from manual JColorChooser tests ------------- Commit messages: - init commit Changes: https://git.openjdk.org/jdk/pull/18286/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328121 Stats: 61 lines in 2 files changed: 20 ins; 36 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18286.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18286/head:pull/18286 PR: https://git.openjdk.org/jdk/pull/18286 From kizune at openjdk.org Wed Mar 13 19:43:14 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 19:43:14 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 16:19:35 GMT, Alexey Ivanov wrote: >> Cleaned up five more tests. >> >> Continuation of https://github.com/openjdk/jdk/pull/18184 >> >> Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. >> All comments from the previous review are addressed. > > test/jdk/javax/swing/JDesktopPane/bug4773378.java line 99: > >> 97: bug4773378.this.wait(); >> 98: } >> 99: } > > Suggestion: > > frameActivated.await(); > > > Using `CountDownLatch` is so much cleaner. You like your countdown latches :) Ok, i will re-write this test with CDL. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523824985 From azvegint at openjdk.org Wed Mar 13 19:48:19 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 19:48:19 GMT Subject: RFR: 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main Message-ID: The test is converted to main. Tested on Linux, Macos and Windows. ------------- Commit messages: - 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main Changes: https://git.openjdk.org/jdk/pull/18287/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18287&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328124 Stats: 250 lines in 2 files changed: 4 ins; 208 del; 38 mod Patch: https://git.openjdk.org/jdk/pull/18287.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18287/head:pull/18287 PR: https://git.openjdk.org/jdk/pull/18287 From kizune at openjdk.org Wed Mar 13 19:49:13 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 19:49:13 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 16:25:03 GMT, Alexey Ivanov wrote: >> Cleaned up five more tests. >> >> Continuation of https://github.com/openjdk/jdk/pull/18184 >> >> Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. >> All comments from the previous review are addressed. > > test/jdk/javax/swing/JDesktopPane/bug4773378.java line 107: > >> 105: robot.keyRelease(KeyEvent.VK_CONTROL); >> 106: >> 107: Thread.sleep(2000); > > Suggestion: > > robot.waitForIdle(); > > Is it really necessary to wait for 2 seconds before shutting down the test. > > According to [JDK-4773378](https://bugs.openjdk.org/browse/JDK-4773378), `NullPointerException` was thrown when Ctrl+F6 was pressed. The `waitForIdle` method doesn't return until the event queue is empty which implies the keyboard events are handled. It saves nearly 2 seconds. Ok. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523831409 From kizune at openjdk.org Wed Mar 13 20:08:07 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 20:08:07 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests In-Reply-To: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 16:28:47 GMT, Alexey Ivanov wrote: >> Cleaned up five more tests. >> >> Continuation of https://github.com/openjdk/jdk/pull/18184 >> >> Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. >> All comments from the previous review are addressed. > > test/jdk/javax/swing/JEditorPane/bug4325606.java line 80: > >> 78: robo = new Robot(); >> 79: } catch (AWTException e) { >> 80: throw new RuntimeException("Robot could not be created"); > > Suggestion: > > throw new RuntimeException("Robot could not be created", e); > > Preserve the original exception, which would be very helpful for debugging if it ever occurs. Ok. > test/jdk/javax/swing/JEditorPane/bug4325606.java line 84: > >> 82: robo.setAutoDelay(100); >> 83: robo.delay(1000); >> 84: Point p = frame.getLocationOnScreen(); > > Technically, `getLocationOnScreen` should be called on EDT. It happens in the windowOpened method of the WindowAdapter. If window events arrive not on EDT then we have a whole other slew of problems :) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523834899 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523842229 From kizune at openjdk.org Wed Mar 13 20:56:12 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 20:56:12 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: References: Message-ID: > Cleaned up five more tests. > > Continuation of https://github.com/openjdk/jdk/pull/18184 > > Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. > All comments from the previous review are addressed. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Minor changes based on review comments. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18259/files - new: https://git.openjdk.org/jdk/pull/18259/files/450cdda7..de3acd64 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=00-01 Stats: 31 lines in 2 files changed: 2 ins; 20 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18259.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18259/head:pull/18259 PR: https://git.openjdk.org/jdk/pull/18259 From kizune at openjdk.org Wed Mar 13 20:56:12 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 13 Mar 2024 20:56:12 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v2] In-Reply-To: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 16:38:14 GMT, Alexey Ivanov wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Minor changes based on review comments. > > test/jdk/javax/swing/JEditorPane/bug4694598.java line 64: > >> 62: } catch (IOException ioe){ >> 63: throw new RuntimeException("Could not create html file to embed", ioe); >> 64: } > > Move creating the file to `main` method before setting up GUI and let `IOException` escape from main. This is try-with-resources so if i will do it in main i will have to add synchronizing and closing of writer which is a strange trade-off so i would have to do try block anyways. > test/jdk/javax/swing/JEditorPane/bug4694598.java line 74: > >> 72: String html = " " + >> 73: "" + >> 74: "" + > > Suggestion: > > "" + > > Isn't it enough? Alternatively, `"file:/" + frameContentFile.toAbsolutePath()` produces the same result as `frameContentFile.toUri().toURL()`. > > Another option is to convert the `Path` to `URL` in the `main` method before calling `setupGUI` and remove try-catch blocks. Again, i do not mind the try/catch block and using URI instead of URL gives different result and i am not sure the original bug would be reproducible with URI which will make it a strange case of the regression test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523895158 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1523900378 From achung at openjdk.org Wed Mar 13 21:03:47 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 21:03:47 GMT Subject: RFR: 8328130: Remove applet usage from JColorChooser tests Test4759934 Message-ID: Removing applet usage from manual JColorChooser tests ------------- Commit messages: - remove html file - init commit Changes: https://git.openjdk.org/jdk/pull/18288/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328130 Stats: 93 lines in 2 files changed: 31 ins; 47 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/18288.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18288/head:pull/18288 PR: https://git.openjdk.org/jdk/pull/18288 From prr at openjdk.org Wed Mar 13 21:11:40 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 21:11:40 GMT Subject: RFR: 8328130: Remove applet usage from JColorChooser tests Test4759934 In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 20:57:42 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests test/jdk/javax/swing/JColorChooser/Test4759934.java line 27: > 25: * @test > 26: * @bug 4759934 > 27: * * @library /test/jdk/java/awt/regtesthelpers /test/lib remove /test/jdk from this test/jdk/javax/swing/JColorChooser/Test4759934.java line 73: > 71: .title("Test4759934") > 72: .instructions("Click on show Dialog. Then click on Show ColorChooser.\n" + > 73: "If a ColorChooser is shown, then pass.") Why is this just the first part of the instructions as given in the previous HTML ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18288#discussion_r1523914522 PR Review Comment: https://git.openjdk.org/jdk/pull/18288#discussion_r1523917663 From clanger at openjdk.org Wed Mar 13 21:11:53 2024 From: clanger at openjdk.org (Christoph Langer) Date: Wed, 13 Mar 2024 21:11:53 GMT Subject: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v11] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 16:55:12 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. >> >> The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. >> However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. >> >> I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. >> >> Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. > > Christoph Langer has updated the pull request incrementally with one additional commit since the last revision: > > Bring back verification of hBMDC and hBM Thanks for the reviews. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17614#issuecomment-1995820690 From clanger at openjdk.org Wed Mar 13 21:11:54 2024 From: clanger at openjdk.org (Christoph Langer) Date: Wed, 13 Mar 2024 21:11:54 GMT Subject: Integrated: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 In-Reply-To: References: Message-ID: On Mon, 29 Jan 2024 14:24:43 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.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org/browse/JDK-8323664) came up due to this. > > The problem is that in Windows environments without a valid display, e.g. started by system services or via PowerShell Remoting, one sees a Monitor with name 'Windisc' in `EnumDisplayMonitors`. > However, it seems to be some kind of a pseudo device where you can not get a DC via `CreateDC`. This behavior/monitor type doesn't seem to be well documented, though. > > I hereby modify the device initialization code to only count/detect monitors where CreateDC returns non-NULL in Devices.cpp. I also add some more checking/error handling to AwtWin32GraphicsDevice::Initialize() for correctness. > > Furthermore, I re-enable the test `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows Debug VMs, which reverts the fix from JDK-8269529 that should not be necessary any more. This pull request has now been integrated. Changeset: 1ad3ebcf Author: Christoph Langer URL: https://git.openjdk.org/jdk/commit/1ad3ebcf11834ec1d119ee95c858d98fb7bc6e68 Stats: 149 lines in 9 files changed: 89 ins; 25 del; 35 mod 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 Reviewed-by: aivanov, prr ------------- PR: https://git.openjdk.org/jdk/pull/17614 From prr at openjdk.org Wed Mar 13 22:03:38 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:03:38 GMT Subject: RFR: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main [v3] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 08:40:42 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Test passcriteria instructions update Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18228#pullrequestreview-1935289278 From prr at openjdk.org Wed Mar 13 22:03:54 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:03:54 GMT Subject: RFR: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java [v2] In-Reply-To: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> References: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> Message-ID: <4RDiLuYguODpYpWcs4xkfBHMLgPNF53N5u0aVdHhxlk=.d73676a4-6b51-4e4f-b8db-4f5f966423ef@github.com> > This was recently converted from a manual Applet to a PassFailJFrame main program > But I see a few things that could be tweaked > - Clarify instructions > - Set path to PassFailJFrame > - reduce timeout to default > - eliminate redundant folder Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328004 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18246/files - new: https://git.openjdk.org/jdk/pull/18246/files/800c3c43..a94468d6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18246&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18246&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18246.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18246/head:pull/18246 PR: https://git.openjdk.org/jdk/pull/18246 From prr at openjdk.org Wed Mar 13 22:06:40 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:06:40 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java In-Reply-To: References: Message-ID: <6JqcozfzKx1Ec8z9bT_uCZ7Dm9tTexqdmVYEbvTRBno=.409249f8-b6aa-4374-8213-4f8681490623@github.com> On Tue, 12 Mar 2024 08:33:41 GMT, Alexey Ivanov wrote: > This is to simplify `TrayIconScalingTest.java`. > > 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. > 2. Move creating tray icon to the top. > 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. > 4. Ensure tray is not null before removing the icon. > 5. Pass AWTException as the cause in the wrapped exception. > > Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. > > With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. Marked as reviewed by prr (Reviewer). test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java line 97: > 95: .testTimeOut(8) > 96: .rows(25) > 97: .columns(70) Personally I like rows+columns to immediately follow instructions, but I'll approve anyway and let you decide. ------------- PR Review: https://git.openjdk.org/jdk/pull/18224#pullrequestreview-1935292499 PR Review Comment: https://git.openjdk.org/jdk/pull/18224#discussion_r1523967651 From prr at openjdk.org Wed Mar 13 22:09:40 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:09:40 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:56:44 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates test/jdk/javax/swing/border/Test4760089.java line 44: > 42: public class Test4760089 { > 43: public static void main(String[] args) throws Exception { > 44: String testInstructions = """ You have lost the first part of the instructions. It used to start with "When applet starts, you'll see a panel with a compound titled border." now this would be "When the test starts, ..." Probably you'll need to add an extra row to the instructions. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18217#discussion_r1523969962 From prr at openjdk.org Wed Mar 13 22:10:39 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:10:39 GMT Subject: RFR: 8327876: Convert javax/swing/border/Test4252164.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 06:56:20 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4252164.java applet test to main based test using PassFailJFrame. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18216#pullrequestreview-1935297637 From achung at openjdk.org Wed Mar 13 22:11:53 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:11:53 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with two additional commits since the last revision: - fix spacing - fix instructions, add frame title, jtreg tag fix, spacing fix, add to frame without contentpane ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18209/files - new: https://git.openjdk.org/jdk/pull/18209/files/0c45d1cc..a3741361 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=01-02 Stats: 8 lines in 1 file changed: 1 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/18209.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18209/head:pull/18209 PR: https://git.openjdk.org/jdk/pull/18209 From prr at openjdk.org Wed Mar 13 22:15:39 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:15:39 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main [v2] In-Reply-To: References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: On Wed, 13 Mar 2024 05:19:32 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18215#pullrequestreview-1935302238 From achung at openjdk.org Wed Mar 13 22:16:49 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:16:49 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: fix jtreg tag, spacing, frame title ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18210/files - new: https://git.openjdk.org/jdk/pull/18210/files/b720007d..a6aed520 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=01-02 Stats: 10 lines in 1 file changed: 5 ins; 2 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18210.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18210/head:pull/18210 PR: https://git.openjdk.org/jdk/pull/18210 From prr at openjdk.org Wed Mar 13 22:17:41 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:17:41 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v3] In-Reply-To: References: Message-ID: <7IPLj5l-qCrI1rEjFg3p-_Bsczu_MYKvPb7O2ZRIeyI=.3d1c405b-456c-4482-9852-182b602d5e4e@github.com> On Wed, 13 Mar 2024 05:00:35 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18213#pullrequestreview-1935306434 From achung at openjdk.org Wed Mar 13 22:17:51 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:17:51 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 [v2] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: fix jtreg tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18286/files - new: https://git.openjdk.org/jdk/pull/18286/files/cf1fa65a..ac4cb4b1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=00-01 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18286.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18286/head:pull/18286 PR: https://git.openjdk.org/jdk/pull/18286 From achung at openjdk.org Wed Mar 13 22:18:00 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:18:00 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: move instructions string outside ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18209/files - new: https://git.openjdk.org/jdk/pull/18209/files/a3741361..74c34ada Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=02-03 Stats: 9 lines in 1 file changed: 5 ins; 3 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18209.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18209/head:pull/18209 PR: https://git.openjdk.org/jdk/pull/18209 From azvegint at openjdk.org Wed Mar 13 22:17:52 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 22:17:52 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:15:16 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > fix jtreg tag test/jdk/javax/swing/JColorChooser/Test4759306.java line 40: > 38: PassFailJFrame.builder() > 39: .title("Test4759306") > 40: .instructions("Check that there is no preview panel in the JColorChooser.") > Check that there is no preview panel For a tester who didn't use JColorChooser before this can be confusing It might be worth describing where to look for the Preview panel and what it looks like(e.g. `Check that there is no panel titled "Preview"` or similar) test/jdk/javax/swing/JColorChooser/Test4759306.java line 44: > 42: .columns(40) > 43: .testTimeOut(10) > 44: .testUI(Test4759306::test) Actually, we don't need to create a separate window for this, we can place the color chooser in the intruction window by using something like `.splitUIRight(Test4759306::createColorChooser)` private static JColorChooser createColorChooser() { JColorChooser chooser = new JColorChooser(); chooser.setPreviewPanel(new JPanel()); return chooser; } test/jdk/javax/swing/JColorChooser/Test4759306.java line 49: > 47: } > 48: > 49: private static JFrame test() { Probably a more meaningful name would be welcome. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18286#discussion_r1523852885 PR Review Comment: https://git.openjdk.org/jdk/pull/18286#discussion_r1523848100 PR Review Comment: https://git.openjdk.org/jdk/pull/18286#discussion_r1523848026 From achung at openjdk.org Wed Mar 13 22:20:51 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:20:51 GMT Subject: RFR: 8328130: Remove applet usage from JColorChooser tests Test4759934 [v2] In-Reply-To: References: Message-ID: <4L0-dpdqb-GfmafzCu1u4K68bWjlYQKJ1JCLI0buyC0=.fccc9641-cf44-423d-9636-1ad5f6e4a1dd@github.com> > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with two additional commits since the last revision: - move jtreg tag above class - fix jtreg tag, move instructions string outside ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18288/files - new: https://git.openjdk.org/jdk/pull/18288/files/88b40d55..f0546b5f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=00-01 Stats: 22 lines in 1 file changed: 11 ins; 10 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18288.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18288/head:pull/18288 PR: https://git.openjdk.org/jdk/pull/18288 From achung at openjdk.org Wed Mar 13 22:23:51 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:23:51 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: absolute path jtreg tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18286/files - new: https://git.openjdk.org/jdk/pull/18286/files/ac4cb4b1..5b1d20e6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18286.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18286/head:pull/18286 PR: https://git.openjdk.org/jdk/pull/18286 From achung at openjdk.org Wed Mar 13 22:24:03 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:24:03 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v5] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: relative path ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18209/files - new: https://git.openjdk.org/jdk/pull/18209/files/74c34ada..071f1713 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18209&range=03-04 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18209.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18209/head:pull/18209 PR: https://git.openjdk.org/jdk/pull/18209 From prr at openjdk.org Wed Mar 13 22:24:03 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:24:03 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v4] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:18:00 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > move instructions string outside test/jdk/javax/swing/JColorChooser/Test4222508.java line 32: > 30: * @test > 31: * @bug 4222508 > 32: * @library ../../../java/awt/regtesthelpers make it absolute not relative, ie /java/awt/regtesthelpers ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18209#discussion_r1523978352 From achung at openjdk.org Wed Mar 13 22:24:50 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:24:50 GMT Subject: RFR: 8328130: Remove applet usage from JColorChooser tests Test4759934 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: absolute path jtreg tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18288/files - new: https://git.openjdk.org/jdk/pull/18288/files/f0546b5f..f7121e6d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18288.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18288/head:pull/18288 PR: https://git.openjdk.org/jdk/pull/18288 From achung at openjdk.org Wed Mar 13 22:24:59 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:24:59 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: absolute path jtreg tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18210/files - new: https://git.openjdk.org/jdk/pull/18210/files/a6aed520..ee09aec5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18210.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18210/head:pull/18210 PR: https://git.openjdk.org/jdk/pull/18210 From prr at openjdk.org Wed Mar 13 22:24:59 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 22:24:59 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v3] In-Reply-To: References: Message-ID: <54DcF5KmPhyYVAlbw9IrlDjSrjEumf0532gFlGfuq_g=.e7d7ef7f-e4a3-4129-9db0-9282c676b811@github.com> On Wed, 13 Mar 2024 22:16:49 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > fix jtreg tag, spacing, frame title test/jdk/javax/swing/JColorChooser/Test4319113.java line 44: > 42: * @test > 43: * @bug 4319113 > 44: * @library ../../../java/awt/regtesthelpers absolute please ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18210#discussion_r1523979003 From achung at openjdk.org Wed Mar 13 22:37:49 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:37:49 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v5] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: use old instructions string ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18210/files - new: https://git.openjdk.org/jdk/pull/18210/files/ee09aec5..3e28310a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18210&range=03-04 Stats: 9 lines in 1 file changed: 6 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18210.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18210/head:pull/18210 PR: https://git.openjdk.org/jdk/pull/18210 From achung at openjdk.org Wed Mar 13 22:41:49 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:41:49 GMT Subject: RFR: 8328130: Remove applet usage from JColorChooser tests Test4759934 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: use old instructions string, give frame title ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18288/files - new: https://git.openjdk.org/jdk/pull/18288/files/f7121e6d..e3cc9a4c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18288&range=02-03 Stats: 8 lines in 1 file changed: 5 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18288.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18288/head:pull/18288 PR: https://git.openjdk.org/jdk/pull/18288 From achung at openjdk.org Wed Mar 13 22:45:50 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 13 Mar 2024 22:45:50 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: update instructions string, remove extra frame ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18286/files - new: https://git.openjdk.org/jdk/pull/18286/files/5b1d20e6..464822ca Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=02-03 Stats: 7 lines in 1 file changed: 0 ins; 3 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18286.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18286/head:pull/18286 PR: https://git.openjdk.org/jdk/pull/18286 From azvegint at openjdk.org Wed Mar 13 23:16:37 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 13 Mar 2024 23:16:37 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 [v4] In-Reply-To: References: Message-ID: <3hFz99_hlPEVXUtDdCIwtuK3VaZL3Bw2mjuzzcOjhvo=.42879da2-9ea0-408b-ac12-7d0a074d3e22@github.com> On Wed, 13 Mar 2024 22:45:50 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update instructions string, remove extra frame Marked as reviewed by azvegint (Reviewer). test/jdk/javax/swing/JColorChooser/Test4759306.java line 25: > 23: > 24: import javax.swing.JColorChooser; > 25: import javax.swing.JFrame; JFrame is no longer used. ------------- PR Review: https://git.openjdk.org/jdk/pull/18286#pullrequestreview-1935376276 PR Review Comment: https://git.openjdk.org/jdk/pull/18286#discussion_r1524018757 From prr at openjdk.org Wed Mar 13 23:45:38 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 23:45:38 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v5] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:24:03 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > relative path Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18209#pullrequestreview-1935403663 From prr at openjdk.org Wed Mar 13 23:48:38 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 23:48:38 GMT Subject: RFR: 8328130: Remove applet usage from JColorChooser tests Test4759934 [v4] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:41:49 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > use old instructions string, give frame title Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18288#pullrequestreview-1935406241 From prr at openjdk.org Wed Mar 13 23:50:44 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 13 Mar 2024 23:50:44 GMT Subject: Integrated: 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java In-Reply-To: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> References: <4Zq2gsAshsqM3HxMV4jxpgm25WDx40QRJ-EuBMVaAfQ=.f96fc9c2-ad2f-4026-9d9e-74d7444bb3fb@github.com> Message-ID: On Tue, 12 Mar 2024 18:49:03 GMT, Phil Race wrote: > This was recently converted from a manual Applet to a PassFailJFrame main program > But I see a few things that could be tweaked > - Clarify instructions > - Set path to PassFailJFrame > - reduce timeout to default > - eliminate redundant folder This pull request has now been integrated. Changeset: 2edf4081 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/2edf4081af727c197c0f158beb4b392bb4e70318 Stats: 263 lines in 2 files changed: 132 ins; 131 del; 0 mod 8328004: Minor updates to TrayIcon test DisposeInActionEventTest.java Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18246 From prr at openjdk.org Thu Mar 14 00:01:40 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 00:01:40 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v5] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:37:49 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > use old instructions string Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18210#pullrequestreview-1935415667 From prr at openjdk.org Thu Mar 14 00:16:37 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 00:16:37 GMT Subject: RFR: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:21:32 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Remove redundant dir Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18232#pullrequestreview-1935426664 From prr at openjdk.org Thu Mar 14 00:16:38 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 00:16:38 GMT Subject: RFR: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main [v2] In-Reply-To: <9Uu4kiGuYNcEHM6uzMpskhFqrpZiCJ0tsS3SI2rp-Aw=.76da1624-7b98-4ac7-9cac-5bc899ab7dc7@github.com> References: <9Uu4kiGuYNcEHM6uzMpskhFqrpZiCJ0tsS3SI2rp-Aw=.76da1624-7b98-4ac7-9cac-5bc899ab7dc7@github.com> Message-ID: On Wed, 13 Mar 2024 07:54:12 GMT, Prasanta Sadhukhan wrote: >> test/jdk/javax/swing/JOptionPane/bug8024926.java line 46: >> >>> 44: Verify that high resolution system icons are used >>> 45: in JOptionPane on HiDPI displays. >>> 46: 1) Run the test on Retina display or enable the Quartz Debug >> >> Quartz debug ? How ? And we don't even use Quartz. >> The pass criteria is completely subjective. >> So this test looks like it needs to be better. >> If you can't figure out a better test for this in less than a day just delete this useless thing. > > I can remove the "Quartz debug" portion if it is not applicable, but as you know, it's a straight lift from the existing instructions...The reviewer that time did not object to this phrase it seems (was it used that time and subsequently revoked later?) > https://hg.openjdk.org/jdk9/jdk9/jdk/rev/4991a758abef > > Also, the product fix has another test `test/javax/swing/JMenuItem/8031573/bug8031573.java` which also put the same pass criteria that icons should be smooth and our manual testing team has not made any objections to the instructions of both test it seems.. It looks like Quartz is still used in some native image handling code. OK. If the instruction is harmless let it stay, but I doubt anyone does that. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18232#discussion_r1524053294 From honkar at openjdk.org Thu Mar 14 00:29:42 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 00:29:42 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 22:55:02 GMT, Phil Race wrote: > java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. > It can be converted to a main program test using PassFailJFrame Changes looks good, except for minor formatting issues. Are we still considering on moving the tests one level up? test/jdk/java/awt/List/SetFontTest.java line 55: > 53: .instructions(INSTRUCTIONS) > 54: .rows(10) > 55: .columns(60) Existing config looks too wide for the instructions. Suggestion: .columns(35) test/jdk/java/awt/List/SetFontTest.java line 74: > 72: > 73: button1.addActionListener( > 74: new ActionListener(){ It can be shortened with lambda ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18255#pullrequestreview-1935432555 PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1524057294 PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1524058068 From honkar at openjdk.org Thu Mar 14 00:38:45 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 00:38:45 GMT Subject: RFR: 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main In-Reply-To: References: Message-ID: <_F3q0PIGAuHIpqb9H4K9mNBpQCBOjgqPuRjrrmaBfNE=.e589f0a8-e92f-4f06-9119-ee7495daa9f4@github.com> On Wed, 13 Mar 2024 19:43:10 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. Test changes look good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18287#pullrequestreview-1935448738 From honkar at openjdk.org Thu Mar 14 00:44:44 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 00:44:44 GMT Subject: RFR: 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 16:55:08 GMT, Alexander Zvegintsev wrote: > It is currently blocked with an artificial check: > > > if (panelCreator != null) { > if (splitUI && (testWindows != null || windowListCreator != null)) { > // TODO Is it required? We can support both > throw new IllegalStateException("Split UI is not allowed " > + "with additional windows"); > } > } > > > We have a number of manual tests, which has some text area in the instruction window to print a feedback from the test to be evaluated by a tester. > > Removing this check allows us to implement this. > We can consider making a special methods for this later. > > This is required for the #18250 Couple of similar tests can benefit by integrating this change of using testUI & splitUI in combination. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18281#pullrequestreview-1935452653 From honkar at openjdk.org Thu Mar 14 00:46:44 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 00:46:44 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v2] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> <9qtp_TZCirnTU3uMugjf4btFEirXuWK8UBSqWGQ-qRQ=.9fbc6b9e-51a7-44b3-84d5-1353edd0cdbd@github.com> Message-ID: On Wed, 13 Mar 2024 18:26:49 GMT, Alexey Ivanov wrote: >> The same applies to the following event handler. > > What can help to reduce the indentation is introducing a helper method. If it's still too long, store the result of formatting into a local variable and then append it to `textArea`. This can be done even in lambdas. @aivanov-jdk oh I might have missed the chaining order. Thanks for catching it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1524070649 From honkar at openjdk.org Thu Mar 14 01:04:43 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 01:04:43 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v2] In-Reply-To: <57vHBqQV5Hiqcr5Oaaj2A5-gwwi4r_QPFcDpqGGueK4=.28909cca-86f6-4c4a-a416-620d0d7052fd@github.com> References: <57vHBqQV5Hiqcr5Oaaj2A5-gwwi4r_QPFcDpqGGueK4=.28909cca-86f6-4c4a-a416-620d0d7052fd@github.com> Message-ID: On Wed, 13 Mar 2024 13:37:32 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Remove commented code Changes requested by honkar (Reviewer). test/jdk/javax/swing/JTable/TAB.java line 56: > 54: */ > 55: > 56: public class TAB Class name is in all-caps, `Tab` would be more appropriate. test/jdk/javax/swing/JTable/TAB.java line 88: > 86: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); > 87: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); > 88: robot.delay(100); Like the previous test since autoDelay() is set, this delay can be reduced or removed completely. test/jdk/javax/swing/JTable/TAB.java line 120: > 118: } > 119: > 120: static void createAndShowUI() There are few places where boxing (Integer(), Boolean()) is not required and can be removed as part of clean up. ------------- PR Review: https://git.openjdk.org/jdk/pull/18274#pullrequestreview-1935462874 PR Review Comment: https://git.openjdk.org/jdk/pull/18274#discussion_r1524079096 PR Review Comment: https://git.openjdk.org/jdk/pull/18274#discussion_r1524077589 PR Review Comment: https://git.openjdk.org/jdk/pull/18274#discussion_r1524076867 From kizune at openjdk.org Thu Mar 14 01:15:45 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 01:15:45 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: Message-ID: <8EQNKy3Uz6Lv16s6-hKGSSX7AtI9cVH3cB2UZwemte8=.12a3b862-f9b3-4ece-899e-650d622aef90@github.com> > Cleaned up five more tests. > > Continuation of https://github.com/openjdk/jdk/pull/18184 > > Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. > All comments from the previous review are addressed. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Update test/jdk/javax/swing/JDesktopPane/bug4773378.java Co-authored-by: Alexey Ivanov ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18259/files - new: https://git.openjdk.org/jdk/pull/18259/files/de3acd64..fa83e095 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18259.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18259/head:pull/18259 PR: https://git.openjdk.org/jdk/pull/18259 From psadhukhan at openjdk.org Thu Mar 14 02:34:43 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 14 Mar 2024 02:34:43 GMT Subject: Integrated: 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 11:09:28 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 7858138a Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/7858138ad212bb4dec0b30e7235b72fe74cdb960 Stats: 166 lines in 3 files changed: 78 ins; 88 del; 0 mod 8327752: Convert javax/swing/JOptionPane/4174551/bug4174551.java applet to main Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18228 From psadhukhan at openjdk.org Thu Mar 14 02:41:49 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 14 Mar 2024 02:41:49 GMT Subject: Integrated: 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 12:43:22 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 092a7343 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/092a7343a45297e481f9facb3420b2e91af5699d Stats: 315 lines in 3 files changed: 71 ins; 244 del; 0 mod 8327753: Convert javax/swing/JOptionPane/8024926/bug8024926.java applet to main Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18232 From psadhukhan at openjdk.org Thu Mar 14 02:53:44 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 14 Mar 2024 02:53:44 GMT Subject: Integrated: 8327754: Convert javax/swing/JPopupMenu/7160604/bug7160604.java applet to main In-Reply-To: <7frwXMi-bkKDX7Xw-pSh-AtGg7PcEdykdSmbvlVylhI=.9c9002c1-9c12-44ad-916a-f6c7dfd579ff@github.com> References: <7frwXMi-bkKDX7Xw-pSh-AtGg7PcEdykdSmbvlVylhI=.9c9002c1-9c12-44ad-916a-f6c7dfd579ff@github.com> Message-ID: On Wed, 13 Mar 2024 06:04:35 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 628e7702 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/628e7702746ed4cc899d9727432b64c701533eb3 Stats: 237 lines in 3 files changed: 112 ins; 125 del; 0 mod 8327754: Convert javax/swing/JPopupMenu/7160604/bug7160604.java applet to main Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18257 From psadhukhan at openjdk.org Thu Mar 14 02:54:51 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 14 Mar 2024 02:54:51 GMT Subject: Integrated: 8327755: Convert javax/swing/JScrollBar/8039464/Test8039464.java applet to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 06:30:34 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 98e4b753 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/98e4b753e8d7fbbf651c866901734d4f6a7d1680 Stats: 219 lines in 3 files changed: 95 ins; 124 del; 0 mod 8327755: Convert javax/swing/JScrollBar/8039464/Test8039464.java applet to main Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18258 From tr at openjdk.org Thu Mar 14 03:27:40 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 03:27:40 GMT Subject: RFR: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main [v2] In-Reply-To: References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: On Wed, 13 Mar 2024 05:19:32 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18215#pullrequestreview-1935577423 From tr at openjdk.org Thu Mar 14 03:27:41 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 03:27:41 GMT Subject: RFR: 8327859: Remove applet usage from JColorChooser tests Test4319113 [v5] In-Reply-To: References: Message-ID: <5ZiNfo88IR5CjloToX2ciMQOWeAEWB_im1e1Qk-UFVM=.a3bd1066-d854-42c9-91a9-b82a5bdb56c4@github.com> On Wed, 13 Mar 2024 22:37:49 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > use old instructions string Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18210#pullrequestreview-1935576928 From tr at openjdk.org Thu Mar 14 03:28:38 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 03:28:38 GMT Subject: RFR: 8327857: Remove applet usage from JColorChooser tests Test4222508 [v5] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:24:03 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > relative path Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18209#pullrequestreview-1935577997 From tr at openjdk.org Thu Mar 14 03:29:39 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 03:29:39 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 17:28:41 GMT, Harshitha Onkar wrote: >> The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. >> >> - test renamed to PinyinIMCapsTest >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> PS: I tried to automate this test using Robot, but was unable to produce the same effect as a keyboard keypress for Pinyin, hence keep it as a manual test. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instructions updated Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18245#pullrequestreview-1935578519 From tr at openjdk.org Thu Mar 14 04:48:41 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 04:48:41 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v4] In-Reply-To: References: Message-ID: <2Ei6cim7yoEWHTzirrQ8TbqcAIjY2shmstPaXcoUGIg=.a8774df0-5d69-45f7-bc79-6d0856fb56e1@github.com> On Wed, 13 Mar 2024 17:20:38 GMT, Harshitha Onkar wrote: >> Following InputMethod applet tests are converted to main using PassFailJFrame >> >> 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) >> 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) >> >> - test instructions are updated to make to more clear >> - tests renamed >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instruction updated test/jdk/java/awt/im/PinyinIMCommaTest.java line 44: > 42: > 43: public class PinyinIMCommaTest { > 44: private static final String INSTRUCTIONS = """ `INSTRUCTIONS ` can be moved inside main (Other test also) test/jdk/java/awt/im/PinyinIMCommaTest.java line 82: > 80: JTextField input = new JTextField(20); > 81: panel.add(new JLabel("Text field:")); > 82: panel.add(input); can add JTextField also this way `panel.add(new JTextField(20));`? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1524234200 PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1524235092 From tr at openjdk.org Thu Mar 14 04:59:09 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 04:59:09 GMT Subject: RFR: 8328030: Convert javax/swing/text/GlyphView/4984669/bug4984669.java applet test to main [v2] In-Reply-To: References: Message-ID: <2SmALyVZo0rL4kADlcwPABn1vBCIKWK2L7Ac_Qtlvfs=.3396ee1d-50d8-45b9-b41c-44c4997794dc@github.com> > Convert javax/swing/text/GlyphView/4984669/bug4984669.java manual applet test to main based using PassFailJFrame. Tejesh R has updated the pull request incrementally with two additional commits since the last revision: - minor updates - Test renamed and minor updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18256/files - new: https://git.openjdk.org/jdk/pull/18256/files/03eb1122..2b927f3d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18256&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18256&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18256.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18256/head:pull/18256 PR: https://git.openjdk.org/jdk/pull/18256 From abhiscxk at openjdk.org Thu Mar 14 05:11:04 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 05:11:04 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v3] In-Reply-To: References: Message-ID: <9qBuiIpcpe0XKpu4Kj01JDyIZ7HWufLugUXFLmNe_Co=.14f6c8d0-9f5e-4e42-92d0-10f3980da77e@github.com> > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: class anme change and minor update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18274/files - new: https://git.openjdk.org/jdk/pull/18274/files/66d7884c..dc82c84b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=01-02 Stats: 29 lines in 1 file changed: 2 ins; 2 del; 25 mod Patch: https://git.openjdk.org/jdk/pull/18274.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18274/head:pull/18274 PR: https://git.openjdk.org/jdk/pull/18274 From tr at openjdk.org Thu Mar 14 05:13:42 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 05:13:42 GMT Subject: Integrated: 8328030: Convert javax/swing/text/GlyphView/4984669/bug4984669.java applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:52:07 GMT, Tejesh R wrote: > Convert javax/swing/text/GlyphView/4984669/bug4984669.java manual applet test to main based using PassFailJFrame. This pull request has now been integrated. Changeset: 7502dc99 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/7502dc99bf23109ef16fb99de25b09bab51e4978 Stats: 165 lines in 3 files changed: 80 ins; 85 del; 0 mod 8328030: Convert javax/swing/text/GlyphView/4984669/bug4984669.java applet test to main Reviewed-by: azvegint, prr ------------- PR: https://git.openjdk.org/jdk/pull/18256 From tr at openjdk.org Thu Mar 14 05:21:03 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 05:21:03 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18217/files - new: https://git.openjdk.org/jdk/pull/18217/files/689c9091..fc2ea7b5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18217&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18217&range=01-02 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18217.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18217/head:pull/18217 PR: https://git.openjdk.org/jdk/pull/18217 From tr at openjdk.org Thu Mar 14 05:21:03 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 05:21:03 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 22:07:02 GMT, Phil Race wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/border/Test4760089.java line 44: > >> 42: public class Test4760089 { >> 43: public static void main(String[] args) throws Exception { >> 44: String testInstructions = """ > > You have lost the first part of the instructions. > It used to start with > "When applet starts, you'll see a panel with a compound titled border." > > now this would be > "When the test starts, ..." > > Probably you'll need to add an extra row to the instructions. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18217#discussion_r1524253482 From abhiscxk at openjdk.org Thu Mar 14 05:22:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 05:22:40 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v4] In-Reply-To: References: Message-ID: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with two additional commits since the last revision: - Test file update - Rename test file ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18274/files - new: https://git.openjdk.org/jdk/pull/18274/files/dc82c84b..0a6e5acb Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=02-03 Stats: 0 lines in 1 file changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18274.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18274/head:pull/18274 PR: https://git.openjdk.org/jdk/pull/18274 From tr at openjdk.org Thu Mar 14 05:39:39 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 05:39:39 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v3] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 18:12:38 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Whitespace error fix test/jdk/javax/swing/JTable/bug4222153.java line 66: > 64: frame.setLocationRelativeTo(null); > 65: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > 66: frame.setVisible(true); I guess it is better to move frame initialization part into a separate method rather here. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1524263059 From abhiscxk at openjdk.org Thu Mar 14 05:43:39 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 05:43:39 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 09:47:37 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates test/jdk/javax/swing/border/Test4129681.java line 43: > 41: public static void main(String[] args) throws Exception { > 42: String testInstructions = """ > 43: Turn on the checkbox to disable the label. Can I suggest something like this ? Suggestion: Click the checkbox to disable/enable the label. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1524267502 From abhiscxk at openjdk.org Thu Mar 14 05:51:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 05:51:55 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v4] In-Reply-To: References: Message-ID: <1okH-q00rjuD4KfgG4FDMLFGS81efUOzvROW_QdRFrU=.ffe5e1df-bec6-4220-9b79-c9dd461d81b1@github.com> > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: UI init in separate method ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18275/files - new: https://git.openjdk.org/jdk/pull/18275/files/c251b3f3..d18103e8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18275&range=02-03 Stats: 19 lines in 1 file changed: 10 ins; 8 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18275.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18275/head:pull/18275 PR: https://git.openjdk.org/jdk/pull/18275 From abhiscxk at openjdk.org Thu Mar 14 05:51:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 05:51:55 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v3] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 05:33:41 GMT, Tejesh R wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Whitespace error fix > > test/jdk/javax/swing/JTable/bug4222153.java line 66: > >> 64: frame.setLocationRelativeTo(null); >> 65: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); >> 66: frame.setVisible(true); > > I guess it is better to move frame initialization part into a separate method rather here. Since the UI initialization was minimal, I kept it in main. Moved to separate method now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18275#discussion_r1524271401 From abhiscxk at openjdk.org Thu Mar 14 05:55:39 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 05:55:39 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v3] In-Reply-To: <5j-kUmJAGV9tEZBTNWCCUAYbQCdYbkS2aT4smyVjqe4=.61f56bc7-0389-4182-9b5a-6d06b676cdea@github.com> References: <5j-kUmJAGV9tEZBTNWCCUAYbQCdYbkS2aT4smyVjqe4=.61f56bc7-0389-4182-9b5a-6d06b676cdea@github.com> Message-ID: On Tue, 12 Mar 2024 09:53:43 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Minor comment: Sort the imports. test/jdk/javax/swing/border/Test4243289.java line 24: > 22: */ > 23: > 24: import java.awt.Font; Suggestion: import java.awt.Dimension; import java.awt.Font; ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18197#pullrequestreview-1935742960 PR Review Comment: https://git.openjdk.org/jdk/pull/18197#discussion_r1524274292 From tr at openjdk.org Thu Mar 14 05:57:38 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 05:57:38 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v4] In-Reply-To: <1okH-q00rjuD4KfgG4FDMLFGS81efUOzvROW_QdRFrU=.ffe5e1df-bec6-4220-9b79-c9dd461d81b1@github.com> References: <1okH-q00rjuD4KfgG4FDMLFGS81efUOzvROW_QdRFrU=.ffe5e1df-bec6-4220-9b79-c9dd461d81b1@github.com> Message-ID: <-klM66JxSB2gLNarbafu3TwarnXjv6IgIxstZXQ2UCU=.0bbff320-957e-4d43-b5e0-77dc230d5a47@github.com> On Thu, 14 Mar 2024 05:51:55 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > UI init in separate method Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18275#pullrequestreview-1935746268 From tr at openjdk.org Thu Mar 14 06:51:47 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 06:51:47 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v5] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18189/files - new: https://git.openjdk.org/jdk/pull/18189/files/bc78d143..a485fd75 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18189&range=03-04 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18189.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18189/head:pull/18189 PR: https://git.openjdk.org/jdk/pull/18189 From tr at openjdk.org Thu Mar 14 06:51:48 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 06:51:48 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 05:40:59 GMT, Abhishek Kumar wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/border/Test4129681.java line 43: > >> 41: public static void main(String[] args) throws Exception { >> 42: String testInstructions = """ >> 43: Turn on the checkbox to disable the label. > > Can I suggest something like this ? > Suggestion: > > Click the checkbox to disable/enable the label. Since the test is for disable, I would retain the instructions to disable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1524314441 From aivanov at openjdk.org Thu Mar 14 09:08:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:08:40 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 19:40:16 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JDesktopPane/bug4773378.java line 99: >> >>> 97: bug4773378.this.wait(); >>> 98: } >>> 99: } >> >> Suggestion: >> >> frameActivated.await(); >> >> >> Using `CountDownLatch` is so much cleaner. > > You like your countdown latches :) Ok, i will re-write this test with CDL. Because 1 line of code replaces 4 lines of code and communicates what's happening much clearer than a synchronized block with a flag. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524493581 From abhiscxk at openjdk.org Thu Mar 14 09:09:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 09:09:41 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v5] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 06:51:47 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1936096203 From abhiscxk at openjdk.org Thu Mar 14 09:10:45 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 09:10:45 GMT Subject: Integrated: 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main In-Reply-To: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> References: <4HQ5z1My4A9Qcac-1K9Y9sTf7dqWpxrJtdIgSxC1vro=.41a923c6-8607-4c95-8c6f-8a6c5ed1504f@github.com> Message-ID: On Tue, 12 Mar 2024 06:43:36 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 49ce85fa Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/49ce85fae9f06d05367c94615532f6ff87952c79 Stats: 222 lines in 3 files changed: 99 ins; 123 del; 0 mod 8327874: Convert javax/swing/JTree/4314199/bug4314199.java applet test to main Reviewed-by: prr, tr ------------- PR: https://git.openjdk.org/jdk/pull/18215 From kizune at openjdk.org Thu Mar 14 09:15:41 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 09:15:41 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 16:26:38 GMT, Alexey Ivanov wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Update test/jdk/javax/swing/JDesktopPane/bug4773378.java >> >> Co-authored-by: Alexey Ivanov > > test/jdk/javax/swing/JDesktopPane/bug4773378.java line 117: > >> 115: } >> 116: >> 117: class MyDesktopManager extends DefaultDesktopManager { > > Suggestion: > > private static class MyDesktopManager extends DefaultDesktopManager { Done. > test/jdk/javax/swing/JEditorPane/bug4325606.java line 101: > >> 99: } catch (BadLocationException blex) { >> 100: passed = false; >> 101: } > > Suggestion: > > } catch (BadLocationException blex) { > throw new RuntimeException("Test failed", blex); > } > > Throw exception preserving the original exception which will help analysing the failure? Fixed. > test/jdk/javax/swing/JEditorPane/bug4325606.java line 120: > >> 118: if (!b.passed) { >> 119: throw new RuntimeException("Test failed."); >> 120: } > > Suggestion: > > robot.waitForIdle(); > > Wait until all events are processed. If test fails, it throws an exception on EDT; otherwise, the test is finished as soon as the event queue is empty. No need to waste 3 seconds. Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524501718 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524502044 PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524502442 From abhiscxk at openjdk.org Thu Mar 14 09:30:42 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 09:30:42 GMT Subject: RFR: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 07:34:24 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JSlider/bug6524424.java line 28: > 26: * @bug 6524424 > 27: * @requires (os.family == "windows") > 28: * @summary JSlider Clicking In Tracks Behavior Inconsistent For Different Tick Spacings Minor suggestion: All words need not to be start with Capital letter. Suggestion: * @summary JSlider clicking in tracks behavior inconsistent for different tick spacings test/jdk/javax/swing/JSlider/bug6524424.java line 80: > 78: JFrame frame = new JFrame(); > 79: > 80: frame.setContentPane(panel); `JFrame frame = new JFrame();` Please add suitable frame title. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18263#discussion_r1524521674 PR Review Comment: https://git.openjdk.org/jdk/pull/18263#discussion_r1524524351 From aivanov at openjdk.org Thu Mar 14 09:30:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:30:41 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 19:57:08 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JEditorPane/bug4325606.java line 84: >> >>> 82: robo.setAutoDelay(100); >>> 83: robo.delay(1000); >>> 84: Point p = frame.getLocationOnScreen(); >> >> Technically, `getLocationOnScreen` should be called on EDT. > > It happens in the windowOpened method of the WindowAdapter. If window events arrive not on EDT then we have a whole other slew of problems :) ???? That's right! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524524570 From aivanov at openjdk.org Thu Mar 14 09:30:43 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:30:43 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: <8EQNKy3Uz6Lv16s6-hKGSSX7AtI9cVH3cB2UZwemte8=.12a3b862-f9b3-4ece-899e-650d622aef90@github.com> References: <8EQNKy3Uz6Lv16s6-hKGSSX7AtI9cVH3cB2UZwemte8=.12a3b862-f9b3-4ece-899e-650d622aef90@github.com> Message-ID: On Thu, 14 Mar 2024 01:15:45 GMT, Alexander Zuev wrote: >> Cleaned up five more tests. >> >> Continuation of https://github.com/openjdk/jdk/pull/18184 >> >> Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. >> All comments from the previous review are addressed. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Update test/jdk/javax/swing/JDesktopPane/bug4773378.java > > Co-authored-by: Alexey Ivanov test/jdk/javax/swing/JEditorPane/bug4325606.java line 100: > 98: Utilities.getRowStart(pane, pane.getCaretPosition()); > 99: } catch (BadLocationException blex) { > 100: throw new RuntimeException("Test failed."); Suggestion: throw new RuntimeException("Test failed.", blex); Preserve the original exception as it shows where the problem occurred. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524520356 From abhiscxk at openjdk.org Thu Mar 14 09:33:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 09:33:38 GMT Subject: RFR: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 07:34:24 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JSlider/bug6524424.java line 81: > 79: > 80: frame.setContentPane(panel); > 81: frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); `frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); ` redundant can be removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18263#discussion_r1524528145 From aivanov at openjdk.org Thu Mar 14 09:34:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:34:40 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Wed, 13 Mar 2024 20:49:19 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JEditorPane/bug4694598.java line 64: >> >>> 62: } catch (IOException ioe){ >>> 63: throw new RuntimeException("Could not create html file to embed", ioe); >>> 64: } >> >> Move creating the file to `main` method before setting up GUI and let `IOException` escape from main. > > This is try-with-resources so if i will do it in main i will have to add synchronizing and closing of writer which is a strange trade-off so i would have to do try block anyways. Why would you need synchronisation? try (Writer writer = Files.newBufferedWriter(frameContentFile)) { writer.write(frameContentString); } would write out the contents of the file and close the file handle. In setupGui, you would still use `frameContentFile` object only which is `final` and immutable, therefore it's thread-safe. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524529046 From abhiscxk at openjdk.org Thu Mar 14 09:37:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 09:37:41 GMT Subject: RFR: 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 07:10:32 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework test/jdk/javax/swing/JSlider/4987336/bug4987336.java line 47: > 45: import javax.swing.SwingUtilities; > 46: import javax.swing.border.TitledBorder; > 47: import javax.swing.UIManager; `import javax.swing.UIManager;` can be put before `import javax.swing.border.TitledBorder;` test/jdk/javax/swing/JSlider/4987336/bug4987336.java line 75: > 73: > 74: private static JFrame createTestUI() { > 75: frame = new JFrame(); frame title. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18261#discussion_r1524533267 PR Review Comment: https://git.openjdk.org/jdk/pull/18261#discussion_r1524531641 From aivanov at openjdk.org Thu Mar 14 09:38:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:38:38 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: <9bTglbV8F9dZ3vGxlS_VjiEuyrt1WRajxNxeSytmYk8=.1728dac3-66c0-4ced-acf7-0438e83bc79e@github.com> On Wed, 13 Mar 2024 20:51:18 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JEditorPane/bug4694598.java line 74: >> >>> 72: String html = " " + >>> 73: "" + >>> 74: "" + >> >> Suggestion: >> >> "" + >> >> Isn't it enough? Alternatively, `"file:/" + frameContentFile.toAbsolutePath()` produces the same result as `frameContentFile.toUri().toURL()`. >> >> Another option is to convert the `Path` to `URL` in the `main` method before calling `setupGUI` and remove try-catch blocks. > > Again, i do not mind the try/catch block and using URI instead of URL gives different result and i am not sure the original bug would be reproducible with URI which will make it a strange case of the regression test. Okay. Without the try-catch blocks, the code is simpler? Ensuring the updated test still reproduces the original issue is always a good thing to do, but running the updated with an old version of Java often requires modifying the source code again. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524534991 From aivanov at openjdk.org Thu Mar 14 09:48:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:48:41 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 06:48:08 GMT, Tejesh R wrote: >> test/jdk/javax/swing/border/Test4129681.java line 43: >> >>> 41: public static void main(String[] args) throws Exception { >>> 42: String testInstructions = """ >>> 43: Turn on the checkbox to disable the label. >> >> Can I suggest something like this ? >> Suggestion: >> >> Click the checkbox to disable/enable the label. > > Since the test is for disable, I would retain the instructions to disable. [Microsoft recommends](https://learn.microsoft.com/en-us/windows/win32/uxguide/ctrl-check-boxes#documentation) using *select / clear* the check box: To describe user interaction, use select and clear. I don't know about Apple macOS and Linux systems. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18189#discussion_r1524548512 From aivanov at openjdk.org Thu Mar 14 09:56:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 09:56:41 GMT Subject: RFR: 8327787: Convert javax/swing/border/Test4129681.java applet test to main [v5] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 06:51:47 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18189#pullrequestreview-1936201343 From aivanov at openjdk.org Thu Mar 14 10:02:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 10:02:41 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: <8EQNKy3Uz6Lv16s6-hKGSSX7AtI9cVH3cB2UZwemte8=.12a3b862-f9b3-4ece-899e-650d622aef90@github.com> Message-ID: On Thu, 14 Mar 2024 09:25:29 GMT, Alexey Ivanov wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Update test/jdk/javax/swing/JDesktopPane/bug4773378.java >> >> Co-authored-by: Alexey Ivanov > > test/jdk/javax/swing/JEditorPane/bug4325606.java line 100: > >> 98: Utilities.getRowStart(pane, pane.getCaretPosition()); >> 99: } catch (BadLocationException blex) { >> 100: throw new RuntimeException("Test failed."); > > Suggestion: > > throw new RuntimeException("Test failed.", blex); > > Preserve the original exception as it shows where the problem occurred. The only thing left? I consider it important. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524568506 From abhiscxk at openjdk.org Thu Mar 14 10:11:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 10:11:41 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program In-Reply-To: References: Message-ID: <8mOuRoC4aJ-TF7NSC35Qh9w-TcjUg1dvbkpRoNNs01s=.8fe0cb9f-6918-4034-9030-80a1036b23e7@github.com> On Tue, 12 Mar 2024 22:55:02 GMT, Phil Race wrote: > java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. > It can be converted to a main program test using PassFailJFrame Marked as reviewed by abhiscxk (Committer). test/jdk/java/awt/List/SetFontTest.java line 92: > 90: frame.add(button1); > 91: frame.add(button2); > 92: frame.setSize(200,250); minor : Suggestion: frame.setSize(200, 250); ------------- PR Review: https://git.openjdk.org/jdk/pull/18255#pullrequestreview-1936233608 PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1524580794 From abhiscxk at openjdk.org Thu Mar 14 10:25:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 10:25:38 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 22:55:02 GMT, Phil Race wrote: > java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. > It can be converted to a main program test using PassFailJFrame test/jdk/java/awt/List/SetFontTest.java line 42: > 40: public class SetFontTest { > 41: > 42: static final String INSTRUCTIONS = Looks cleaner with `Text Blocks`. """ 1) Click on the 'Enlarge font' button to enlarge font of the list. 2) If you see that the rows of the list overlap one another then the test failed. Otherwise, go to step 3. 3) Click on the 'Change mode' button to set multiple-selection mode. 4) If you see that the rows of the list overlap one another then the test failed. Otherwise, the test passed."""; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1524600042 From kizune at openjdk.org Thu Mar 14 10:34:06 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 10:34:06 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v4] In-Reply-To: References: <9hBnCXqmWqizqPJKVIA8M8wL2i9lqgddkRMwMmIU4qM=.a09493e9-a861-4383-aa51-4e692f0acf67@github.com> Message-ID: On Thu, 14 Mar 2024 09:31:39 GMT, Alexey Ivanov wrote: >> This is try-with-resources so if i will do it in main i will have to add synchronizing and closing of writer which is a strange trade-off so i would have to do try block anyways. > > Why would you need synchronisation? > > > try (Writer writer = Files.newBufferedWriter(frameContentFile)) { > writer.write(frameContentString); > } > > would write out the contents of the file and close the file handle. In setupGui, you would still use `frameContentFile` object only which is `final` and immutable, therefore it's thread-safe. And that's pretty much what i do here - except for the exception handling. I just do not see a reason to move it to main, it makes no difference except now the HTML creation will be split and harder to understand. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524607845 From kizune at openjdk.org Thu Mar 14 10:34:06 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 10:34:06 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v4] In-Reply-To: References: Message-ID: > Cleaned up five more tests. > > Continuation of https://github.com/openjdk/jdk/pull/18184 > > Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. > All comments from the previous review are addressed. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Update test/jdk/javax/swing/JEditorPane/bug4325606.java Co-authored-by: Alexey Ivanov ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18259/files - new: https://git.openjdk.org/jdk/pull/18259/files/fa83e095..40585165 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18259&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18259.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18259/head:pull/18259 PR: https://git.openjdk.org/jdk/pull/18259 From kizune at openjdk.org Thu Mar 14 10:34:06 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 10:34:06 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v3] In-Reply-To: References: <8EQNKy3Uz6Lv16s6-hKGSSX7AtI9cVH3cB2UZwemte8=.12a3b862-f9b3-4ece-899e-650d622aef90@github.com> Message-ID: On Thu, 14 Mar 2024 09:59:43 GMT, Alexey Ivanov wrote: >> test/jdk/javax/swing/JEditorPane/bug4325606.java line 100: >> >>> 98: Utilities.getRowStart(pane, pane.getCaretPosition()); >>> 99: } catch (BadLocationException blex) { >>> 100: throw new RuntimeException("Test failed."); >> >> Suggestion: >> >> throw new RuntimeException("Test failed.", blex); >> >> Preserve the original exception as it shows where the problem occurred. > > The only thing left? I consider it important. Done. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18259#discussion_r1524611456 From abhiscxk at openjdk.org Thu Mar 14 10:36:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 10:36:41 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 06:59:02 GMT, Tejesh R wrote: > Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. test/jdk/javax/swing/text/html/TableView/7030332/bug7030332.java line 37: > 35: /* @test > 36: * @bug 7030332 > 37: * @summary Default borders in tables looks incorrect JEditorPane Is something missing in summary? test/jdk/javax/swing/text/html/TableView/7030332/bug7030332.java line 47: > 45: String testInstructions = """ > 46: Compare Golden Images with rendered JEditorPane. > 47: They should looks similar in each line. Suggestion: They should look similar in each line. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18260#discussion_r1524615475 PR Review Comment: https://git.openjdk.org/jdk/pull/18260#discussion_r1524613250 From tr at openjdk.org Thu Mar 14 10:43:58 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 10:43:58 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main Message-ID: Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. ------------- Commit messages: - Conversion from Applet to Main Changes: https://git.openjdk.org/jdk/pull/18296/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18296&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328154 Stats: 257 lines in 2 files changed: 34 ins; 198 del; 25 mod Patch: https://git.openjdk.org/jdk/pull/18296.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18296/head:pull/18296 PR: https://git.openjdk.org/jdk/pull/18296 From azvegint at openjdk.org Thu Mar 14 10:44:42 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 10:44:42 GMT Subject: Integrated: 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 16:55:08 GMT, Alexander Zvegintsev wrote: > It is currently blocked with an artificial check: > > > if (panelCreator != null) { > if (splitUI && (testWindows != null || windowListCreator != null)) { > // TODO Is it required? We can support both > throw new IllegalStateException("Split UI is not allowed " > + "with additional windows"); > } > } > > > We have a number of manual tests, which has some text area in the instruction window to print a feedback from the test to be evaluated by a tester. > > Removing this check allows us to implement this. > We can consider making a special methods for this later. > > This is required for the #18250 This pull request has now been integrated. Changeset: 11a3673d Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/11a3673d42edbefef70228b4d14595aab11fdac4 Stats: 8 lines in 1 file changed: 0 ins; 8 del; 0 mod 8328110: Allow simultaneous use of PassFailJFrame with split UI and additional windows Reviewed-by: aivanov, honkar ------------- PR: https://git.openjdk.org/jdk/pull/18281 From tr at openjdk.org Thu Mar 14 10:52:59 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 10:52:59 GMT Subject: Integrated: 8327826: Convert javax/swing/border/Test4243289.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 14:46:11 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: a43c3cc3 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/a43c3cc3476f18c048809bcd08f81fc4288ca399 Stats: 69 lines in 2 files changed: 24 ins; 33 del; 12 mod 8327826: Convert javax/swing/border/Test4243289.java applet test to main Reviewed-by: aivanov, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18197 From tr at openjdk.org Thu Mar 14 10:52:58 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 10:52:58 GMT Subject: RFR: 8327826: Convert javax/swing/border/Test4243289.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4243289.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18197/files - new: https://git.openjdk.org/jdk/pull/18197/files/9077a872..379f796f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18197&range=02-03 Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18197.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18197/head:pull/18197 PR: https://git.openjdk.org/jdk/pull/18197 From aivanov at openjdk.org Thu Mar 14 10:57:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 10:57:41 GMT Subject: RFR: 8316388: Opensource five Swing component related regression tests [v4] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:34:06 GMT, Alexander Zuev wrote: >> Cleaned up five more tests. >> >> Continuation of https://github.com/openjdk/jdk/pull/18184 >> >> Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. >> All comments from the previous review are addressed. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Update test/jdk/javax/swing/JEditorPane/bug4325606.java > > Co-authored-by: Alexey Ivanov Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18259#pullrequestreview-1936332431 From tr at openjdk.org Thu Mar 14 10:57:45 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 10:57:45 GMT Subject: Integrated: 8327787: Convert javax/swing/border/Test4129681.java applet test to main In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 11:10:14 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4129681.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: ad0f3294 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/ad0f329493a73020899640b0815e33ee6d3ea78d Stats: 82 lines in 2 files changed: 23 ins; 43 del; 16 mod 8327787: Convert javax/swing/border/Test4129681.java applet test to main Reviewed-by: aivanov, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18189 From ihse at openjdk.org Thu Mar 14 10:59:48 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Thu, 14 Mar 2024 10:59:48 GMT Subject: RFR: 8328146: Set LIBCXX automatically Message-ID: We are adding LIBCXX to LIBS in calls to SetupJdkLibrary whenever LINK_TYPE is C++. We should do this automatically in SetupJdkLibrary for C++ linking. I also removed the superfluous `-lc` from some places where it had been added. ------------- Commit messages: - 8328146: Set LIBCXX automatically Changes: https://git.openjdk.org/jdk/pull/18298/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18298&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328146 Stats: 27 lines in 10 files changed: 8 ins; 4 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/18298.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18298/head:pull/18298 PR: https://git.openjdk.org/jdk/pull/18298 From aivanov at openjdk.org Thu Mar 14 11:00:45 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 11:00:45 GMT Subject: Integrated: 8325851: Hide PassFailJFrame.Builder constructor In-Reply-To: References: Message-ID: <_8OiwezmXJmJ7UE3w0c0Dzpt3crq-C7wCTnrhpAULz8=.e7dc0297-badb-46d9-b18f-57a76972f786@github.com> On Mon, 11 Mar 2024 21:18:40 GMT, Alexey Ivanov wrote: > The `Builder` class in `PassFailJFrame` is public and has a public constructor. At the same time, a better design would be to hide all the Builder constructors and rely on the `builder()` method which returns an instance of the `Builder` class. > > This PR makes the constructor of the `Builder` class private so that it's not accessible directly. > > Use `PassFailJFrame.builder()` to get an instance of the builder and configure parameters of `PassFailJFrame`. > > I updated all the tests which used the constructor directly by calling `new PassFailJFrame.Builder()`. > > I converted a few tests to use the `testUI`, which greatly simplifies the test code. This change also removes flickering of the test UI. This pull request has now been integrated. Changeset: 3b9255eb Author: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/3b9255eb663b4c90aa5cec89f0d9380ef8eba49e Stats: 242 lines in 21 files changed: 14 ins; 118 del; 110 mod 8325851: Hide PassFailJFrame.Builder constructor Reviewed-by: honkar, prr ------------- PR: https://git.openjdk.org/jdk/pull/18206 From tr at openjdk.org Thu Mar 14 11:02:52 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 11:02:52 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: References: Message-ID: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> > Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18260/files - new: https://git.openjdk.org/jdk/pull/18260/files/130bf5b3..8c40a81b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18260&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18260&range=00-01 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18260.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18260/head:pull/18260 PR: https://git.openjdk.org/jdk/pull/18260 From tr at openjdk.org Thu Mar 14 11:02:52 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 11:02:52 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:34:20 GMT, Abhishek Kumar wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/text/html/TableView/7030332/bug7030332.java line 37: > >> 35: /* @test >> 36: * @bug 7030332 >> 37: * @summary Default borders in tables looks incorrect JEditorPane > > Is something missing in summary? Modified it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18260#discussion_r1524647558 From aivanov at openjdk.org Thu Mar 14 11:06:05 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 11:06:05 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java [v2] In-Reply-To: References: Message-ID: <9mYIwIdmyK_x79tut5_2KNa677wZvqvv4pkj50X3mLU=.46b8baa0-0d75-4070-8d5f-1a01b5fde61c@github.com> > This is to simplify `TrayIconScalingTest.java`. > > 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. > 2. Move creating tray icon to the top. > 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. > 4. Ensure tray is not null before removing the icon. > 5. Pass AWTException as the cause in the wrapped exception. > > Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. > > With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. Alexey Ivanov 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. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18224/files - new: https://git.openjdk.org/jdk/pull/18224/files/b0e9218f..b0e9218f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18224&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18224&range=00-01 Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18224.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18224/head:pull/18224 PR: https://git.openjdk.org/jdk/pull/18224 From aivanov at openjdk.org Thu Mar 14 11:37:47 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 11:37:47 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java [v3] In-Reply-To: References: Message-ID: <-rIyMZ8jGI7vy5gAgxuf_JO3EBSd5fGSkLumgK1tRNg=.825c7e8e-c75e-4bc9-b710-a8db6f25ee56@github.com> > This is to simplify `TrayIconScalingTest.java`. > > 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. > 2. Move creating tray icon to the top. > 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. > 4. Ensure tray is not null before removing the icon. > 5. Pass AWTException as the cause in the wrapped exception. > > Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. > > With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. Alexey Ivanov has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 18 commits: - Merge master - Pass AWTException as the cause in the wrapped exception - Re-arrange the code in TrayIconScalingTest.java Rename createAndShowGUI to createAndShowTrayIcon which is more specific. Move creating tray icon to the top. Streamline PassFailJFrame with the chained calls. Ensure tray is not null before removing the icon. - Minor updates to createUI in ComboPopupBug - Use testUI in ComboPopupBug - Use testUI in DefaultCloseOperation and reduce the number of columns - Use testUI in LightweightCliprect - Remove unused EventQueue import - Use testUI in DefaultSizeTest - Use testUI in FrameRepackTest - ... and 8 more: https://git.openjdk.org/jdk/compare/3b9255eb...7e10304a ------------- Changes: https://git.openjdk.org/jdk/pull/18224/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18224&range=02 Stats: 27 lines in 1 file changed: 10 ins; 11 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/18224.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18224/head:pull/18224 PR: https://git.openjdk.org/jdk/pull/18224 From aivanov at openjdk.org Thu Mar 14 11:46:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 11:46:40 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java [v2] In-Reply-To: <6JqcozfzKx1Ec8z9bT_uCZ7Dm9tTexqdmVYEbvTRBno=.409249f8-b6aa-4374-8213-4f8681490623@github.com> References: <6JqcozfzKx1Ec8z9bT_uCZ7Dm9tTexqdmVYEbvTRBno=.409249f8-b6aa-4374-8213-4f8681490623@github.com> Message-ID: On Wed, 13 Mar 2024 22:04:00 GMT, Phil Race wrote: >> Alexey Ivanov 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. > > test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java line 97: > >> 95: .testTimeOut(8) >> 96: .rows(25) >> 97: .columns(70) > > Personally I like rows+columns to immediately follow instructions, > but I'll approve anyway and let you decide. I haven't changed these lines, only indentation is changed because I moved it into `try` block. I prefer keeping it as is so that these lines are attributed to Lawrence who modified the lines when he introduced the builder. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18224#discussion_r1524700032 From rkannathpari at openjdk.org Thu Mar 14 11:55:48 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Thu, 14 Mar 2024 11:55:48 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs Message-ID: Hi Reviewers, I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. Please review and let me know your suggestions if any. ------------- Commit messages: - Removed extra space before instruction lines - Updated with message - Use new PageFormat() for pageDialog - Move printing services after Security Manager is set - Update instructions - Refactor the test - JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs Changes: https://git.openjdk.org/jdk/pull/18299/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8320675 Stats: 232 lines in 1 file changed: 47 ins; 149 del; 36 mod Patch: https://git.openjdk.org/jdk/pull/18299.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18299/head:pull/18299 PR: https://git.openjdk.org/jdk/pull/18299 From abhiscxk at openjdk.org Thu Mar 14 12:17:03 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 12:17:03 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: On Thu, 14 Mar 2024 11:02:52 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates LGTM. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18260#pullrequestreview-1936486148 From aivanov at openjdk.org Thu Mar 14 12:24:03 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 12:24:03 GMT Subject: RFR: 8327924: Simplify TrayIconScalingTest.java [v2] In-Reply-To: References: <6JqcozfzKx1Ec8z9bT_uCZ7Dm9tTexqdmVYEbvTRBno=.409249f8-b6aa-4374-8213-4f8681490623@github.com> Message-ID: On Thu, 14 Mar 2024 11:43:44 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java line 97: >> >>> 95: .testTimeOut(8) >>> 96: .rows(25) >>> 97: .columns(70) >> >> Personally I like rows+columns to immediately follow instructions, >> but I'll approve anyway and let you decide. > > I haven't changed these lines, only indentation is changed because I moved it into `try` block. > > I prefer keeping it as is so that these lines are attributed to Lawrence who modified the lines when he introduced the builder. It would be good to get rid of `.rows` and `.columns` at all. I can't remember why using `JTextArea.getPreferredSize()` wasn't enough to size the instructions so that there are no scrollbars. I submitted [JDK-8328163](https://bugs.openjdk.org/browse/JDK-8328163): _Implement automatic instruction sizing for PassFailJFrame_. Let's see if it's doable. I saw some use `.rows((int) INSTRUCTIONS.lines().count() + 1)`, which implies the number of rows can be automatically calculated? up to a reasonable limit. The number of columns needed can also be estimated. I think `JTextArea.getPreferredSize()` should handle most cases. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18224#discussion_r1524742691 From abhiscxk at openjdk.org Thu Mar 14 12:28:03 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 12:28:03 GMT Subject: RFR: 8327876: Convert javax/swing/border/Test4252164.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 06:56:20 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4252164.java applet test to main based test using PassFailJFrame. Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18216#pullrequestreview-1936509329 From abhiscxk at openjdk.org Thu Mar 14 12:35:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 12:35:40 GMT Subject: RFR: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main [v3] In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 10:25:28 GMT, Alexander Zvegintsev wrote: >> The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. >> >> We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. >> The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. >> >> The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > review comments Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18203#pullrequestreview-1936528345 From kizune at openjdk.org Thu Mar 14 12:32:06 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 12:32:06 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test Message-ID: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Convert test to the automatic main and move it from its own folder since it is no longer required. ------------- Commit messages: - 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test Changes: https://git.openjdk.org/jdk/pull/18300/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328158 Stats: 351 lines in 3 files changed: 94 ins; 257 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18300.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18300/head:pull/18300 PR: https://git.openjdk.org/jdk/pull/18300 From ihse at openjdk.org Thu Mar 14 12:40:59 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Thu, 14 Mar 2024 12:40:59 GMT Subject: RFR: 8328157: Move C[XX]FLAGS_JDK[LIB/EXE] to JdkNativeCompilation.gmk Message-ID: We are setting one of the flags `CFLAGS_JDKLIB`, `CXXFLAGS_JDKLIB`, `CFLAGS_JDKEXE` or `CXXFLAGS_JDKEXE` to `CFLAGS` or `CXXFLAGS`, respectively, in basically all calls to `SetupJdkLibrary` and `SetupJdkExecutable`. These flag variables contain a lot of duplication. The first step towards bringing some sanity to this mess is to move the setting of these variables into `SetupJdkLibrary/SetupJdkExecutable`. In a few places these standard flags are not set, partially or fullly. This is handled by the new arguments `DEFAULT_CFLAGS := false` (to disable the entire setting) and `C[XX]FLAGS_FILTER_OUT` (which excludes some specific flag) to `SetupJdkLibrary/SetupJdkExecutable`. ------------- Commit messages: - 8328157: Move C[XX]FLAGS_JDK[LIB/EXE] to JdkNativeCompilation.gmk Changes: https://git.openjdk.org/jdk/pull/18301/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18301&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328157 Stats: 170 lines in 31 files changed: 45 ins; 66 del; 59 mod Patch: https://git.openjdk.org/jdk/pull/18301.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18301/head:pull/18301 PR: https://git.openjdk.org/jdk/pull/18301 From ihse at openjdk.org Thu Mar 14 12:40:59 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Thu, 14 Mar 2024 12:40:59 GMT Subject: RFR: 8328157: Move C[XX]FLAGS_JDK[LIB/EXE] to JdkNativeCompilation.gmk In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 12:36:05 GMT, Magnus Ihse Bursie wrote: > We are setting one of the flags `CFLAGS_JDKLIB`, `CXXFLAGS_JDKLIB`, `CFLAGS_JDKEXE` or `CXXFLAGS_JDKEXE` to `CFLAGS` or `CXXFLAGS`, respectively, in basically all calls to `SetupJdkLibrary` and `SetupJdkExecutable`. > > These flag variables contain a lot of duplication. > > The first step towards bringing some sanity to this mess is to move the setting of these variables into `SetupJdkLibrary/SetupJdkExecutable`. > > In a few places these standard flags are not set, partially or fullly. This is handled by the new arguments `DEFAULT_CFLAGS := false` (to disable the entire setting) and `C[XX]FLAGS_FILTER_OUT` (which excludes some specific flag) to `SetupJdkLibrary/SetupJdkExecutable`. I have verified with `COMPARE_BUILD` that there is no significant difference in the build result with or without this patch on Oracle default CI platforms (linux x64/aarch64, macos x64/aarch64, windows x64). ------------- PR Comment: https://git.openjdk.org/jdk/pull/18301#issuecomment-1997359912 From abhiscxk at openjdk.org Thu Mar 14 12:47:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 12:47:40 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test In-Reply-To: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: On Thu, 14 Mar 2024 12:27:29 GMT, Alexander Zuev wrote: > Convert test to the automatic main and move it from its own folder since it is no longer required. test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 46: > 44: Choice choice; > 45: Point pos; > 46: Dimension size; Should we declare `Point` and `Dimesnion` variable as volatile? test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 65: > 63: }); > 64: robot.waitForIdle(); > 65: SwingUtilities.invokeAndWait(() -> { Is it ok to have SwingUtilities.invokeAndWait? Or should we use EventQueue.invokeAndWait ? test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 69: > 67: size = choice.getSize(); > 68: }); > 69: int selected = choice.getSelectedIndex(); choice accessed outside EDT. test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 74: > 72: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); > 73: robot.waitForIdle(); > 74: robot.delay(500); Any specific reason to have 500 ms delay. Can it be reduced? test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 79: > 77: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); > 78: robot.waitForIdle(); > 79: robot.delay(500); same here as well. test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 84: > 82: dispose(); > 83: }); > 84: if (choice.getSelectedIndex() == selected) { `choice.getSelectedIndex()` accessed outside EDT. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524770591 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524773238 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524773831 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524775195 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524775871 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524777069 From abhiscxk at openjdk.org Thu Mar 14 12:48:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 12:48:40 GMT Subject: RFR: 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main In-Reply-To: References: Message-ID: <5dy-uoP7lADTPqGeMNClHISMMNVszCHrou5ws8_SzS8=.6b2a6f02-ddc4-4283-8f1d-8c7f634c29b2@github.com> On Wed, 13 Mar 2024 19:43:10 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. LGTM. test/jdk/java/awt/Frame/ShownOnPack/ShownOnPack.java line 34: > 32: * @build PassFailJFrame > 33: * @run main/manual ShownOnPack > 34: */ May add a blank line after this. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18287#pullrequestreview-1936565858 PR Review Comment: https://git.openjdk.org/jdk/pull/18287#discussion_r1524784087 From kizune at openjdk.org Thu Mar 14 12:47:41 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 12:47:41 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test In-Reply-To: References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: On Thu, 14 Mar 2024 12:40:59 GMT, Abhishek Kumar wrote: >> Convert test to the automatic main and move it from its own folder since it is no longer required. > > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 65: > >> 63: }); >> 64: robot.waitForIdle(); >> 65: SwingUtilities.invokeAndWait(() -> { > > Is it ok to have SwingUtilities.invokeAndWait? > Or should we use EventQueue.invokeAndWait ? My bad. We should use EventQueue. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524783681 From abhiscxk at openjdk.org Thu Mar 14 12:30:57 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 12:30:57 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v3] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:00:35 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by abhiscxk (Committer). test/jdk/javax/swing/border/Test4247606.java line 37: > 35: * @test > 36: * @bug 4247606 > 37: * @summary BorderedPane appears wrong with Title Position Below Bottom Minor suggestion else looks good to me. Suggestion: * @summary BorderedPane appears wrong with title position below bottom ------------- PR Review: https://git.openjdk.org/jdk/pull/18213#pullrequestreview-1936516116 PR Review Comment: https://git.openjdk.org/jdk/pull/18213#discussion_r1524751863 From kizune at openjdk.org Thu Mar 14 12:51:39 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 12:51:39 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test In-Reply-To: References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: On Thu, 14 Mar 2024 12:42:00 GMT, Abhishek Kumar wrote: >> Convert test to the automatic main and move it from its own folder since it is no longer required. > > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 74: > >> 72: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); >> 73: robot.waitForIdle(); >> 74: robot.delay(500); > > Any specific reason to have 500 ms delay. Can it be reduced? Giving native peer some time to process request to populate a popup from choice. 500 ms seems reasonable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524795470 From kizune at openjdk.org Thu Mar 14 13:00:06 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 13:00:06 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v2] In-Reply-To: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: <6EpS7_zMFB6XCjZzzrgnJbe0RwDRj4fk58Ez0Ar6Cdo=.7aa2d059-d226-4453-b24b-760a9ffc970e@github.com> > Convert test to the automatic main and move it from its own folder since it is no longer required. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Minor fixes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18300/files - new: https://git.openjdk.org/jdk/pull/18300/files/98b62aaa..e91df298 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=00-01 Stats: 13 lines in 1 file changed: 5 ins; 1 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/18300.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18300/head:pull/18300 PR: https://git.openjdk.org/jdk/pull/18300 From kizune at openjdk.org Thu Mar 14 13:00:06 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 13:00:06 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v2] In-Reply-To: References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: On Thu, 14 Mar 2024 12:41:20 GMT, Abhishek Kumar wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Minor fixes > > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 69: > >> 67: size = choice.getSize(); >> 68: }); >> 69: int selected = choice.getSelectedIndex(); > > choice accessed outside EDT. Not sure it poses any significant problem but i will move it to EDT. > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 79: > >> 77: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); >> 78: robot.waitForIdle(); >> 79: robot.delay(500); > > same here as well. Here it can be dropped. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524813227 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1524813670 From aivanov at openjdk.org Thu Mar 14 13:29:42 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 13:29:42 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v3] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Wed, 13 Mar 2024 19:01:27 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > extract logFrameBounds, instructions update test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 44: > 42: 0. There is a test window with a "Press" button, > 43: Its original bounds should be printed in the text area below. > 44: 1. Resize the test window using the upper left corner. I found it impossible to resize the window by top left corner on Windows? The frame is so small that the Minimize button in the title bar covers the icon. test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 45: > 43: Its original bounds should be printed in the text area below. > 44: 1. Resize the test window using the upper left corner. > 45: 2. Press the button to print the result of getBounds() to the terminal. Suggestion: 2. Press the button to print the result of getBounds() to the text area. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1524878679 PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1524864989 From aivanov at openjdk.org Thu Mar 14 13:32:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 13:32:40 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v3] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Wed, 13 Mar 2024 16:56:39 GMT, Alexander Zvegintsev wrote: >> @azvegint, yes, we can support both. But I didn't test it thoroughly, so I decided it was safer to add this. >> >> Please, don't modify `PassFailJFrame` together with tests unless it's strictly required? It is for the sake of facilitating backporting the changes. Otherwise, backporting improvements to the framework will depend on the presence of a test. >> >> In this case, it could be fine though? provided that the test you're updating exists in all the repos. >> >> Either way, I think it's good to create a separate bug for `PassFailJFrame` which you'll resolve with the current one. > > That's a good point, I created #18281 for that. It's integrated now. Likely, you want to merge master into your branch to avoid possible conflicts, although bot don't complain about any conflict. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1524883723 From aivanov at openjdk.org Thu Mar 14 13:36:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 13:36:39 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 11:52:09 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > > I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. > Please review and let me know your suggestions if any. Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18299#pullrequestreview-1936728141 From aivanov at openjdk.org Thu Mar 14 14:05:45 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 14:05:45 GMT Subject: Integrated: 8320079: The ArabicBox.java test has no control buttons In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 13:35:33 GMT, Alexey Ivanov wrote: > The test is converted to use `PassFailJFrame`. > > I confirmed the updated test reproduce the original problem described in [JDK-4427483](https://bugs.openjdk.org/browse/JDK-4427483) where Arabic text displayed as missing glyphs. This pull request has now been integrated. Changeset: 792fc9d1 Author: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/792fc9d114977664da0b3bebf0f1d82360d375b6 Stats: 103 lines in 1 file changed: 103 ins; 0 del; 0 mod 8320079: The ArabicBox.java test has no control buttons Reviewed-by: prr, honkar, dmarkov ------------- PR: https://git.openjdk.org/jdk/pull/18234 From kizune at openjdk.org Thu Mar 14 15:04:41 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 15:04:41 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v2] In-Reply-To: References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: <-h8i5JBvUKJog4-jaP_3GAjfrgXQE5pravzlZ-6_0CU=.64edb448-7b99-47ef-8841-5dc606670a81@github.com> On Thu, 14 Mar 2024 12:39:40 GMT, Abhishek Kumar wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Minor fixes > > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 46: > >> 44: Choice choice; >> 45: Point pos; >> 46: Dimension size; > > Should we declare `Point` and `Dimesnion` variable as volatile? Fixed. > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 84: > >> 82: dispose(); >> 83: }); >> 84: if (choice.getSelectedIndex() == selected) { > > `choice.getSelectedIndex()` accessed outside EDT. Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525038508 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525037673 From dnguyen at openjdk.org Thu Mar 14 15:30:40 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 14 Mar 2024 15:30:40 GMT Subject: RFR: 8327969: Convert javax/swing/border/Test6910490.java applet test to main [v3] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 04:54:23 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by dnguyen (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18229#pullrequestreview-1937050629 From tr at openjdk.org Thu Mar 14 15:42:46 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 15:42:46 GMT Subject: Integrated: 8327969: Convert javax/swing/border/Test6910490.java applet test to main In-Reply-To: References: Message-ID: <96QO8Kc1B7rnMLHrGwGVrgw2WPHaZrdUhlkVcqIGtZ8=.ceebd4ad-5ad7-4068-aab0-e003e0bfe6ee@github.com> On Tue, 12 Mar 2024 11:15:38 GMT, Tejesh R wrote: > Convert javax/swing/border/Test6910490.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: 759cc675 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/759cc675915c551cc1d6899eedb95900752f2703 Stats: 61 lines in 2 files changed: 20 ins; 34 del; 7 mod 8327969: Convert javax/swing/border/Test6910490.java applet test to main Reviewed-by: dnguyen, honkar ------------- PR: https://git.openjdk.org/jdk/pull/18229 From kizune at openjdk.org Thu Mar 14 15:45:41 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 15:45:41 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:39:15 GMT, Tejesh R wrote: > Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. test/jdk/sun/java2d/loops/CopyAreaSpeed.java line 131: > 129: } > 130: try { > 131: Thread.sleep(1); I know it is an old code but i just wonder why do we add sleep to every iteration of something that is supposed to be a performance test. What are we achieving by doing this sleep? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18296#discussion_r1525105010 From azvegint at openjdk.org Thu Mar 14 15:47:49 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 15:47:49 GMT Subject: Integrated: 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main In-Reply-To: References: Message-ID: <-rjGPUgBlac2sy8wWewhmRedIhKKfplkPy_KiBwwO1U=.da5f3022-19c7-4431-a23d-029076d436f8@github.com> On Mon, 11 Mar 2024 17:29:50 GMT, Alexander Zvegintsev wrote: > The `java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest` test is written to test the very specific functionality of `XFileDialogPeer`, so it shouldn't be run on platforms other than Linux. > > We also need to set `sun.awt.disableGtkFileDialogs` to `true` to be able to test `XFileDialogPeer`, because by default it tries to use the Gtk file dialog if it is available. > The Gtk file dialog has a search field hidden under the magnifying glass icon, but it has a different syntax. > > The Windows system file dialog allows you to use wildcard filtering in the "File name" field by hitting the `enter` afterwards, but again, this test was written to test our own file dialog implementation, not the system's. This pull request has now been integrated. Changeset: d25c452f Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/d25c452f0c4a2106a1fa06b56039f0f0b5d6e952 Stats: 344 lines in 4 files changed: 74 ins; 270 del; 0 mod 8327835: Convert java/awt/FileDialog/RegexpFilterTest/RegexpFilterTest applet test to main Reviewed-by: aivanov, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18203 From aivanov at openjdk.org Thu Mar 14 15:49:43 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 15:49:43 GMT Subject: Integrated: 8286759: TextComponentPrintable: consequent -> consecutive positions In-Reply-To: References: Message-ID: On Thu, 29 Feb 2024 15:13:16 GMT, Alexey Ivanov wrote: > 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). This pull request has now been integrated. Changeset: 0c3998d2 Author: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/0c3998d2c6dd735d356bfe26662c93d97364b2ad Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod 8286759: TextComponentPrintable: consequent -> consecutive positions Reviewed-by: gli, prr ------------- PR: https://git.openjdk.org/jdk/pull/18067 From tr at openjdk.org Thu Mar 14 15:50:43 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 15:50:43 GMT Subject: Integrated: 8327876: Convert javax/swing/border/Test4252164.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 06:56:20 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4252164.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: acfefc6c Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/acfefc6c7aea6903bd575c2cb6edddbd88b112bf Stats: 81 lines in 2 files changed: 14 ins; 44 del; 23 mod 8327876: Convert javax/swing/border/Test4252164.java applet test to main Reviewed-by: prr, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18216 From tr at openjdk.org Thu Mar 14 15:57:57 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 15:57:57 GMT Subject: RFR: 8327873: Convert javax/swing/border/Test4247606.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18213/files - new: https://git.openjdk.org/jdk/pull/18213/files/e1a5a360..6922ce80 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18213&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18213.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18213/head:pull/18213 PR: https://git.openjdk.org/jdk/pull/18213 From tr at openjdk.org Thu Mar 14 15:57:57 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 15:57:57 GMT Subject: Integrated: 8327873: Convert javax/swing/border/Test4247606.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 06:03:27 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4247606.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: d4ec7831 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/d4ec783108828efd158c749f37e4220bb1df86fc Stats: 76 lines in 2 files changed: 28 ins; 42 del; 6 mod 8327873: Convert javax/swing/border/Test4247606.java applet test to main Reviewed-by: prr, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18213 From azvegint at openjdk.org Thu Mar 14 16:01:56 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 16:01:56 GMT Subject: RFR: 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main [v2] In-Reply-To: References: Message-ID: > The test is converted to main. > Tested on Linux, Macos and Windows. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: add empty line ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18287/files - new: https://git.openjdk.org/jdk/pull/18287/files/1e797b7f..85a4cfe9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18287&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18287&range=00-01 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18287.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18287/head:pull/18287 PR: https://git.openjdk.org/jdk/pull/18287 From azvegint at openjdk.org Thu Mar 14 16:06:45 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 16:06:45 GMT Subject: Integrated: 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 19:43:10 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. This pull request has now been integrated. Changeset: 7cc1965a Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/7cc1965a252347f37dca69859d5ecaf2b55020c6 Stats: 249 lines in 2 files changed: 4 ins; 207 del; 38 mod 8328124: Convert java/awt/Frame/ShownOnPack/ShownOnPack.html applet test to main Reviewed-by: honkar, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18287 From tr at openjdk.org Thu Mar 14 16:07:42 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 14 Mar 2024 16:07:42 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main In-Reply-To: References: Message-ID: <-p_u3q1fM-8p0wgRiKohiYi9dc6Kz-TASSP_LBc1W1I=.50d1c283-22b0-48e4-8993-f32a339d0505@github.com> On Thu, 14 Mar 2024 15:42:46 GMT, Alexander Zuev wrote: >> Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. > > test/jdk/sun/java2d/loops/CopyAreaSpeed.java line 131: > >> 129: } >> 130: try { >> 131: Thread.sleep(1); > > I know it is an old code but i just wonder why do we add sleep to every iteration of something that is supposed to be a performance test. What are we achieving by doing this sleep? Maybe because of Graphics paint and copyArea ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18296#discussion_r1525138504 From abhiscxk at openjdk.org Thu Mar 14 16:07:46 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 16:07:46 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v2] In-Reply-To: <6EpS7_zMFB6XCjZzzrgnJbe0RwDRj4fk58Ez0Ar6Cdo=.7aa2d059-d226-4453-b24b-760a9ffc970e@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> <6EpS7_zMFB6XCjZzzrgnJbe0RwDRj4fk58Ez0Ar6Cdo=.7aa2d059-d226-4453-b24b-760a9ffc970e@github.com> Message-ID: On Thu, 14 Mar 2024 13:00:06 GMT, Alexander Zuev wrote: >> Convert test to the automatic main and move it from its own folder since it is no longer required. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Minor fixes test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 46: > 44: volatile Point pos; > 45: volatile Dimension size; > 46: volatile int selection1, selection2; May add a blank line after this. test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 59: > 57: choice.setFocusable(false); > 58: this.add(choice); > 59: this.setLayout (new FlowLayout()); Suggestion: this.setLayout(new FlowLayout()); test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 60: > 58: this.add(choice); > 59: this.setLayout (new FlowLayout()); > 60: setSize (200,200); Suggestion: setSize (200, 200); test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 70: > 68: }); > 69: EventQueue.invokeAndWait(() -> { > 70: selection1 = choice.getSelectedIndex(); May be moved inside the EventQueue above. test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 85: > 83: }); > 84: EventQueue.invokeAndWait(() -> { > 85: setVisible(false); I think this also can be moved inside above EventQueue. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525130997 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525131265 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525131484 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525134150 PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525136979 From abhiscxk at openjdk.org Thu Mar 14 16:09:43 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 16:09:43 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v2] In-Reply-To: References: <57vHBqQV5Hiqcr5Oaaj2A5-gwwi4r_QPFcDpqGGueK4=.28909cca-86f6-4c4a-a416-620d0d7052fd@github.com> Message-ID: On Thu, 14 Mar 2024 01:01:51 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove commented code > > Changes requested by honkar (Reviewer). @honkar-jdk Updated as per last review. Please take a look. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18274#issuecomment-1997809970 From abhiscxk at openjdk.org Thu Mar 14 16:10:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 16:10:41 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 01:20:11 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment fix > > Changes requested by honkar (Reviewer). @honkar-jdk Updated as per last review. Please take a look. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18233#issuecomment-1997810580 From dnguyen at openjdk.org Thu Mar 14 16:13:54 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 14 Mar 2024 16:13:54 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18247/files - new: https://git.openjdk.org/jdk/pull/18247/files/9c1ceab9..e5f694ef Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=01-02 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18247.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18247/head:pull/18247 PR: https://git.openjdk.org/jdk/pull/18247 From azvegint at openjdk.org Thu Mar 14 16:26:06 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 16:26:06 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v4] In-Reply-To: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: > The test is converted to main. > Tested on Linux, Macos and Windows. Alexander Zvegintsev 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 six additional commits since the last revision: - Merge branch 'master' into testsprint_2024_03/8328011_GetBoundsResizeTest - instructions update, frame resize - extract logFrameBounds, instructions update - minor formatting - 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main - 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18250/files - new: https://git.openjdk.org/jdk/pull/18250/files/2c90d8e3..50fb9b5f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18250&range=02-03 Stats: 6934 lines in 243 files changed: 3307 ins; 2849 del; 778 mod Patch: https://git.openjdk.org/jdk/pull/18250.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18250/head:pull/18250 PR: https://git.openjdk.org/jdk/pull/18250 From azvegint at openjdk.org Thu Mar 14 16:26:06 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 16:26:06 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v3] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Thu, 14 Mar 2024 13:26:37 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> extract logFrameBounds, instructions update > > test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 44: > >> 42: 0. There is a test window with a "Press" button, >> 43: Its original bounds should be printed in the text area below. >> 44: 1. Resize the test window using the upper left corner. > > I found it impossible to resize the window by top left corner on Windows? The frame is so small that the Minimize button in the title bar covers the icon. Hmm, works for me: [Screencast.webm](https://github.com/openjdk/jdk/assets/77687766/8d6d5edd-178c-4dd4-9385-9492fde3ce1a) Anyway, I changed the default size of the window. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1525165288 From dnguyen at openjdk.org Thu Mar 14 16:41:41 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 14 Mar 2024 16:41:41 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v2] In-Reply-To: <05oH95MKBN-FyFfVFwzVbPXCnao8ni4J5EGiYOZRpu4=.8309b557-35b0-4fd6-898b-08db632faea2@github.com> References: <05oH95MKBN-FyFfVFwzVbPXCnao8ni4J5EGiYOZRpu4=.8309b557-35b0-4fd6-898b-08db632faea2@github.com> Message-ID: On Wed, 13 Mar 2024 18:15:58 GMT, Phil Race wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Fix suggested redudant changes > > test/jdk/java/awt/im/JTextFieldTest.java line 47: > >> 45: """ >> 46: Please run this test case under Solaris cjk locale with inputmethod >> 47: support, if you could input Chinese/Japanese/Korean in the swing > > The scenario here should not be specific to Solaris. > I think you should rephrase the first sentence to > "Please run this test in a CJK (Chinese/Japanese/Korean) locale with input method support". > > I some times wonder how well these tests that say "please change your environment" actually get properly tested. > It is perhaps possible to do change desktop locale support on the fly but by the time > you read the instructions the test is already running. > That introduces another wrinkle. Maybe you need to restart at least this test. > And I am not 100% sure that jtreg passes through locale vars. I hope it does. Updated the instructions. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1525187262 From kizune at openjdk.org Thu Mar 14 16:44:55 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 16:44:55 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v3] In-Reply-To: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: > Convert test to the automatic main and move it from its own folder since it is no longer required. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Update test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java Co-authored-by: Abhishek Kumar ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18300/files - new: https://git.openjdk.org/jdk/pull/18300/files/e91df298..17b1fb4d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18300.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18300/head:pull/18300 PR: https://git.openjdk.org/jdk/pull/18300 From dnguyen at openjdk.org Thu Mar 14 16:45:48 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 14 Mar 2024 16:45:48 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main Message-ID: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame ------------- Commit messages: - Update title - Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18307/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328185 Stats: 173 lines in 1 file changed: 44 ins; 81 del; 48 mod Patch: https://git.openjdk.org/jdk/pull/18307.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18307/head:pull/18307 PR: https://git.openjdk.org/jdk/pull/18307 From kizune at openjdk.org Thu Mar 14 16:48:57 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 16:48:57 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v4] In-Reply-To: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> > Convert test to the automatic main and move it from its own folder since it is no longer required. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Minor updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18300/files - new: https://git.openjdk.org/jdk/pull/18300/files/17b1fb4d..71885dd6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18300&range=02-03 Stats: 6 lines in 1 file changed: 1 ins; 4 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18300.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18300/head:pull/18300 PR: https://git.openjdk.org/jdk/pull/18300 From kizune at openjdk.org Thu Mar 14 16:48:57 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 14 Mar 2024 16:48:57 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v2] In-Reply-To: References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> <6EpS7_zMFB6XCjZzzrgnJbe0RwDRj4fk58Ez0Ar6Cdo=.7aa2d059-d226-4453-b24b-760a9ffc970e@github.com> Message-ID: On Thu, 14 Mar 2024 16:03:46 GMT, Abhishek Kumar wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Minor fixes > > test/jdk/java/awt/Choice/NonFocusablePopupMenuTest.java line 85: > >> 83: }); >> 84: EventQueue.invokeAndWait(() -> { >> 85: setVisible(false); > > I think this also can be moved inside above EventQueue. Sure. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18300#discussion_r1525197200 From aivanov at openjdk.org Thu Mar 14 16:52:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 16:52:38 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> Message-ID: <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> On Tue, 12 Mar 2024 19:35:30 GMT, Phil Race wrote: >> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: >> >> Handle fakePersonal on Windows 10 >> >> The desktop folder on Windows 10 does not include >> the Personal (Documents) folder. > > src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java line 525: > >> 523: boolean special2 = sf2.isSpecial(); >> 524: >> 525: if (special1 && special2) { > > Could you please say something on how/why this change solves it ? It is well described in a [JBS comment](https://bugs.openjdk.org/browse/JDK-8305072?focusedId=14610400&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14610400) by the submitter. Let's consider the failing case where: a = C:\Users\Documents(true) b = C:\Users(false) c = C:\Users\Documents(false) The value in parentheses is `isSpecial()` flag. When `a` and `c` are compared, `special1 = true` and `special2 = false`, therefore the code flow enters this `if`-block. Because the `equals` method doesn't take into account the `isSpecial` flag, both `i1` and `i2` are 0. https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L534-L535 Thus, `a` and `c` are considered equal, which breaks the general contract of [`Comparable.compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Comparable.html#compareTo(T)). If you look below this `if`-statement: https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L545-L550 The comment and the code say that any special folder sorts above any regular folder. Therefore the code shouldn't enter that `if`-block above if only one of the folders is *special* ? the order is already well-defined for such case. The purpose of the `if`-block is to make some of the special folders even more special. In other words, it ensures the following special folders?`getPersonal`, `getDesktop`, `getDrives`, `getNetwork`?are at the top of the list, above any other special folders. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1525204254 From aivanov at openjdk.org Thu Mar 14 16:58:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 16:58:38 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> Message-ID: <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> On Thu, 14 Mar 2024 16:49:39 GMT, Alexey Ivanov wrote: >> src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java line 525: >> >>> 523: boolean special2 = sf2.isSpecial(); >>> 524: >>> 525: if (special1 && special2) { >> >> Could you please say something on how/why this change solves it ? > > It is well described in a [JBS comment](https://bugs.openjdk.org/browse/JDK-8305072?focusedId=14610400&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14610400) by the submitter. > > Let's consider the failing case where: > > a = C:\Users\Documents(true) > b = C:\Users(false) > c = C:\Users\Documents(false) > > The value in parentheses is `isSpecial()` flag. > > When `a` and `c` are compared, `special1 = true` and `special2 = false`, therefore the code flow enters this `if`-block. Because the `equals` method doesn't take into account the `isSpecial` flag, both `i1` and `i2` are 0. > > https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L534-L535 > > Thus, `a` and `c` are considered equal, which breaks the general contract of [`Comparable.compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Comparable.html#compareTo(T)). > > If you look below this `if`-statement: > > https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L545-L550 > > The comment and the code say that any special folder sorts above any regular folder. Therefore the code shouldn't enter that `if`-block above if only one of the folders is *special* ? the order is already well-defined for such case. > > The purpose of the `if`-block is to make some of the special folders even more special. In other words, it ensures the following special folders?`getPersonal`, `getDesktop`, `getDrives`, `getNetwork`?are at the top of the list, above any other special folders. So, changing the condition in the `if`-block from `special1 || special2` to `special1 && special2` makes the sorting order consistent because the relation is now *transitive*: a < b & b < c therefore a < c ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1525214351 From aivanov at openjdk.org Thu Mar 14 17:05:42 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 17:05:42 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v3] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: <0U6Gavbvk-y0Ss-urcDihc0UzkvcPI-qNwxaam9PPRA=.f061150b-57db-41b5-853d-6e10dd36c98a@github.com> On Thu, 14 Mar 2024 16:23:20 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/Frame/GetBoundsResizeTest.java line 44: >> >>> 42: 0. There is a test window with a "Press" button, >>> 43: Its original bounds should be printed in the text area below. >>> 44: 1. Resize the test window using the upper left corner. >> >> I found it impossible to resize the window by top left corner on Windows? The frame is so small that the Minimize button in the title bar covers the icon. > > Hmm, works for me: > > [Screencast.webm](https://github.com/openjdk/jdk/assets/77687766/8d6d5edd-178c-4dd4-9385-9492fde3ce1a) > > Anyway, I changed the default size of the window. I'm using Windows 11 where the window borders are rounded, it could be the reason why it didn't work for me: the target area to grab the border is already covered by the _Minimise_ button. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18250#discussion_r1525225614 From honkar at openjdk.org Thu Mar 14 17:07:42 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 17:07:42 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 05:38:35 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment fix Please remove unused imports test/jdk/javax/swing/JToggleButton/bug4128979.java line 69: > 67: > 68: public static void main(String[] args) throws Exception { > 69: UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); As the test is for Windows only it is good to have OS check along with the `@requires (os.family == "windows")` and throw skipped exception otherwise. Since it is followed by setting `WindowsClassicLookAndFeel` all the more reason to include this check. Suggestion: if (OSInfo.getOSType() != OSInfo.OSType.WINDOWS) { throw new SkippedException("This test is for Windows only"); } UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); ------------- Changes requested by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18233#pullrequestreview-1937291754 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1525227378 From aivanov at openjdk.org Thu Mar 14 17:11:42 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 17:11:42 GMT Subject: RFR: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main [v4] In-Reply-To: References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Thu, 14 Mar 2024 16:26:06 GMT, Alexander Zvegintsev wrote: >> The test is converted to main. >> Tested on Linux, Macos and Windows. > > Alexander Zvegintsev 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 six additional commits since the last revision: > > - Merge branch 'master' into testsprint_2024_03/8328011_GetBoundsResizeTest > - instructions update, frame resize > - extract logFrameBounds, instructions update > - minor formatting > - 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main > - 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18250#pullrequestreview-1937304191 From honkar at openjdk.org Thu Mar 14 17:22:39 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 17:22:39 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v4] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 05:22:40 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with two additional commits since the last revision: > > - Test file update > - Rename test file test/jdk/javax/swing/JTable/Tab.java line 57: > 55: > 56: public class Tab > 57: { Minor nit: Opening brace placement ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18274#discussion_r1525247626 From honkar at openjdk.org Thu Mar 14 17:26:37 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 17:26:37 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v4] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 05:22:40 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with two additional commits since the last revision: > > - Test file update > - Rename test file Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18274#pullrequestreview-1937334835 From abhiscxk at openjdk.org Thu Mar 14 17:27:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 17:27:41 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v4] In-Reply-To: <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> Message-ID: On Thu, 14 Mar 2024 16:48:57 GMT, Alexander Zuev wrote: >> Convert test to the automatic main and move it from its own folder since it is no longer required. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Minor updates LGTM. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18300#pullrequestreview-1937338680 From abhiscxk at openjdk.org Thu Mar 14 18:01:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 18:01:55 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Added OS check and remove unused imports ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18233/files - new: https://git.openjdk.org/jdk/pull/18233/files/61318960..bd1aaf2e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=01-02 Stats: 10 lines in 1 file changed: 4 ins; 2 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18233.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18233/head:pull/18233 PR: https://git.openjdk.org/jdk/pull/18233 From abhiscxk at openjdk.org Thu Mar 14 18:01:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 18:01:55 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 17:04:22 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment fix > > test/jdk/javax/swing/JToggleButton/bug4128979.java line 69: > >> 67: >> 68: public static void main(String[] args) throws Exception { >> 69: UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); > > As the test is for Windows only it is good to have OS check along with the `@requires (os.family == "windows")` and throw skipped exception otherwise. > > Since it is followed by setting `WindowsClassicLookAndFeel` all the more reason to include this check. > > Suggestion: > > if (OSInfo.getOSType() != OSInfo.OSType.WINDOWS) { > throw new SkippedException("This test is for Windows only"); > } > UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1525298637 From aivanov at openjdk.org Thu Mar 14 18:04:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 18:04:40 GMT Subject: RFR: JDK-8328115 : Convert java/awt/font/TextLayout/TestJustification.html applet test to main In-Reply-To: <-yOR9f0Ysff7awg6qHW2OoFR1zmgLk6c8r9qTFC6QhE=.7ac90ce0-f3f7-4ac6-ba46-945f73a5f4a8@github.com> References: <-yOR9f0Ysff7awg6qHW2OoFR1zmgLk6c8r9qTFC6QhE=.7ac90ce0-f3f7-4ac6-ba46-945f73a5f4a8@github.com> Message-ID: On Wed, 13 Mar 2024 18:49:03 GMT, Harshitha Onkar wrote: > java/awt/font/TextLayout/TestJustification.html is converted to main manual test using PassFailJFrame. > > This test was previously problemlisted on macOS. When tested on macOS, the problem still exists and not all lines are justified to the same length (lines containing Arabic & Hebrew differ by a small amount, Refer [JDK-8250791](https://bugs.openjdk.org/browse/JDK-8250791)). For this reason, the test is retained in problemlist and the file extension in problemlist is changed to .java to match the test changes. Looks good except for a minor comment. test/jdk/java/awt/font/TextLayout/TestJustification.java line 77: > 75: > 76: private static JFrame createUI() { > 77: JFrame frame= new JFrame("Test Text Justification"); You probably want to use `Frame` instead of `JFrame` since `JustificationPanel` is an AWT component. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18285#pullrequestreview-1937403627 PR Review Comment: https://git.openjdk.org/jdk/pull/18285#discussion_r1525297032 From abhiscxk at openjdk.org Thu Mar 14 18:05:11 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 14 Mar 2024 18:05:11 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v5] In-Reply-To: References: Message-ID: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Minor update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18274/files - new: https://git.openjdk.org/jdk/pull/18274/files/0a6e5acb..04c887c9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18274&range=03-04 Stats: 4 lines in 1 file changed: 0 ins; 2 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18274.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18274/head:pull/18274 PR: https://git.openjdk.org/jdk/pull/18274 From aivanov at openjdk.org Thu Mar 14 18:10:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 14 Mar 2024 18:10:40 GMT Subject: RFR: JDK-8328115 : Convert java/awt/font/TextLayout/TestJustification.html applet test to main In-Reply-To: <-yOR9f0Ysff7awg6qHW2OoFR1zmgLk6c8r9qTFC6QhE=.7ac90ce0-f3f7-4ac6-ba46-945f73a5f4a8@github.com> References: <-yOR9f0Ysff7awg6qHW2OoFR1zmgLk6c8r9qTFC6QhE=.7ac90ce0-f3f7-4ac6-ba46-945f73a5f4a8@github.com> Message-ID: <2H_AryxNVoqZ5VBkvXHiSDU7XabSl5zYJGgzvCDatgU=.ef4700c5-d52c-452d-b161-6e31e380b4b8@github.com> On Wed, 13 Mar 2024 18:49:03 GMT, Harshitha Onkar wrote: > This test was previously problemlisted on macOS. When tested on macOS, the problem still exists? I wonder if it depends on the font used. Is the selected font available on macOS? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18285#issuecomment-1998041339 From honkar at openjdk.org Thu Mar 14 18:10:40 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 18:10:40 GMT Subject: RFR: JDK-8328115 : Convert java/awt/font/TextLayout/TestJustification.html applet test to main In-Reply-To: <2H_AryxNVoqZ5VBkvXHiSDU7XabSl5zYJGgzvCDatgU=.ef4700c5-d52c-452d-b161-6e31e380b4b8@github.com> References: <-yOR9f0Ysff7awg6qHW2OoFR1zmgLk6c8r9qTFC6QhE=.7ac90ce0-f3f7-4ac6-ba46-945f73a5f4a8@github.com> <2H_AryxNVoqZ5VBkvXHiSDU7XabSl5zYJGgzvCDatgU=.ef4700c5-d52c-452d-b161-6e31e380b4b8@github.com> Message-ID: On Thu, 14 Mar 2024 18:05:59 GMT, Alexey Ivanov wrote: > I wonder if it depends on the font used. Is the selected font available on macOS? I tried it with Dialog on macOS, it looked the same. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18285#issuecomment-1998045712 From prr at openjdk.org Thu Mar 14 18:43:06 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 18:43:06 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program [v2] In-Reply-To: References: Message-ID: > java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. > It can be converted to a main program test using PassFailJFrame Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328021 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18255/files - new: https://git.openjdk.org/jdk/pull/18255/files/08a3ab67..84ba13b2 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18255&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18255&range=00-01 Stats: 10 lines in 1 file changed: 1 ins; 0 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18255.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18255/head:pull/18255 PR: https://git.openjdk.org/jdk/pull/18255 From prr at openjdk.org Thu Mar 14 18:43:06 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 18:43:06 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:22:50 GMT, Abhishek Kumar wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328021 > > test/jdk/java/awt/List/SetFontTest.java line 42: > >> 40: public class SetFontTest { >> 41: >> 42: static final String INSTRUCTIONS = > > Looks cleaner with `Text Blocks`. > > """ > 1) Click on the 'Enlarge font' button to enlarge font of the list. > 2) If you see that the rows of the list overlap one another > then the test failed. Otherwise, go to step 3. > 3) Click on the 'Change mode' button to set multiple-selection mode. > 4) If you see that the rows of the list overlap one another > then the test failed. Otherwise, the test passed."""; It does, so I changed it, although this was an edit of the existing code, not a new one from the HTML file contents. > test/jdk/java/awt/List/SetFontTest.java line 92: > >> 90: frame.add(button1); >> 91: frame.add(button2); >> 92: frame.setSize(200,250); > > minor : > Suggestion: > > frame.setSize(200, 250); ok ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1525340200 PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1525340737 From prr at openjdk.org Thu Mar 14 18:43:06 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 18:43:06 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 00:23:01 GMT, Harshitha Onkar wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328021 > > test/jdk/java/awt/List/SetFontTest.java line 55: > >> 53: .instructions(INSTRUCTIONS) >> 54: .rows(10) >> 55: .columns(60) > > Existing config looks too wide for the instructions. > > Suggestion: > > .columns(35) 35 seems too tight - 40 looks better > test/jdk/java/awt/List/SetFontTest.java line 74: > >> 72: >> 73: button1.addActionListener( >> 74: new ActionListener(){ > > It can be shortened with lambda hmm, yes, but not necessary for porting the test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1525339013 PR Review Comment: https://git.openjdk.org/jdk/pull/18255#discussion_r1525340562 From honkar at openjdk.org Thu Mar 14 19:05:38 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 19:05:38 GMT Subject: RFR: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 18:43:06 GMT, Phil Race wrote: >> java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. >> It can be converted to a main program test using PassFailJFrame > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328021 Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18255#pullrequestreview-1937521366 From prr at openjdk.org Thu Mar 14 19:23:43 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 19:23:43 GMT Subject: Integrated: 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program In-Reply-To: References: Message-ID: <9r4g9w9Ybh_03EbPwHjqlgaqbYTC44g-yOw3UmfJti8=.ea0736df-bc35-47bc-9fd7-8a97df018a8b@github.com> On Tue, 12 Mar 2024 22:55:02 GMT, Phil Race wrote: > java/awt/List/SetFontTest/SetFontTest.html is a manual applet-based test. > It can be converted to a main program test using PassFailJFrame This pull request has now been integrated. Changeset: 87bd6cac Author: Phil Race URL: https://git.openjdk.org/jdk/commit/87bd6caca03745c21172c3b5e8b0d28724810352 Stats: 373 lines in 3 files changed: 96 ins; 277 del; 0 mod 8328021: Convert applet test java/awt/List/SetFontTest/SetFontTest.html to main program Reviewed-by: honkar, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18255 From serb at openjdk.org Thu Mar 14 19:41:41 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Thu, 14 Mar 2024 19:41:41 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Mon, 4 Mar 2024 15:52:45 GMT, Alexey Ivanov wrote: > I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). > > I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. > > The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. > > For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. > > When the test passes, it usually completes in 5 minutes. > > **How the test works** > > The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. > > The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. > > A timer is used to create new files in the directory that the file chooser is using. > > After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. > > If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. > > On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. > > On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. > > On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for it to complete. The chance of updating `fileCache` whil... test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 1: > 1: import java.io.IOException; the header is missing. test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 99: > 97: createFiles(temp); > 98: > 99: final JFileChooser fc = new JFileChooser(temp.toFile()); it should be created on EDT, just in case. test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 211: > 209: private static void deleteFile(final Path file) { > 210: try { > 211: Files.delete(file); Should we try to delete all files first and then throw an exception if any? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1525401885 PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1525401638 PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1525403026 From prr at openjdk.org Thu Mar 14 19:41:46 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 19:41:46 GMT Subject: RFR: 8203867: Delete test java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html Message-ID: This test draws the same tray icon, has similar instructions to, and is subsumed by the related test DisposeInActionEventTest.java And because this test has incomplete instructions not covering macOS it is problem-listed. The other test explicitly covers macOS. So the right answer is to remove this manual applet test which adds no valuable coverage and just costs time + effort to run. ------------- Commit messages: - 8203867 Changes: https://git.openjdk.org/jdk/pull/18311/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18311&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8203867 Stats: 165 lines in 3 files changed: 0 ins; 165 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18311.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18311/head:pull/18311 PR: https://git.openjdk.org/jdk/pull/18311 From serb at openjdk.org Thu Mar 14 19:45:39 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Thu, 14 Mar 2024 19:45:39 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Tue, 5 Mar 2024 11:04:30 GMT, Alexey Ivanov wrote: >> src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 101: >> >>> 99: */ >>> 100: public synchronized void invalidateFileCache() { >>> 101: if (filesLoader != null) { >> >> This is a public API method, can we minimize the change and use "synchronized (this)" instead? > > The `synchronized` modifier is not part of public API specification, it's not shown in the generated Javadoc. Anyway, I updated the code to use `synchronized (this)` block inside the method. I thought that is checked by the sigtests. at least previously the removing of synchronized keyword requires the CSR. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1525408186 From serb at openjdk.org Thu Mar 14 19:59:40 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Thu, 14 Mar 2024 19:59:40 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Wed, 6 Mar 2024 11:27:08 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Store the size of fileCache inside synchronized block src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 534: > 532: @Override > 533: public void run() { > 534: if (fetchID.get() != fid) { How it will work if the "FilesLoader" was created already but before loading the files the "invalidateFileCache" was called, before the patch we stop execution due to "doFire=false". ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1525420964 From honkar at openjdk.org Thu Mar 14 20:07:50 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 20:07:50 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main Message-ID: This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. The test requires the updated PassFailJFrame changes added in this PR https://github.com/openjdk/jdk/pull/18281 ------------- Commit messages: - whitespace removed - default timeout used - @requires tag - title change - converted test to main - delete .html file - moved test file Changes: https://git.openjdk.org/jdk/pull/18312/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328190 Stats: 377 lines in 3 files changed: 83 ins; 294 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Thu Mar 14 20:07:51 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 20:07:51 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:50:18 GMT, Harshitha Onkar wrote: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame changes added in this PR https://github.com/openjdk/jdk/pull/18281 test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 47: > 45: This test is relevant for windows platforms and mouses with high-resolution wheel, > 46: please just press pass if this is not the case. > 47: @prrace I wanted to check the relevance of the testing requirement. The original test was created for Windows Vista and for a high-res mouse. I think the test can be retained to check on newer versions of windows. Any suggestions? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1525418163 From honkar at openjdk.org Thu Mar 14 21:02:50 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 21:02:50 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v2] In-Reply-To: References: Message-ID: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame changes added in this PR https://github.com/openjdk/jdk/pull/18281 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: ordering of imports ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/c6f6070e..627ec863 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=00-01 Stats: 4 lines in 1 file changed: 2 ins; 2 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From prr at openjdk.org Thu Mar 14 21:32:59 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 14 Mar 2024 21:32:59 GMT Subject: RFR: 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html Message-ID: After some experimentation/thought I think it best to delete this applet test. It is supposed to be a manual test but is missing the manual keyword so as far as I can tell it has never been usefully run. Except perhaps a few times when first being verified. When I run it in jtreg a window popups up, disappears and the test is passed Contradicting instructions in the test that tell you it has to be manual because you need to run it *in the browser* not jtreg. Well, we don't support browser applets any more. And the scenario it was testing was explicitly a case that happened with the browser. And to cap it all, I see no way for you to tell jtreg that it passed or failed - because you run it in the browser. So it is manual in the sense that it is NOT a jtreg test and so it should not even have an @test tag. These are more than enough reasons to just delete it. ------------- Commit messages: - 8328218 Changes: https://git.openjdk.org/jdk/pull/18314/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18314&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328218 Stats: 154 lines in 2 files changed: 0 ins; 154 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18314.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18314/head:pull/18314 PR: https://git.openjdk.org/jdk/pull/18314 From azvegint at openjdk.org Thu Mar 14 21:44:46 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 14 Mar 2024 21:44:46 GMT Subject: Integrated: 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main In-Reply-To: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> References: <77msAoji3SrhXCIcFcOTndR5MCc5jsoomdQ9Udl0WeE=.893b27fe-2ba5-48d9-920f-aab38592b614@github.com> Message-ID: On Tue, 12 Mar 2024 19:28:45 GMT, Alexander Zvegintsev wrote: > The test is converted to main. > Tested on Linux, Macos and Windows. This pull request has now been integrated. Changeset: df909e2f Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/df909e2f9c83d6de119ae20edf57e604644e0441 Stats: 265 lines in 2 files changed: 97 ins; 168 del; 0 mod 8328011: Convert java/awt/Frame/GetBoundsResizeTest/GetBoundsResizeTest.java applet test to main Reviewed-by: honkar, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18250 From honkar at openjdk.org Thu Mar 14 22:46:56 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 22:46:56 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main Message-ID: Following test is converted to main using PassFailJFrame. ------------- Commit messages: - EOF newline added - Instructions updated - applet to main Changes: https://git.openjdk.org/jdk/pull/18315/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328225 Stats: 247 lines in 2 files changed: 45 ins; 186 del; 16 mod Patch: https://git.openjdk.org/jdk/pull/18315.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18315/head:pull/18315 PR: https://git.openjdk.org/jdk/pull/18315 From honkar at openjdk.org Thu Mar 14 22:46:56 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 14 Mar 2024 22:46:56 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main In-Reply-To: References: Message-ID: <8-xeU7RcrWLzg2ODCm5TFeqO8d_XR4uDsiy-VdLMB0c=.391ef94a-1c24-4799-9ae4-a7fb752364ab@github.com> On Thu, 14 Mar 2024 22:41:20 GMT, Harshitha Onkar wrote: > Following test is converted to main using PassFailJFrame. test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 56: > 54: In WIN32 systems the image under cursor would be visible ONLY over > 55: the drop targets with activated extended OLE D'n'D support (that are, > 56: the desktop and IE). @prrace Do we retain the testing instructions related to Win32 as they are quite old? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1525572508 From achung at openjdk.org Thu Mar 14 22:55:44 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 22:55:44 GMT Subject: Integrated: 8327857: Remove applet usage from JColorChooser tests Test4222508 In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 23:57:17 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests This pull request has now been integrated. Changeset: 7c6fd337 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/7c6fd337d00d4bdeaac724a6ea26fac3654846e0 Stats: 76 lines in 2 files changed: 22 ins; 40 del; 14 mod 8327857: Remove applet usage from JColorChooser tests Test4222508 Reviewed-by: prr, tr ------------- PR: https://git.openjdk.org/jdk/pull/18209 From achung at openjdk.org Thu Mar 14 22:55:44 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 22:55:44 GMT Subject: Integrated: 8327859: Remove applet usage from JColorChooser tests Test4319113 In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 00:24:38 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests This pull request has now been integrated. Changeset: 89fb0f83 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/89fb0f837b7dbeed581f5db79d915cf405afda31 Stats: 108 lines in 2 files changed: 22 ins; 53 del; 33 mod 8327859: Remove applet usage from JColorChooser tests Test4319113 Reviewed-by: prr, tr ------------- PR: https://git.openjdk.org/jdk/pull/18210 From achung at openjdk.org Thu Mar 14 22:56:07 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 22:56:07 GMT Subject: RFR: 8328121: Remove applet usage from JColorChooser tests Test4759306 [v5] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: remove jframe import ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18286/files - new: https://git.openjdk.org/jdk/pull/18286/files/464822ca..de7c3328 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18286&range=03-04 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18286.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18286/head:pull/18286 PR: https://git.openjdk.org/jdk/pull/18286 From achung at openjdk.org Thu Mar 14 22:56:08 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 22:56:08 GMT Subject: Integrated: 8328121: Remove applet usage from JColorChooser tests Test4759306 In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 19:26:15 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests This pull request has now been integrated. Changeset: fab0edc9 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/fab0edc9e636c69d7012e476e97661ddae993a03 Stats: 54 lines in 2 files changed: 14 ins; 33 del; 7 mod 8328121: Remove applet usage from JColorChooser tests Test4759306 Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18286 From achung at openjdk.org Thu Mar 14 22:56:42 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 22:56:42 GMT Subject: Integrated: 8328130: Remove applet usage from JColorChooser tests Test4759934 In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 20:57:42 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests This pull request has now been integrated. Changeset: be1dd275 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/be1dd275a4b4fcae00e4c3c48b3e8e4b1d84ba2b Stats: 112 lines in 2 files changed: 44 ins; 54 del; 14 mod 8328130: Remove applet usage from JColorChooser tests Test4759934 Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18288 From achung at openjdk.org Thu Mar 14 23:09:45 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 23:09:45 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 Message-ID: Removing applet usage from manual JColorChooser tests ------------- Commit messages: - init commit Changes: https://git.openjdk.org/jdk/pull/18316/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328227 Stats: 66 lines in 2 files changed: 23 ins; 38 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18316.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18316/head:pull/18316 PR: https://git.openjdk.org/jdk/pull/18316 From achung at openjdk.org Thu Mar 14 23:41:59 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 14 Mar 2024 23:41:59 GMT Subject: RFR: 8328228: Missing comma in copyright year for a few JColorChooser tests Message-ID: Adding comma to copyright years ------------- Commit messages: - init commit Changes: https://git.openjdk.org/jdk/pull/18317/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18317&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328228 Stats: 4 lines in 4 files changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18317.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18317/head:pull/18317 PR: https://git.openjdk.org/jdk/pull/18317 From dholmes at openjdk.org Thu Mar 14 23:41:59 2024 From: dholmes at openjdk.org (David Holmes) Date: Thu, 14 Mar 2024 23:41:59 GMT Subject: RFR: 8328228: Missing comma in copyright year for a few JColorChooser tests In-Reply-To: References: Message-ID: <-r6p4PjPn8f_QXRtfUMCWrq2qHnvjHcJuZLLBiXRJNI=.745298ad-d021-4db7-a453-2245cf19c9b9@github.com> On Thu, 14 Mar 2024 23:36:13 GMT, Alisen Chung wrote: > Adding comma to copyright years Changes requested by dholmes (Reviewer). test/jdk/javax/swing/JColorChooser/Test4759306.java line 2: > 1: /* > 2: * Copyright (c) 2002, 2008, 2024, Oracle and/or its affiliates. All rights reserved. This line is wrong, we only use the first and last years. Please delete "2008, " test/jdk/javax/swing/JColorChooser/Test4759934.java line 2: > 1: /* > 2: * Copyright (c) 2003, 2008, 2024, Oracle and/or its affiliates. All rights reserved. Same here - please delete 2008. ------------- PR Review: https://git.openjdk.org/jdk/pull/18317#pullrequestreview-1937894902 PR Review Comment: https://git.openjdk.org/jdk/pull/18317#discussion_r1525602281 PR Review Comment: https://git.openjdk.org/jdk/pull/18317#discussion_r1525602402 From achung at openjdk.org Fri Mar 15 00:15:50 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 15 Mar 2024 00:15:50 GMT Subject: RFR: 8328228: Missing comma in copyright year for a few JColorChooser tests [v2] In-Reply-To: References: Message-ID: > Adding comma to copyright years Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: remove middle copyright year ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18317/files - new: https://git.openjdk.org/jdk/pull/18317/files/e6143840..cb3cce1f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18317&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18317&range=00-01 Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18317.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18317/head:pull/18317 PR: https://git.openjdk.org/jdk/pull/18317 From jpai at openjdk.org Fri Mar 15 00:30:40 2024 From: jpai at openjdk.org (Jaikiran Pai) Date: Fri, 15 Mar 2024 00:30:40 GMT Subject: RFR: 8328228: Missing comma in copyright year for a few JColorChooser tests [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 00:15:50 GMT, Alisen Chung wrote: >> Adding comma to copyright years > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > remove middle copyright year Trivial copyright year update. This looks good to me. ------------- Marked as reviewed by jpai (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18317#pullrequestreview-1937926802 From honkar at openjdk.org Fri Mar 15 00:35:45 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 15 Mar 2024 00:35:45 GMT Subject: RFR: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test [v4] In-Reply-To: <1okH-q00rjuD4KfgG4FDMLFGS81efUOzvROW_QdRFrU=.ffe5e1df-bec6-4220-9b79-c9dd461d81b1@github.com> References: <1okH-q00rjuD4KfgG4FDMLFGS81efUOzvROW_QdRFrU=.ffe5e1df-bec6-4220-9b79-c9dd461d81b1@github.com> Message-ID: On Thu, 14 Mar 2024 05:51:55 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > UI init in separate method Updated changes look good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18275#pullrequestreview-1937929765 From achung at openjdk.org Fri Mar 15 00:37:43 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 15 Mar 2024 00:37:43 GMT Subject: Integrated: 8328228: Missing comma in copyright year for a few JColorChooser tests In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 23:36:13 GMT, Alisen Chung wrote: > Adding comma to copyright years This pull request has now been integrated. Changeset: e8d1ba33 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/e8d1ba33b48dc8e6b937258c3765b91426c5b6f1 Stats: 4 lines in 4 files changed: 0 ins; 0 del; 4 mod 8328228: Missing comma in copyright year for a few JColorChooser tests Reviewed-by: jpai ------------- PR: https://git.openjdk.org/jdk/pull/18317 From honkar at openjdk.org Fri Mar 15 00:48:38 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 15 Mar 2024 00:48:38 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 23:02:58 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests Changes requested by honkar (Reviewer). test/jdk/javax/swing/JColorChooser/Test4887836.java line 2: > 1: /* > 2: * Copyright (c) 2003, 2008, 2024 Oracle and/or its affiliates. All rights reserved. Same here. Please remove 2008 and add comma. test/jdk/javax/swing/JColorChooser/Test4887836.java line 34: > 32: * @library /java/awt/regtesthelpers > 33: * @build PassFailJFrame > 34: * @summary Checks if no tooltip modification when no KeyStroke modifier @alisenchung summary doesn't match with the test. test/jdk/javax/swing/JColorChooser/Test4887836.java line 41: > 39: public static void main(String[] args) throws Exception { > 40: String instructions = "If you do not see white area under the \"Swatches\" tab,\n" + > 41: "then test passed, otherwise it failed."; The original instructions seem a bit vague and the test window has a lot going on so probably more details here would add clarity. test/jdk/javax/swing/JColorChooser/Test4887836.java line 49: > 47: .columns(40) > 48: .testTimeOut(10) > 49: .splitUIRight(Test4887836::createColorChooser) Here having separate windows for instructions and test window look better. Suggestion: .testUI(Test4887836::createColorChooser) ------------- PR Review: https://git.openjdk.org/jdk/pull/18316#pullrequestreview-1937931742 PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1525629485 PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1525633461 PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1525632027 PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1525632789 From honkar at openjdk.org Fri Mar 15 00:59:42 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 15 Mar 2024 00:59:42 GMT Subject: RFR: 8203867: Delete test java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:36:53 GMT, Phil Race wrote: > This test draws the same tray icon, has similar instructions to, and is subsumed by the related test DisposeInActionEventTest.java > And because this test has incomplete instructions not covering macOS it is problem-listed. > The other test explicitly covers macOS. > So the right answer is to remove this manual applet test which adds no valuable coverage and just costs time + effort to run. The reason to delete the test sounds reasonable. Moreover the instructions in the test are indeed confusing and not clear. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18311#pullrequestreview-1937948809 From honkar at openjdk.org Fri Mar 15 01:20:42 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 15 Mar 2024 01:20:42 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v4] In-Reply-To: <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> Message-ID: On Thu, 14 Mar 2024 16:48:57 GMT, Alexander Zuev wrote: >> Convert test to the automatic main and move it from its own folder since it is no longer required. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Minor updates LGTM ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18300#pullrequestreview-1937963578 From psadhukhan at openjdk.org Fri Mar 15 03:14:50 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 15 Mar 2024 03:14:50 GMT Subject: RFR: 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Minor update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18261/files - new: https://git.openjdk.org/jdk/pull/18261/files/11d47c03..ca2d42c4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18261&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18261&range=00-01 Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18261.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18261/head:pull/18261 PR: https://git.openjdk.org/jdk/pull/18261 From psadhukhan at openjdk.org Fri Mar 15 03:17:07 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 15 Mar 2024 03:17:07 GMT Subject: RFR: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Ninor update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18263/files - new: https://git.openjdk.org/jdk/pull/18263/files/5ad7971a..8ac57f0c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18263&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18263&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18263.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18263/head:pull/18263 PR: https://git.openjdk.org/jdk/pull/18263 From prr at openjdk.org Fri Mar 15 03:22:38 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 15 Mar 2024 03:22:38 GMT Subject: RFR: 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 03:14:50 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Minor update Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18261#pullrequestreview-1938047289 From tr at openjdk.org Fri Mar 15 03:47:41 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 03:47:41 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: References: Message-ID: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> On Thu, 14 Mar 2024 11:52:09 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > > I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. > Please review and let me know your suggestions if any. test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 43: > 41: * @key printer > 42: * @library /java/awt/regtesthelpers > 43: * @build PassFailJFrame Any reason why test summary is not there? test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 45: > 43: * @build PassFailJFrame > 44: * @run main/manual/othervm -Djava.security.manager=allow SecurityDialogTest > 45: */ Line spacing here would be nice. test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 47: > 45: */ > 46: public class SecurityDialogTest extends Frame { > 47: private static final String INSTRUCTIONS = `INSTRUCTIONS` can be moved inside main. test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 67: > 65: } > 66: > 67: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() I am getting an error for using new `PassFailJFrame passFailJFrame = new PassFailJFrame.Builder()`, stating _"'Builder()' has private access in 'PassFailJFrame.Builder'"_ Probably because I have fetched latest PassFailJFrame. And also you can use `PassFailJFrame.builder()` method. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525717301 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525717515 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525716495 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525721443 From dholmes at openjdk.org Fri Mar 15 03:50:43 2024 From: dholmes at openjdk.org (David Holmes) Date: Fri, 15 Mar 2024 03:50:43 GMT Subject: RFR: 8328228: Missing comma in copyright year for a few JColorChooser tests [v2] In-Reply-To: References: Message-ID: <-zafRqFYzMNHgW8wFFv-N8M4HpsgWKx8h6q9mGgzHGU=.abcd73df-efda-408f-a316-b15e0882a14a@github.com> On Fri, 15 Mar 2024 00:15:50 GMT, Alisen Chung wrote: >> Adding comma to copyright years > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > remove middle copyright year @alisenchung sorry I became unavailable to follow this through. Thanks for fixing. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18317#issuecomment-1998887761 From abhiscxk at openjdk.org Fri Mar 15 04:17:44 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 04:17:44 GMT Subject: Integrated: 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 13:39:08 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. This pull request has now been integrated. Changeset: f6390e5f Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/f6390e5f801a3e25bda591e30e49db86519bf028 Stats: 196 lines in 3 files changed: 117 ins; 79 del; 0 mod 8328089: Automate javax/swing/JTable/4222153/bug4222153.java applet test Reviewed-by: honkar, tr ------------- PR: https://git.openjdk.org/jdk/pull/18275 From psadhukhan at openjdk.org Fri Mar 15 04:26:38 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 15 Mar 2024 04:26:38 GMT Subject: RFR: 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 21:27:47 GMT, Phil Race wrote: > After some experimentation/thought I think it best to delete this applet test. > > It is supposed to be a manual test but is missing the manual keyword so > as far as I can tell it has never been usefully run. Except perhaps a few times > when first being verified. > When I run it in jtreg a window popups up, disappears and the test is passed > Contradicting instructions in the test that tell you it has to be manual because > you need to run it *in the browser* not jtreg. > > Well, we don't support browser applets any more. > And the scenario it was testing was explicitly a case that happened with the browser. > > And to cap it all, I see no way for you to tell jtreg that it passed or failed - because > you run it in the browser. > > So it is manual in the sense that it is NOT a jtreg test and so it should not even have > an @test tag. > > These are more than enough reasons to just delete it. It was originally meant for browser applet which as you told is not supported and therefore test can be removed but I see it is also used to test a Unity fix for [8159460](https://bugs.openjdk.org/browse/JDK-8159460) that does not seem to be about applet, rather undecorated child window not getting focus... Yet the test instructions is being done in SecurityException catch-block which itself looks odd...Guess it's fair enough to delete.. ------------- Marked as reviewed by psadhukhan (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18314#pullrequestreview-1938093291 From prr at openjdk.org Fri Mar 15 04:39:41 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 15 Mar 2024 04:39:41 GMT Subject: RFR: 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 04:23:39 GMT, Prasanta Sadhukhan wrote: > It was originally meant for browser applet which as you told is not supported and therefore test can be removed but I see it is also used to test a Unity fix for [8159460](https://bugs.openjdk.org/browse/JDK-8159460) that does not seem to be about applet, rather undecorated child window not getting focus... Yet the test instructions is being done in SecurityException catch-block which itself looks odd...Guess it's fair enough to delete.. Yes, I saw & followed that because of the bug id. Made me pause but not change my mind. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18314#issuecomment-1998922158 From prr at openjdk.org Fri Mar 15 04:39:41 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 15 Mar 2024 04:39:41 GMT Subject: Integrated: 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 21:27:47 GMT, Phil Race wrote: > After some experimentation/thought I think it best to delete this applet test. > > It is supposed to be a manual test but is missing the manual keyword so > as far as I can tell it has never been usefully run. Except perhaps a few times > when first being verified. > When I run it in jtreg a window popups up, disappears and the test is passed > Contradicting instructions in the test that tell you it has to be manual because > you need to run it *in the browser* not jtreg. > > Well, we don't support browser applets any more. > And the scenario it was testing was explicitly a case that happened with the browser. > > And to cap it all, I see no way for you to tell jtreg that it passed or failed - because > you run it in the browser. > > So it is manual in the sense that it is NOT a jtreg test and so it should not even have > an @test tag. > > These are more than enough reasons to just delete it. This pull request has now been integrated. Changeset: 09439374 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/09439374edec8178fc2a0494bb96a8a24384c2a3 Stats: 154 lines in 2 files changed: 0 ins; 154 del; 0 mod 8328218: Delete test java/awt/Window/FindOwner/FindOwner.html Reviewed-by: psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18314 From azvegint at openjdk.org Fri Mar 15 04:45:56 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 04:45:56 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame Message-ID: Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester. I stumbled across another test that needed this, so I decided to make these changes a standard feature. List of changes: * The log text area can be added below the `Pass` and `Fail` buttons panel. To do this, use the builder methods `logArea()`, `logArea(int rows)`. * `PassFailJFrame.log(message)`, `PassFailJFrame.logClear()` and `PassFailJFrame.logSet()` are added to control this text area. (maybe I missed something?) * added `invokeOnEDTUncheckedException' for easier use of logging methods So typical usage would be like: PassFailJFrame .builder() .title("GetBoundsResizeTest Instructions") .instructions(INSTRUCTIONS) .rows(20) .columns(70) .logArea() .build() .awaitAndCheck(); ---- //somewhere in event handlers: PassFailJFrame.log("Very important message"); ------------- Commit messages: - 8328242: Add a log area to the PassFailJFrame Changes: https://git.openjdk.org/jdk/pull/18319/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18319&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328242 Stats: 111 lines in 1 file changed: 106 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18319.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18319/head:pull/18319 PR: https://git.openjdk.org/jdk/pull/18319 From azvegint at openjdk.org Fri Mar 15 04:45:56 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 04:45:56 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 04:40:14 GMT, Alexander Zvegintsev wrote: > Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester. > I stumbled across another test that needed this, so I decided to make these changes a standard feature. > > List of changes: > * The log text area can be added below the `Pass` and `Fail` buttons panel. > To do this, use the builder methods `logArea()`, `logArea(int rows)`. > * `PassFailJFrame.log(message)`, `PassFailJFrame.logClear()` and `PassFailJFrame.logSet()` are added to control this text area. (maybe I missed something?) > * added `invokeOnEDTUncheckedException' for easier use of logging methods > > So typical usage would be like: > > PassFailJFrame > .builder() > .title("GetBoundsResizeTest Instructions") > .instructions(INSTRUCTIONS) > .rows(20) > .columns(70) > .logArea() > .build() > .awaitAndCheck(); > > > ---- > > //somewhere in event handlers: > PassFailJFrame.log("Very important message"); test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 406: > 404: rows, columns, > 405: enableScreenCapture, > 406: false, 0), It is intentionally added only to the builder to avoid excessive changes to all constructors. It seems that the builder produces much cleaner code, so we probably shouldn't spend our time to changing a bunch of `PassFailJFrame` constructors, and at some point we can make the builder the only option available. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1525751536 From azvegint at openjdk.org Fri Mar 15 04:57:46 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 04:57:46 GMT Subject: RFR: 8203867: Delete test java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:36:53 GMT, Phil Race wrote: > This test draws the same tray icon, has similar instructions to, and is subsumed by the related test DisposeInActionEventTest.java > And because this test has incomplete instructions not covering macOS it is problem-listed. > The other test explicitly covers macOS. > So the right answer is to remove this manual applet test which adds no valuable coverage and just costs time + effort to run. Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18311#pullrequestreview-1938116937 From prr at openjdk.org Fri Mar 15 05:28:41 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 15 Mar 2024 05:28:41 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 04:40:14 GMT, Alexander Zvegintsev wrote: > Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester. > I stumbled across another test that needed this, so I decided to make these changes a standard feature. > > List of changes: > * The log text area can be added below the `Pass` and `Fail` buttons panel. > To do this, use the builder methods `logArea()`, `logArea(int rows)`. > * `PassFailJFrame.log(message)`, `PassFailJFrame.logClear()` and `PassFailJFrame.logSet()` are added to control this text area. (maybe I missed something?) > * added `invokeOnEDTUncheckedException` for easier use of logging methods > > So typical usage would be like: > > PassFailJFrame > .builder() > .title("GetBoundsResizeTest Instructions") > .instructions(INSTRUCTIONS) > .rows(20) > .columns(70) > .logArea() > .build() > .awaitAndCheck(); > > > ---- > > //somewhere in event handlers: > PassFailJFrame.log("Very important message"); Marked as reviewed by prr (Reviewer). The way you did it is as I imagined. As a result of the extra builder call, there is an implicit log target created with a known way to use with which you can write to when you want. And the size is the same width as the instructions with and you just specify as many lines (rows) to be visible that makes sense, so long as it is scrollable. ------------- PR Review: https://git.openjdk.org/jdk/pull/18319#pullrequestreview-1938142923 PR Comment: https://git.openjdk.org/jdk/pull/18319#issuecomment-1998960777 From azvegint at openjdk.org Fri Mar 15 05:28:46 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 05:28:46 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 16:40:56 GMT, Damon Nguyen wrote: > Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 67: > 65: .rows(15) > 66: .columns(40) > 67: .testUI(new MemoryLeak()) It currently creates the MemoryLeak(aka Frame) on the main thread, instead of EDT. Suggestion: .testUI(MemoryLeak::new) test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 73: > 71: if (Globals.mainThread != null) { > 72: Globals.mainThread.interrupt(); > 73: } Not sure why do we need this. test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 77: > 75: Thread.sleep(300000); > 76: } catch (InterruptedException e) { > 77: if (!Globals.testPassed) { It looks like `Globals.testPassed` is never changed, so the test will always fail. Shouldn't this be controlled by the PassFailJFrame Pass/Fail buttons? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1525764471 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1525768022 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1525768354 From prr at openjdk.org Fri Mar 15 05:36:47 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 15 Mar 2024 05:36:47 GMT Subject: Integrated: 8203867: Delete test java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:36:53 GMT, Phil Race wrote: > This test draws the same tray icon, has similar instructions to, and is subsumed by the related test DisposeInActionEventTest.java > And because this test has incomplete instructions not covering macOS it is problem-listed. > The other test explicitly covers macOS. > So the right answer is to remove this manual applet test which adds no valuable coverage and just costs time + effort to run. This pull request has now been integrated. Changeset: 605800e5 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/605800e5abd244c57a421f3a511a79c531583471 Stats: 165 lines in 3 files changed: 0 ins; 165 del; 0 mod 8203867: Delete test java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.html Reviewed-by: honkar, azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18311 From psadhukhan at openjdk.org Fri Mar 15 05:46:42 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 15 Mar 2024 05:46:42 GMT Subject: Integrated: 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 07:10:32 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 06f4b7f5 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/06f4b7f54da03e57abfe8958e4354c1ecb7e3039 Stats: 84 lines in 2 files changed: 38 ins; 35 del; 11 mod 8327756: Convert javax/swing/JSlider/4987336/bug4987336.java applet to main Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18261 From abhiscxk at openjdk.org Fri Mar 15 05:59:46 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 05:59:46 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Applet test converted to main manual Changes: https://git.openjdk.org/jdk/pull/18321/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328244 Stats: 61 lines in 2 files changed: 13 ins; 39 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18321.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18321/head:pull/18321 PR: https://git.openjdk.org/jdk/pull/18321 From rkannathpari at openjdk.org Fri Mar 15 06:12:39 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Fri, 15 Mar 2024 06:12:39 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 03:31:32 GMT, Tejesh R wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 47: > >> 45: */ >> 46: public class SecurityDialogTest extends Frame { >> 47: private static final String INSTRUCTIONS = > > `INSTRUCTIONS` can be moved inside main. Most of the test with PassFailJFrame instruction stored as string inside class, what additional benefit will get keeping it inside Main ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525799780 From abhiscxk at openjdk.org Fri Mar 15 06:44:12 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 06:44:12 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java.java applet test to main [v2] In-Reply-To: References: Message-ID: <_pdd0UCywDJH3dNcGWbRPNlZ6wADT0Vx_qMXLvrHVwo=.454d4d62-2749-4aa0-836d-222020b7b4b9@github.com> > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: wild card imports and moved one folder up ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18321/files - new: https://git.openjdk.org/jdk/pull/18321/files/88675d0d..d891c49e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=00-01 Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18321.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18321/head:pull/18321 PR: https://git.openjdk.org/jdk/pull/18321 From tr at openjdk.org Fri Mar 15 06:48:38 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 06:48:38 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 06:10:05 GMT, Renjith Kannath Pariyangad wrote: >> test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 47: >> >>> 45: */ >>> 46: public class SecurityDialogTest extends Frame { >>> 47: private static final String INSTRUCTIONS = >> >> `INSTRUCTIONS` can be moved inside main. > > Most of the test with PassFailJFrame instruction stored as string inside class, what additional benefit will get keeping it inside Main ? When it can become local variable then why to keep it in class? Not like significant benefit maybe, but yeah just to keep its scope locally when it can be. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525822683 From abhiscxk at openjdk.org Fri Mar 15 07:06:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 07:06:40 GMT Subject: RFR: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 03:17:07 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Ninor update Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18263#pullrequestreview-1938235842 From tr at openjdk.org Fri Mar 15 07:18:40 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 07:18:40 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v5] In-Reply-To: References: Message-ID: <-OImXzW8qddK4eXpclABH6epfQ0u6GpUZCmA56Djfgk=.d830a67b-536e-4d42-88a3-f4dbfdc9af53@github.com> On Thu, 14 Mar 2024 18:05:11 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Minor update Looks good to me. Does this work fine in other L&F (Like Aqua), because you have explicitly mentioned as Metal right? ------------- PR Review: https://git.openjdk.org/jdk/pull/18274#pullrequestreview-1938251076 From clanger at openjdk.org Fri Mar 15 07:20:40 2024 From: clanger at openjdk.org (Christoph Langer) Date: Fri, 15 Mar 2024 07:20:40 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 19:16:21 GMT, Alexey Ivanov wrote: > @mrserb, @RealCLanger, could you run this test in your environments, please? It is for Linux and macOS only. > > I'm looking for confirmation that the test fails without the fix for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670). Since JDK-8323670 is fixed in mainline, you can run it in 21u or 17u which don't have the fix yet. > > You'll need to run the test several times because it fails only occasionally. That's why I want to collect more data on whether the test is useful/stable enough. > > I greatly appreciate your help. I added it to our testing. Results early next week. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-1999070246 From rkannathpari at openjdk.org Fri Mar 15 07:24:40 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Fri, 15 Mar 2024 07:24:40 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 03:43:13 GMT, Tejesh R wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 67: > >> 65: } >> 66: >> 67: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() > > I am getting an error for using new `PassFailJFrame passFailJFrame = new PassFailJFrame.Builder()`, stating _"'Builder()' has private access in 'PassFailJFrame.Builder'"_ Probably because I have fetched latest PassFailJFrame. > And also you can use `PassFailJFrame.builder()` method. For me its building and running properly ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525848915 From tr at openjdk.org Fri Mar 15 07:24:40 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 07:24:40 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 07:20:30 GMT, Renjith Kannath Pariyangad wrote: >> test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 67: >> >>> 65: } >>> 66: >>> 67: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() >> >> I am getting an error for using new `PassFailJFrame passFailJFrame = new PassFailJFrame.Builder()`, stating _"'Builder()' has private access in 'PassFailJFrame.Builder'"_ Probably because I have fetched latest PassFailJFrame. >> And also you can use `PassFailJFrame.builder()` method. > > For me its building and running properly Ok, might be an issue from my side. Will look into it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525850281 From psadhukhan at openjdk.org Fri Mar 15 07:27:45 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 15 Mar 2024 07:27:45 GMT Subject: RFR: 8328247: Remove redundant dir for tests converted from applet to main Message-ID: Few tests were converted from applet manual to main using PassFailJFrame manual framework but the extra folder was not deleted javax/swing/JFileChooser/6798062/bug6798062.java javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.html javax/swing/JInternalFrame/6726866/bug6726866.java so tests are now moved to one folder up.. ------------- Commit messages: - Remove redundant dir Changes: https://git.openjdk.org/jdk/pull/18322/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18322&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328247 Stats: 0 lines in 3 files changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18322.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18322/head:pull/18322 PR: https://git.openjdk.org/jdk/pull/18322 From abhiscxk at openjdk.org Fri Mar 15 07:35:04 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 07:35:04 GMT Subject: RFR: 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Applet test converted to main manual Changes: https://git.openjdk.org/jdk/pull/18323/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18323&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328248 Stats: 332 lines in 3 files changed: 166 ins; 166 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18323.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18323/head:pull/18323 PR: https://git.openjdk.org/jdk/pull/18323 From abhiscxk at openjdk.org Fri Mar 15 07:36:55 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 07:36:55 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java.java applet test to main [v3] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: jtreg manual tag update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18321/files - new: https://git.openjdk.org/jdk/pull/18321/files/d891c49e..976964f0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18321.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18321/head:pull/18321 PR: https://git.openjdk.org/jdk/pull/18321 From abhiscxk at openjdk.org Fri Mar 15 07:38:56 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 07:38:56 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v4] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: jtreg manual tag update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18233/files - new: https://git.openjdk.org/jdk/pull/18233/files/bd1aaf2e..4e5c83d6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18233.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18233/head:pull/18233 PR: https://git.openjdk.org/jdk/pull/18233 From abhiscxk at openjdk.org Fri Mar 15 07:45:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 07:45:38 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v5] In-Reply-To: <-OImXzW8qddK4eXpclABH6epfQ0u6GpUZCmA56Djfgk=.d830a67b-536e-4d42-88a3-f4dbfdc9af53@github.com> References: <-OImXzW8qddK4eXpclABH6epfQ0u6GpUZCmA56Djfgk=.d830a67b-536e-4d42-88a3-f4dbfdc9af53@github.com> Message-ID: On Fri, 15 Mar 2024 07:16:31 GMT, Tejesh R wrote: > Looks good to me. Does this work fine in other L&F (Like Aqua), because you have explicitly mentioned as Metal right? The older version of applet test also checks for MetalLookAndFeel. Since the test is just converted to main manual, didn't check explicitly on Aqua or other LAFs. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18274#issuecomment-1999099185 From rkannathpari at openjdk.org Fri Mar 15 08:39:51 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Fri, 15 Mar 2024 08:39:51 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: References: Message-ID: > Hi Reviewers, > > I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. > Please review and let me know your suggestions if any. Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: Added summary ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18299/files - new: https://git.openjdk.org/jdk/pull/18299/files/ede65c0b..6e80eaa0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18299.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18299/head:pull/18299 PR: https://git.openjdk.org/jdk/pull/18299 From rkannathpari at openjdk.org Fri Mar 15 08:39:51 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Fri, 15 Mar 2024 08:39:51 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 03:33:24 GMT, Tejesh R wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: >> >> Added summary > > test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 43: > >> 41: * @key printer >> 42: * @library /java/awt/regtesthelpers >> 43: * @build PassFailJFrame > > Any reason why test summary is not there? It was not part of original test case, I have updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1525919146 From kizune at openjdk.org Fri Mar 15 09:03:45 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 15 Mar 2024 09:03:45 GMT Subject: Integrated: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test In-Reply-To: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> Message-ID: On Thu, 14 Mar 2024 12:27:29 GMT, Alexander Zuev wrote: > Convert test to the automatic main and move it from its own folder since it is no longer required. This pull request has now been integrated. Changeset: b8dfeafd Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/b8dfeafdfd9ca024c92c9a73b59e6e71c0551985 Stats: 352 lines in 3 files changed: 95 ins; 257 del; 0 mod 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test Reviewed-by: abhiscxk, honkar ------------- PR: https://git.openjdk.org/jdk/pull/18300 From kizune at openjdk.org Fri Mar 15 09:16:46 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 15 Mar 2024 09:16:46 GMT Subject: Integrated: 8316388: Opensource five Swing component related regression tests In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 06:49:16 GMT, Alexander Zuev wrote: > Cleaned up five more tests. > > Continuation of https://github.com/openjdk/jdk/pull/18184 > > Unfortunately one of the commits rendered the whole PR invalid so i closed it and restarting it here. > All comments from the previous review are addressed. This pull request has now been integrated. Changeset: c05f8c72 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/c05f8c72239ed3f16ff0d13f4dba795731f9559f Stats: 450 lines in 5 files changed: 450 ins; 0 del; 0 mod 8316388: Opensource five Swing component related regression tests Reviewed-by: aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18259 From tr at openjdk.org Fri Mar 15 09:40:39 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 09:40:39 GMT Subject: RFR: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test [v5] In-Reply-To: References: Message-ID: <7FzaI0UHwDXqyHOpIQ_3lFveompRdy3wXuWQZvSTx_w=.d9240d31-dbd6-4ddf-a7ea-4a11430a2fef@github.com> On Thu, 14 Mar 2024 18:05:11 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Minor update Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18274#pullrequestreview-1938502030 From tr at openjdk.org Fri Mar 15 09:40:39 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 09:40:39 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: References: Message-ID: <4wDf_d_LDRCq388Zhyr0KgWJDf1jhcPpRoVtrob7WTk=.ae3637ed-d3f1-4bbb-bbc0-2ab9dc97d4e4@github.com> On Fri, 15 Mar 2024 08:39:51 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Added summary Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18299#pullrequestreview-1938503166 From aivanov at openjdk.org Fri Mar 15 10:45:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 10:45:38 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: References: Message-ID: <-HK_j4W24AReAluZX0O4pa1i2bavNtET37hn9HxOqGo=.0aff8ab0-cf6a-4b8b-aae3-21c3902c64e7@github.com> On Fri, 15 Mar 2024 08:39:51 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Added summary Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 48: > 46: * @run main/manual/othervm -Djava.security.manager=allow SecurityDialogTest > 47: */ > 48: public class SecurityDialogTest extends Frame { Suggestion: public class SecurityDialogTest { It does not need to extend `Frame`. ------------- PR Review: https://git.openjdk.org/jdk/pull/18299#pullrequestreview-1938621163 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526078681 From aivanov at openjdk.org Fri Mar 15 10:45:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 10:45:39 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 06:45:57 GMT, Tejesh R wrote: >> Most of the test with PassFailJFrame instruction stored as string inside class, what additional benefit will get keeping it inside Main ? > > When it can become local variable then why to keep it in class? Not like significant benefit maybe, but yeah just to keep its scope locally when it can be. > INSTRUCTIONS can be moved inside main. No. Well, it can but what's the point? I find a value in having the instructions as a dedicated constant at the top of the file. When you open the test, the instructions will be the first thing you see, and it's what you need after reading the summary in `@summary` tag above the class declaration. >> For me its building and running properly > > Ok, might be an issue from my side. Will look into it. > I am getting an error for using `new PassFailJFrame passFailJFrame = new PassFailJFrame.Builder()`, stating *"'Builder()' has private access in 'PassFailJFrame.Builder'"*. Probably because I have fetched latest `PassFailJFrame`. @TejeshR13 You're absolutely right. Thanks for catching it. > And also you can use `PassFailJFrame.builder()` method. Not *can* but *must*. The test won't work after it's integrated, it won't compile. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526081314 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526084123 From abhiscxk at openjdk.org Fri Mar 15 10:51:44 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 10:51:44 GMT Subject: Integrated: 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 13:26:46 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to automated test. CI testing is green. Link attached to JBS. This pull request has now been integrated. Changeset: 5249cc0a Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/5249cc0a79f05b71f4c31bb6b02775976eef77aa Stats: 437 lines in 3 files changed: 225 ins; 212 del; 0 mod 8328087: Automate javax/swing/JTable/TAB/TAB.java applet test Reviewed-by: honkar, tr ------------- PR: https://git.openjdk.org/jdk/pull/18274 From aivanov at openjdk.org Fri Mar 15 10:52:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 10:52:40 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 08:39:51 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Added summary > > INSTRUCTIONS can be moved inside main. > > No. Well, it can but what's the point? IDE never suggests converting *constants* to local variables. It is because constants can be inlined by Java compiler. Static or instance fields as well as local variables are usually kept. Converting a field to local variable reduces the size of the object. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18299#issuecomment-1999395558 From aivanov at openjdk.org Fri Mar 15 10:52:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 10:52:41 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: On Fri, 15 Mar 2024 03:33:50 GMT, Tejesh R wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: >> >> Added summary > > test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 45: > >> 43: * @build PassFailJFrame >> 44: * @run main/manual/othervm -Djava.security.manager=allow SecurityDialogTest >> 45: */ > > Line spacing here would be nice. @TejeshR13 What do you mean? What kind of line spacing would be nice here? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526093131 From tr at openjdk.org Fri Mar 15 10:55:41 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 15 Mar 2024 10:55:41 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> Message-ID: <5dzcKqIjwUep6idzLMqJu69-3v8TAypobMOpoG7llGk=.d17db09f-1871-465c-8de1-f151ee595fe6@github.com> On Fri, 15 Mar 2024 10:50:18 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 45: >> >>> 43: * @build PassFailJFrame >>> 44: * @run main/manual/othervm -Djava.security.manager=allow SecurityDialogTest >>> 45: */ >> >> Line spacing here would be nice. > > @TejeshR13 What do you mean? What kind of line spacing would be nice here? Line spacing between JTREG tag and class. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526096418 From aivanov at openjdk.org Fri Mar 15 10:57:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 10:57:39 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 07:17:59 GMT, Christoph Langer wrote: > I added it to our testing. Results early next week. @RealCLanger Thank you. I'm more interested in the failing case. How reliable does the test reproduce the problem? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-1999404398 From aivanov at openjdk.org Fri Mar 15 10:57:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 10:57:40 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:37:48 GMT, Sergey Bylokhov wrote: >> I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). >> >> I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. >> >> The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. >> >> For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. >> >> When the test passes, it usually completes in 5 minutes. >> >> **How the test works** >> >> The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. >> >> The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. >> >> A timer is used to create new files in the directory that the file chooser is using. >> >> After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. >> >> If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. >> >> On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. >> >> On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. >> >> On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for i... > > test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 1: > >> 1: import java.io.IOException; > > the header is missing. Do you mean the license? Yes, it needs the copyright and license block. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1526098180 From aivanov at openjdk.org Fri Mar 15 11:02:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 11:02:39 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v2] In-Reply-To: <5dzcKqIjwUep6idzLMqJu69-3v8TAypobMOpoG7llGk=.d17db09f-1871-465c-8de1-f151ee595fe6@github.com> References: <5aXzOToA5dTIrM_tO6JCDfVnpABlsInYnNw5XPbnndA=.d6aea1ef-a09d-48bf-a092-948097e93b21@github.com> <5dzcKqIjwUep6idzLMqJu69-3v8TAypobMOpoG7llGk=.d17db09f-1871-465c-8de1-f151ee595fe6@github.com> Message-ID: On Fri, 15 Mar 2024 10:53:14 GMT, Tejesh R wrote: >> @TejeshR13 What do you mean? What kind of line spacing would be nice here? > > Line spacing between JTREG tag and class. It's not needed? but most people add it. And we cannot agree on *a common style*, unfortunately. These jtreg tags are akin to javadoc comment (but they're not javadoc comment, and javadoc syntax `/**` with double-asterisk should not be used), and in most cases the javadoc comment is not separated with a blank line from its class. The last line of the jtreg tags comment is nearly empty by itself. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526104200 From aivanov at openjdk.org Fri Mar 15 11:07:52 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 11:07:52 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v2] In-Reply-To: References: Message-ID: > I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). > > I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. > > The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. > > For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. > > When the test passes, it usually completes in 5 minutes. > > **How the test works** > > The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. > > The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. > > A timer is used to create new files in the directory that the file chooser is using. > > After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. > > If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. > > On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. > > On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. > > On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for it to complete. The chance of updating `fileCache` whil... Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Add copyright header ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18109/files - new: https://git.openjdk.org/jdk/pull/18109/files/0d6be7a4..0dfff701 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18109&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18109&range=00-01 Stats: 23 lines in 1 file changed: 23 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18109.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18109/head:pull/18109 PR: https://git.openjdk.org/jdk/pull/18109 From abhiscxk at openjdk.org Fri Mar 15 11:08:50 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 11:08:50 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main Message-ID: Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - whitespace fix - Applet test converted to main manual Changes: https://git.openjdk.org/jdk/pull/18325/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18325&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328262 Stats: 165 lines in 3 files changed: 76 ins; 89 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18325.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18325/head:pull/18325 PR: https://git.openjdk.org/jdk/pull/18325 From aivanov at openjdk.org Fri Mar 15 11:19:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 11:19:38 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:38:48 GMT, Sergey Bylokhov wrote: >> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: >> >> Add copyright header > > test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 211: > >> 209: private static void deleteFile(final Path file) { >> 210: try { >> 211: Files.delete(file); > > Should we try to delete all files first and then throw an exception if any? I do try to remove all the files: https://github.com/openjdk/jdk/blob/0d6be7a4e4368ea67382af4321b9483236276e5a/test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java#L115-L120 https://github.com/openjdk/jdk/blob/0d6be7a4e4368ea67382af4321b9483236276e5a/test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java#L202-L215 Probably, this can be chained via `handleException`. On the other hand, I don't want to fail the test if cleaning up the files fails. However, now an exception thrown from the `finally` block will override any exception thrown from the test code, which is a bad thing, so I'll need to reconsider exception handling during clean-up. If test fails to clean up the files it created, jtreg will remove them. It is the reason why I use the current directory as the base, which is the `scratch` directory when run in jtreg. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1526123644 From abhiscxk at openjdk.org Fri Mar 15 11:30:53 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 15 Mar 2024 11:30:53 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main [v2] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: jtreg manual tag update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18325/files - new: https://git.openjdk.org/jdk/pull/18325/files/eed9cab6..cfac93ab Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18325&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18325&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18325.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18325/head:pull/18325 PR: https://git.openjdk.org/jdk/pull/18325 From clanger at openjdk.org Fri Mar 15 11:41:38 2024 From: clanger at openjdk.org (Christoph Langer) Date: Fri, 15 Mar 2024 11:41:38 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 10:53:06 GMT, Alexey Ivanov wrote: > > I added it to our testing. Results early next week. > > @RealCLanger Thank you. I'm more interested in the failing case. How reliable does the test reproduce the problem? Yes, it's running in 21 and 22 as well, so we'll see what happens there. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-1999476829 From aivanov at openjdk.org Fri Mar 15 12:05:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 12:05:41 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:37:30 GMT, Sergey Bylokhov wrote: >> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: >> >> Add copyright header > > test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 99: > >> 97: createFiles(temp); >> 98: >> 99: final JFileChooser fc = new JFileChooser(temp.toFile()); > > it should be created on EDT, just in case. I don't think it matters here? The test does not rely on even processing on EDT, no state of `JFileChooser` is modified except for calling `rescanCurrentDirectory`. Technically, I am not allowed to do so either. But if I call `rescanCurrentDirectory` from EDT only, the test becomes void. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1526185553 From aivanov at openjdk.org Fri Mar 15 12:07:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 12:07:39 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v3] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:57:06 GMT, Sergey Bylokhov wrote: >> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: >> >> Store the size of fileCache inside synchronized block > > src/java.desktop/share/classes/javax/swing/plaf/basic/BasicDirectoryModel.java line 534: > >> 532: @Override >> 533: public void run() { >> 534: if (fetchID.get() != fid) { > > How it will work if the "FilesLoader" was created already but before loading the files the "invalidateFileCache" was called, before the patch we stop execution due to "doFire=false". Good catch! I'll bump `fetchID` in `invalidateFileCache`. I missed this part. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18111#discussion_r1526188484 From jiefu at openjdk.org Fri Mar 15 12:12:51 2024 From: jiefu at openjdk.org (Jie Fu) Date: Fri, 15 Mar 2024 12:12:51 GMT Subject: RFR: 8328269: NonFocusablePopupMenuTest.java should be marked as headful Message-ID: Please review this trivial change. Thanks. ------------- Commit messages: - 8328269: NonFocusablePopupMenuTest.java should be marked as headful Changes: https://git.openjdk.org/jdk/pull/18326/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18326&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328269 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18326.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18326/head:pull/18326 PR: https://git.openjdk.org/jdk/pull/18326 From rkannathpari at openjdk.org Fri Mar 15 12:13:52 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Fri, 15 Mar 2024 12:13:52 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v3] In-Reply-To: References: Message-ID: > Hi Reviewers, > > I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. > Please review and let me know your suggestions if any. Renjith Kannath Pariyangad has updated the pull request incrementally with two additional commits since the last revision: - Removed frame - Updated PassFailJFrame object access ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18299/files - new: https://git.openjdk.org/jdk/pull/18299/files/6e80eaa0..b95f9022 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=01-02 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18299.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18299/head:pull/18299 PR: https://git.openjdk.org/jdk/pull/18299 From jiefu at openjdk.org Fri Mar 15 12:14:46 2024 From: jiefu at openjdk.org (Jie Fu) Date: Fri, 15 Mar 2024 12:14:46 GMT Subject: RFR: 8328158: Convert java/awt/Choice/NonFocusablePopupMenuTest to automatic main test [v4] In-Reply-To: <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> References: <5o5Qhfltwmw1WbGujddcfKdNxIQahHyXXFHhaYfrLsM=.6437d7e5-ad8c-43be-b04c-3f45c0c9c54a@github.com> <_cLhzMaHV2B6w0DWMogu5Abv8Zk4xS_ve9HYWSdTGWc=.32d0ed31-80f1-4fac-b05f-eef88709c2d1@github.com> Message-ID: <4-xEuByM6rwfDdfNCQXip02JE2KuCrJXbtPqp7mAwoE=.6a17b131-a311-448a-adfa-6f0a6cebaedc@github.com> On Thu, 14 Mar 2024 16:48:57 GMT, Alexander Zuev wrote: >> Convert test to the automatic main and move it from its own folder since it is no longer required. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Minor updates Hi, this test should be marked as headful. Please see: https://github.com/openjdk/jdk/pull/18326 Thanks. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18300#issuecomment-1999532838 From jiefu at openjdk.org Fri Mar 15 12:45:43 2024 From: jiefu at openjdk.org (Jie Fu) Date: Fri, 15 Mar 2024 12:45:43 GMT Subject: RFR: 8328269: NonFocusablePopupMenuTest.java should be marked as headful In-Reply-To: <633pHsre59vR1nozxc0MiSoLa7tJmT3mIbIMmek3ZHE=.cf9a00fe-501d-43d9-b334-83c6ce2591c8@github.com> References: <633pHsre59vR1nozxc0MiSoLa7tJmT3mIbIMmek3ZHE=.cf9a00fe-501d-43d9-b334-83c6ce2591c8@github.com> Message-ID: On Fri, 15 Mar 2024 12:38:23 GMT, Alexander Zvegintsev wrote: >> Please review this trivial change. >> Thanks. > > Marked as reviewed by azvegint (Reviewer). Thanks @azvegint for the review. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18326#issuecomment-1999581499 From jiefu at openjdk.org Fri Mar 15 12:45:45 2024 From: jiefu at openjdk.org (Jie Fu) Date: Fri, 15 Mar 2024 12:45:45 GMT Subject: Integrated: 8328269: NonFocusablePopupMenuTest.java should be marked as headful In-Reply-To: References: Message-ID: <0EdbrNmHiayZ0rldv9rB_chwkrMHRBIgriGJOkldNw4=.db6c40c2-daa8-40eb-927e-4c685bcc3885@github.com> On Fri, 15 Mar 2024 12:07:49 GMT, Jie Fu wrote: > Please review this trivial change. > Thanks. This pull request has now been integrated. Changeset: bf990c8b Author: Jie Fu URL: https://git.openjdk.org/jdk/commit/bf990c8b32f1ce050450d94f4f8706e5a01aa3ec Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod 8328269: NonFocusablePopupMenuTest.java should be marked as headful Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18326 From azvegint at openjdk.org Fri Mar 15 12:45:43 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 12:45:43 GMT Subject: RFR: 8328269: NonFocusablePopupMenuTest.java should be marked as headful In-Reply-To: <633pHsre59vR1nozxc0MiSoLa7tJmT3mIbIMmek3ZHE=.cf9a00fe-501d-43d9-b334-83c6ce2591c8@github.com> References: <633pHsre59vR1nozxc0MiSoLa7tJmT3mIbIMmek3ZHE=.cf9a00fe-501d-43d9-b334-83c6ce2591c8@github.com> Message-ID: <0vrduA85Jwi_3pzdXriogPIjikX0YhvLWovb9qJsmEY=.bfcd206e-a38c-4a55-88a4-79307fdfc785@github.com> On Fri, 15 Mar 2024 12:38:23 GMT, Alexander Zvegintsev wrote: >> Please review this trivial change. >> Thanks. > > Marked as reviewed by azvegint (Reviewer). > Thanks @azvegint for the review. Thank you for the fix ------------- PR Comment: https://git.openjdk.org/jdk/pull/18326#issuecomment-1999586398 From azvegint at openjdk.org Fri Mar 15 12:45:43 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 12:45:43 GMT Subject: RFR: 8328269: NonFocusablePopupMenuTest.java should be marked as headful In-Reply-To: References: Message-ID: <633pHsre59vR1nozxc0MiSoLa7tJmT3mIbIMmek3ZHE=.cf9a00fe-501d-43d9-b334-83c6ce2591c8@github.com> On Fri, 15 Mar 2024 12:07:49 GMT, Jie Fu wrote: > Please review this trivial change. > Thanks. Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18326#pullrequestreview-1938858286 From azvegint at openjdk.org Fri Mar 15 13:01:49 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 13:01:49 GMT Subject: RFR: 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 07:29:53 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework Marked as reviewed by azvegint (Reviewer). test/jdk/javax/swing/JSlider/bug6587742.java line 30: > 28: * @build PassFailJFrame > 29: * @run main/manual bug6587742 > 30: */ Can be moved to the bug6587742 class declaration for better readability ------------- PR Review: https://git.openjdk.org/jdk/pull/18323#pullrequestreview-1938892178 PR Review Comment: https://git.openjdk.org/jdk/pull/18323#discussion_r1526253430 From aivanov at openjdk.org Fri Mar 15 13:13:51 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 13:13:51 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 04:40:35 GMT, Alexander Zvegintsev wrote: >> Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester. >> I stumbled across another test that needed this, so I decided to make these changes a standard feature. >> >> List of changes: >> * The log text area can be added below the `Pass` and `Fail` buttons panel. >> To do this, use the builder methods `logArea()`, `logArea(int rows)`. >> * `PassFailJFrame.log(message)`, `PassFailJFrame.logClear()` and `PassFailJFrame.logSet()` are added to control this text area. (maybe I missed something?) >> * added `invokeOnEDTUncheckedException` for easier use of logging methods >> >> So typical usage would be like: >> >> PassFailJFrame >> .builder() >> .title("GetBoundsResizeTest Instructions") >> .instructions(INSTRUCTIONS) >> .rows(20) >> .columns(70) >> .logArea() >> .build() >> .awaitAndCheck(); >> >> >> ---- >> >> //somewhere in event handlers: >> PassFailJFrame.log("Very important message"); > > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 406: > >> 404: rows, columns, >> 405: enableScreenCapture, >> 406: false, 0), > > It is intentionally added only to the builder to avoid excessive changes to all constructors. > > It seems that the builder produces much cleaner code, so we probably shouldn't spend our time to changing a bunch of `PassFailJFrame` constructors, and at some point we can make the builder the only option available. Right. We should deprecate all the constructors, or rather remove them altogether and update tests which use them. At this moment, there are 32 tests which use `PassFailJFrame` constructors explicitly. I submitted [JDK-8328274](https://bugs.openjdk.org/browse/JDK-8328274): _Remove PassFailJFrame constructors in favour of Builder_. Feel free to re-assign and implement it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526267646 From aivanov at openjdk.org Fri Mar 15 13:17:02 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 13:17:02 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 13:11:06 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 406: >> >>> 404: rows, columns, >>> 405: enableScreenCapture, >>> 406: false, 0), >> >> It is intentionally added only to the builder to avoid excessive changes to all constructors. >> >> It seems that the builder produces much cleaner code, so we probably shouldn't spend our time to changing a bunch of `PassFailJFrame` constructors, and at some point we can make the builder the only option available. > > Right. We should deprecate all the constructors, or rather remove them altogether and update tests which use them. At this moment, there are 32 tests which use `PassFailJFrame` constructors explicitly. > > I submitted [JDK-8328274](https://bugs.openjdk.org/browse/JDK-8328274): _Remove PassFailJFrame constructors in favour of Builder_. > > Feel free to re-assign and implement it. If we remove the constructors, the builder object can be passed thus eliminating the need to add more parameters. So, it's a good thing to do. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526271182 From aivanov at openjdk.org Fri Mar 15 13:37:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 13:37:39 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 04:40:14 GMT, Alexander Zvegintsev wrote: > Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester. > I stumbled across another test that needed this, so I decided to make these changes a standard feature. > > List of changes: > * The log text area can be added below the `Pass` and `Fail` buttons panel. > To do this, use the builder methods `logArea()`, `logArea(int rows)`. > * `PassFailJFrame.log(message)`, `PassFailJFrame.logClear()` and `PassFailJFrame.logSet()` are added to control this text area. (maybe I missed something?) > * added `invokeOnEDTUncheckedException` for easier use of logging methods > > So typical usage would be like: > > PassFailJFrame > .builder() > .title("GetBoundsResizeTest Instructions") > .instructions(INSTRUCTIONS) > .rows(20) > .columns(70) > .logArea() > .build() > .awaitAndCheck(); > > > ---- > > //somewhere in event handlers: > PassFailJFrame.log("Very important message"); Changes requested by aivanov (Reviewer). test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 486: > 484: JPanel buttonsLogPanel = new JPanel(); > 485: BoxLayout layout = new BoxLayout(buttonsLogPanel, BoxLayout.Y_AXIS); > 486: buttonsLogPanel.setLayout(layout); You can use Box: Suggestion: Box buttonsLogPanel = Box.createVerticalBox(); test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 489: > 487: > 488: buttonsLogPanel.add(buttonsPanel); > 489: buttonsLogPanel.add(new JScrollPane(logArea)); Suggestion: buttonsLogPanel.add(new JLabel("Log:")); buttonsLogPanel.add(new JScrollPane(logArea)); Add a header to explain the purpose of the component below? test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1088: > 1086: public static void log(String message) { > 1087: invokeOnEDTUncheckedException(() -> { > 1088: if (logArea != null) { Should it throw `NullPointerException`? It's a developer error. If logging is used, it should be enabled; therefore throwing an exception rather than hiding the problem is reasonable, isn't it? Otherwise, the problem could remain unnoticed. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1090: > 1088: if (logArea != null) { > 1089: logArea.append(message + System.lineSeparator()); > 1090: } Suggestion: if (logArea != null) { logArea.append(message + "\n"); } Text components in Swing use `\n` as line separator. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1109: > 1107: * Replaces the log area content with provided {@code text}, if enabled by > 1108: * {@link Builder#logArea()} or {@link Builder#logArea(int)}. > 1109: * @param text replacement Suggestion: * @param text new text for log area test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1179: > 1177: /** > 1178: * Adds a log area below the "Pass", "Fail" buttons. > 1179: *

The log area can be controlled by {@link #log(String)}, Suggestion: *

* The log area can be controlled by {@link #log(String)}, Starting on the next line makes it easier to parse when reading the source code. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1185: > 1183: */ > 1184: public Builder logArea() { > 1185: this.addLogArea = true; Suggestion: addLogArea = true; I think the usage of `this.` is redundant when there's no naming conflict. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1195: > 1193: * > 1194: *

The number of columns is taken from the number of > 1195: * columns in the instructional JTextArea. This may be not what we want? I'd like to get rid of specifying rows and columns for instructions, see [JDK-8328163](https://bugs.openjdk.org/browse/JDK-8328163). I can't remember why we decided to specify those explicitly. On the other hand, if adjustment is required, `.columns` will do the job for both cases, so adding another parameter is likely an overkill. ------------- PR Review: https://git.openjdk.org/jdk/pull/18319#pullrequestreview-1938932389 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526274310 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526277177 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526298831 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526280119 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526281419 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526284864 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526284131 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526293989 From aivanov at openjdk.org Fri Mar 15 14:45:36 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 14:45:36 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: > I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). > > I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. > > The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. > > For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. > > When the test passes, it usually completes in 5 minutes. > > **How the test works** > > The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. > > The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. > > A timer is used to create new files in the directory that the file chooser is using. > > After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. > > If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. > > On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. > > On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. > > On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for it to complete. The chance of updating `fileCache` whil... Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Suppress throwing exceptions while deleting files ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18109/files - new: https://git.openjdk.org/jdk/pull/18109/files/0dfff701..73ea5bf4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18109&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18109&range=01-02 Stats: 15 lines in 1 file changed: 13 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18109.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18109/head:pull/18109 PR: https://git.openjdk.org/jdk/pull/18109 From azvegint at openjdk.org Fri Mar 15 14:48:41 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 14:48:41 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: > Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester. > I stumbled across another test that needed this, so I decided to make these changes a standard feature. > > List of changes: > * The log text area can be added below the `Pass` and `Fail` buttons panel. > To do this, use the builder methods `logArea()`, `logArea(int rows)`. > * `PassFailJFrame.log(message)`, `PassFailJFrame.logClear()` and `PassFailJFrame.logSet()` are added to control this text area. (maybe I missed something?) > * added `invokeOnEDTUncheckedException` for easier use of logging methods > > So typical usage would be like: > > PassFailJFrame > .builder() > .title("GetBoundsResizeTest Instructions") > .instructions(INSTRUCTIONS) > .rows(20) > .columns(70) > .logArea() > .build() > .awaitAndCheck(); > > > ---- > > //somewhere in event handlers: > PassFailJFrame.log("Very important message"); Alexander Zvegintsev has updated the pull request incrementally with two additional commits since the last revision: - Add logArea placeholder text - review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18319/files - new: https://git.openjdk.org/jdk/pull/18319/files/a0fc617c..77e5e4a5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18319&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18319&range=00-01 Stats: 29 lines in 1 file changed: 7 ins; 10 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/18319.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18319/head:pull/18319 PR: https://git.openjdk.org/jdk/pull/18319 From aivanov at openjdk.org Fri Mar 15 14:50:12 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 14:50:12 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v4] In-Reply-To: References: Message-ID: > 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 threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: Increment fetch ID to invalidate pending DoChangeContents ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18111/files - new: https://git.openjdk.org/jdk/pull/18111/files/a9ec7f64..478cb500 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18111&range=02-03 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18111.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18111/head:pull/18111 PR: https://git.openjdk.org/jdk/pull/18111 From azvegint at openjdk.org Fri Mar 15 14:48:46 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 14:48:46 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 13:16:39 GMT, Alexey Ivanov wrote: >> Alexander Zvegintsev has updated the pull request incrementally with two additional commits since the last revision: >> >> - Add logArea placeholder text >> - review comments > > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 486: > >> 484: JPanel buttonsLogPanel = new JPanel(); >> 485: BoxLayout layout = new BoxLayout(buttonsLogPanel, BoxLayout.Y_AXIS); >> 486: buttonsLogPanel.setLayout(layout); > > You can use Box: > Suggestion: > > Box buttonsLogPanel = Box.createVerticalBox(); Thanks, this is much better. > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 489: > >> 487: >> 488: buttonsLogPanel.add(buttonsPanel); >> 489: buttonsLogPanel.add(new JScrollPane(logArea)); > > Suggestion: > > buttonsLogPanel.add(new JLabel("Log:")); > buttonsLogPanel.add(new JScrollPane(logArea)); > > Add a header to explain the purpose of the component below? This doesn't look good to me ![image](https://github.com/openjdk/jdk/assets/77687766/331e19e6-e1c6-4fa0-ba65-e925c29ca01d) So how about a placeholder text? It will not take up any of the height of the window. ![image](https://github.com/openjdk/jdk/assets/77687766/e0390333-4974-4799-adb3-8b8f304b664c) > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1088: > >> 1086: public static void log(String message) { >> 1087: invokeOnEDTUncheckedException(() -> { >> 1088: if (logArea != null) { > > Should it throw `NullPointerException`? It's a developer error. If logging is used, it should be enabled; therefore throwing an exception rather than hiding the problem is reasonable, isn't it? Otherwise, the problem could remain unnoticed. Good point, updated. > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1185: > >> 1183: */ >> 1184: public Builder logArea() { >> 1185: this.addLogArea = true; > > Suggestion: > > addLogArea = true; > > I think the usage of `this.` is redundant when there's no naming conflict. I keep it for consistency across builder methods, e.g. `screenCapture` does not need to specify it either. > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1195: > >> 1193: * >> 1194: *

The number of columns is taken from the number of >> 1195: * columns in the instructional JTextArea. > > This may be not what we want? > > I'd like to get rid of specifying rows and columns for instructions, see [JDK-8328163](https://bugs.openjdk.org/browse/JDK-8328163). I can't remember why we decided to specify those explicitly. > > On the other hand, if adjustment is required, `.columns` will do the job for both cases, so adding another parameter is likely an overkill. It does the job well for now, so we can get to that later when the actual automatic instruction size is implemented. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526353192 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526356831 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526357356 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526352609 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526360058 From aivanov at openjdk.org Fri Mar 15 15:16:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 15:16:41 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 14:59:07 GMT, Alexey Ivanov wrote: >> This doesn't look good to me >> ![image](https://github.com/openjdk/jdk/assets/77687766/331e19e6-e1c6-4fa0-ba65-e925c29ca01d) >> >> So how about a placeholder text? It will not take up any of the height of the window. >> >> ![image](https://github.com/openjdk/jdk/assets/77687766/e0390333-4974-4799-adb3-8b8f304b664c) > > I expected the label to be aligned to the left. For this to happen, the label may need to wrapped into another panel or horizontal box with added glue. > > > > Box logLabelBox = Box.createHorizontalBox(); > logLabelBox.add(new JLabel("Log:")); > logLabelBox.add(Box.createHorizontalGlue()); > > Box buttonsLogPanel = Box.createVerticalBox(); > buttonsLogPanel.add(buttonsPanel); > buttonsLogPanel.add(logLabelBox); > buttonsLogPanel.add(new JScrollPane(logArea)); > > > ![Log Area with the "Log:" header, screenshot of PassFailJFrame](https://github.com/openjdk/jdk/assets/70774172/69a86152-a8a6-45ec-9a66-a457f4f5e396) > > Placeholder text isn't supported by Swing natively, is it? Therefore, you'll have to remove the placeholder text when you add the first message, which complicates logging a message. It could be obvious from the usage? so we may skip the header altogether? if it's mentioned in the instructions, which should still be mentioned to let the test know they need to look for the messages. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526425332 From aivanov at openjdk.org Fri Mar 15 15:25:06 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 15:25:06 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v3] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 12:13:52 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > Renjith Kannath Pariyangad has updated the pull request incrementally with two additional commits since the last revision: > > - Removed frame > - Updated PassFailJFrame object access Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 43: > 41: * @key printer > 42: * @summary tests native and cross-platform page and print dialog > 43: * when security manager is installed Verifies "Print to file" option is disable if reading/writing files is not allowed by Security Manager. I believe this type of summary explains better the purpose of the test, and the purpose is to ensure "Print to file" is disabled in writing to files is not allowed, according to the instructions of in the test. test/jdk/java/awt/print/PrinterJob/SecurityDialogTest.java line 69: > 67: } > 68: > 69: PassFailJFrame passFailJFrame = PassFailJFrame.builder() Suggestion: PassFailJFrame passFailJFrame = PassFailJFrame.builder() Removed redundant double space. ------------- PR Review: https://git.openjdk.org/jdk/pull/18299#pullrequestreview-1939223692 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526449041 PR Review Comment: https://git.openjdk.org/jdk/pull/18299#discussion_r1526450895 From azvegint at openjdk.org Fri Mar 15 15:24:39 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 15 Mar 2024 15:24:39 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 15:02:27 GMT, Alexey Ivanov wrote: >> I expected the label to be aligned to the left. For this to happen, the label may need to wrapped into another panel or horizontal box with added glue. >> >> >> >> Box logLabelBox = Box.createHorizontalBox(); >> logLabelBox.add(new JLabel("Log:")); >> logLabelBox.add(Box.createHorizontalGlue()); >> >> Box buttonsLogPanel = Box.createVerticalBox(); >> buttonsLogPanel.add(buttonsPanel); >> buttonsLogPanel.add(logLabelBox); >> buttonsLogPanel.add(new JScrollPane(logArea)); >> >> >> ![Log Area with the "Log:" header, screenshot of PassFailJFrame](https://github.com/openjdk/jdk/assets/70774172/69a86152-a8a6-45ec-9a66-a457f4f5e396) >> >> Placeholder text isn't supported by Swing natively, is it? Therefore, you'll have to remove the placeholder text when you add the first message, which complicates logging a message. > > It could be obvious from the usage? so we may skip the header altogether? if it's mentioned in the instructions, which should still be mentioned to let the test know they need to look for the messages. > Placeholder text isn't supported by Swing natively, is it? Therefore, you'll have to remove the placeholder text when you add the first message, which complicates logging a message. It is not a big overhead, e.g. I already did it by slightly changing the `log()` method. `logClear()` and `logSet()` are untouched. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526451001 From aivanov at openjdk.org Fri Mar 15 15:16:34 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 15:16:34 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 14:15:12 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 489: >> >>> 487: >>> 488: buttonsLogPanel.add(buttonsPanel); >>> 489: buttonsLogPanel.add(new JScrollPane(logArea)); >> >> Suggestion: >> >> buttonsLogPanel.add(new JLabel("Log:")); >> buttonsLogPanel.add(new JScrollPane(logArea)); >> >> Add a header to explain the purpose of the component below? > > This doesn't look good to me > ![image](https://github.com/openjdk/jdk/assets/77687766/331e19e6-e1c6-4fa0-ba65-e925c29ca01d) > > So how about a placeholder text? It will not take up any of the height of the window. > > ![image](https://github.com/openjdk/jdk/assets/77687766/e0390333-4974-4799-adb3-8b8f304b664c) I expected the label to be aligned to the left. For this to happen, the label may need to wrapped into another panel or horizontal box with added glue. Box logLabelBox = Box.createHorizontalBox(); logLabelBox.add(new JLabel("Log:")); logLabelBox.add(Box.createHorizontalGlue()); Box buttonsLogPanel = Box.createVerticalBox(); buttonsLogPanel.add(buttonsPanel); buttonsLogPanel.add(logLabelBox); buttonsLogPanel.add(new JScrollPane(logArea)); ![Log Area with the "Log:" header, screenshot of PassFailJFrame](https://github.com/openjdk/jdk/assets/70774172/69a86152-a8a6-45ec-9a66-a457f4f5e396) Placeholder text isn't supported by Swing natively, is it? Therefore, you'll have to remove the placeholder text when you add the first message, which complicates logging a message. >> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 1185: >> >>> 1183: */ >>> 1184: public Builder logArea() { >>> 1185: this.addLogArea = true; >> >> Suggestion: >> >> addLogArea = true; >> >> I think the usage of `this.` is redundant when there's no naming conflict. > > I keep it for consistency across builder methods, e.g. `screenCapture` does not need to specify it either. Okay. Most methods of the builder use `this.` prefix when assigning something to a field. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526420764 PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526429613 From duke at openjdk.org Fri Mar 15 15:40:53 2024 From: duke at openjdk.org (lawrence.andrews) Date: Fri, 15 Mar 2024 15:40:53 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 15:33:30 GMT, lawrence.andrews wrote: >> Okay. Most methods of the builder use `this.` prefix when assigning something to a field. > > How about having a clear log button. Just an idea > Example : > I have a mouse event test & I am using the logArea to add all the events into it. But when I have to file a bug & I wanted to show only the required log in the log area in the screen shot by clicking on the 'screen capture' button. I have to clear the log in the logarea and repeat the test and show only the required log in the log area. In this scenario if we can provide a 'Clear log' button will be much useful . 'Clear log' button calling logClear(). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526468319 From kizune at openjdk.org Fri Mar 15 15:41:29 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 15 Mar 2024 15:41:29 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:39:15 GMT, Tejesh R wrote: > Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. Marked as reviewed by kizune (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18296#pullrequestreview-1939265158 From kizune at openjdk.org Fri Mar 15 15:41:30 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 15 Mar 2024 15:41:30 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main In-Reply-To: <-p_u3q1fM-8p0wgRiKohiYi9dc6Kz-TASSP_LBc1W1I=.50d1c283-22b0-48e4-8993-f32a339d0505@github.com> References: <-p_u3q1fM-8p0wgRiKohiYi9dc6Kz-TASSP_LBc1W1I=.50d1c283-22b0-48e4-8993-f32a339d0505@github.com> Message-ID: On Thu, 14 Mar 2024 16:04:50 GMT, Tejesh R wrote: >> test/jdk/sun/java2d/loops/CopyAreaSpeed.java line 131: >> >>> 129: } >>> 130: try { >>> 131: Thread.sleep(1); >> >> I know it is an old code but i just wonder why do we add sleep to every iteration of something that is supposed to be a performance test. What are we achieving by doing this sleep? > > Maybe because of Graphics paint and copyArea ? It is still a little bit suspicious because adding fixed delay into the test loop makes the test less accurate the fastest hardware gets but i guess in order to maintain the test value compared to the previous versions of the test it will be wrong to change time calculations. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18296#discussion_r1526473747 From aivanov at openjdk.org Fri Mar 15 15:45:33 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 15:45:33 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 15:34:27 GMT, lawrence.andrews wrote: >> How about having a clear log button. Just an idea >> Example : >> I have a mouse event test & I am using the logArea to add all the events into it. But when I have to file a bug & I wanted to show only the required log in the log area in the screen shot by clicking on the 'screen capture' button. I have to clear the log in the logarea and repeat the test and show only the required log in the log area. In this scenario if we can provide a 'Clear log' button will be much useful . > > 'Clear log' button calling logClear(). @lawrence-andrew I can't see much value? Capturing logs by a screenshot is not something that you should ever do ? copy the messages and paste them as text into a bug report. However, you've raised a good point: the log messages could / should be copied to System.out too. If a test fails, the logs will already be available in the test log, and the tester will not need to copy the log to preserve the messages for submitting the bug. The .jtr file from jtreg will contain all the information. When submitting a bug, you would filter the log and paste the relevant pieces into the bug report. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526480326 From duke at openjdk.org Fri Mar 15 15:40:52 2024 From: duke at openjdk.org (lawrence.andrews) Date: Fri, 15 Mar 2024 15:40:52 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 15:05:28 GMT, Alexey Ivanov wrote: >> I keep it for consistency across builder methods, e.g. `screenCapture` does not need to specify it either. > > Okay. Most methods of the builder use `this.` prefix when assigning something to a field. How about having a clear log button. Just an idea Example : I have a mouse event test & I am using the logArea to add all the events into it. But when I have to file a bug & I wanted to show only the required log in the log area in the screen shot by clicking on the 'screen capture' button. I have to clear the log in the logarea and repeat the test and show only the required log in the log area. In this scenario if we can provide a 'Clear log' button will be much useful . ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526466970 From aivanov at openjdk.org Fri Mar 15 15:40:52 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 15 Mar 2024 15:40:52 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 15:21:23 GMT, Alexander Zvegintsev wrote: >> It could be obvious from the usage? so we may skip the header altogether? if it's mentioned in the instructions, which should still be mentioned to let the test know they need to look for the messages. > >> Placeholder text isn't supported by Swing natively, is it? Therefore, you'll have to remove the placeholder text when you add the first message, which complicates logging a message. > > It is not a big overhead, e.g. I already did it by slightly changing the `log()` method. `logClear()` and `logSet()` are untouched. Yep, I see it. I'm still inclined for going without the header or placeholder. Handling the placeholder text converts a one-liner into six lines of code. And I'm unsure the placeholder improves the tester experience? I may be overthinking? in which case *no header* and *no placeholder* seem a better option. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526467731 From duke at openjdk.org Fri Mar 15 15:50:48 2024 From: duke at openjdk.org (lawrence.andrews) Date: Fri, 15 Mar 2024 15:50:48 GMT Subject: RFR: 8328242: Add a log area to the PassFailJFrame [v2] In-Reply-To: References: Message-ID: <3BKHgxf_SDGUCHcRwsxw9LMBSv8pGmqDgW0ijk10uRE=.38f0773c-6209-4b87-825b-9316f8d25138@github.com> On Fri, 15 Mar 2024 15:42:42 GMT, Alexey Ivanov wrote: >> 'Clear log' button calling logClear(). > > @lawrence-andrew I can't see much value? > > Capturing logs by a screenshot is not something that you should ever do ? copy the messages and paste them as text into a bug report. > > However, you've raised a good point: the log messages could / should be copied to System.out too. > > If a test fails, the logs will already be available in the test log, and the tester will not need to copy the log to preserve the messages for submitting the bug. The .jtr file from jtreg will contain all the information. > > When submitting a bug, you would filter the log and paste the relevant pieces into the bug report. My original intention was to filter the log and paste the relevant pieces into the bug report. But I used screen shot as an example. Thanks ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18319#discussion_r1526486701 From prr at openjdk.org Sat Mar 16 22:18:50 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 16 Mar 2024 22:18:50 GMT Subject: RFR: 8328300: Convert PrintDialogsTest.java from Applet to main program Message-ID: This applet test is converted to a main program using PassFailJFrame. Other than that, the main thing I improved is the instructions. ------------- Commit messages: - 8328300 - 8328300 - 8328300 Changes: https://git.openjdk.org/jdk/pull/18333/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18333&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328300 Stats: 124 lines in 2 files changed: 63 ins; 54 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/18333.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18333/head:pull/18333 PR: https://git.openjdk.org/jdk/pull/18333 From honkar at openjdk.org Sat Mar 16 22:18:44 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:18:44 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main Message-ID: Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. ------------- Commit messages: - typo - windows check added - EOF newline added - problemlist.txt changes Changes: https://git.openjdk.org/jdk/pull/18335/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18335&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328299 Stats: 266 lines in 3 files changed: 44 ins; 187 del; 35 mod Patch: https://git.openjdk.org/jdk/pull/18335.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18335/head:pull/18335 PR: https://git.openjdk.org/jdk/pull/18335 From serb at openjdk.org Sat Mar 16 22:18:54 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Sat, 16 Mar 2024 22:18:54 GMT Subject: RFR: 8328194: Add a test to check default rendering engine Message-ID: This is a request to forward port the test added by the [JDK-8241307](https://bugs.openjdk.org/browse/JDK-8241307) with inverted condition - jdk jdk11 the marlin should be used by default. ------------- Commit messages: - Create DefaultRenderingEngine.java Changes: https://git.openjdk.org/jdk/pull/18313/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18313&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328194 Stats: 42 lines in 1 file changed: 42 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18313.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18313/head:pull/18313 PR: https://git.openjdk.org/jdk/pull/18313 From honkar at openjdk.org Sat Mar 16 22:18:48 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:18:48 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 22:54:23 GMT, Harshitha Onkar wrote: > Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. > > This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. > > Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. test/jdk/ProblemList.txt line 788: > 786: java/awt/xembed/server/TestXEmbedServerJava.java 8001150,8004031 generic-all > 787: java/awt/Modal/PrintDialogsTest/PrintDialogsTest.java 8068378 generic-all > 788: java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.java 8080185 macosx-all,linux-all @prsadhuk While looking into the test history I noticed you had previous worked on it PR https://github.com/openjdk/jdk/pull/3406, it wasn't integrated though. Any thoughts whether to make this test windows-only or extend the test to other platforms ? Your previous PR description sounds correct, when I went through the related test bugs it seemed like the test was created for windows-only issue. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18335#discussion_r1526942638 From prr at openjdk.org Sat Mar 16 22:18:56 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 16 Mar 2024 22:18:56 GMT Subject: RFR: 8328194: Add a test to check default rendering engine In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 20:13:58 GMT, Sergey Bylokhov wrote: > This is a request to forward port the test added by the [JDK-8241307](https://bugs.openjdk.org/browse/JDK-8241307) with inverted condition - jdk jdk11 the marlin should be used by default. We don't have any others in JDK 23, so I am not sure what this test does for us. Also if there *are* alternatives, then the test should only fail if those alternatives aren't selected. Like if there was pisces and sun.java2d.renderingengine=pisces, then surely the test should not fail ? But I guess that part is OK for this test, since it controls "main" and will be othervm mode. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18313#issuecomment-2002141009 From aturbanov at openjdk.org Sat Mar 16 22:18:53 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Sat, 16 Mar 2024 22:18:53 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 22:54:23 GMT, Harshitha Onkar wrote: > Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. > > This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. > > Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. test/jdk/java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.java line 84: > 82: > 83: frame.add(mainPanel); > 84: frame.setSize(400,200); Suggestion: frame.setSize(400, 200); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18335#discussion_r1527142182 From aivanov at openjdk.org Sat Mar 16 22:19:10 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Sat, 16 Mar 2024 22:19:10 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> Message-ID: On Thu, 14 Mar 2024 16:56:03 GMT, Alexey Ivanov wrote: >> It is well described in a [JBS comment](https://bugs.openjdk.org/browse/JDK-8305072?focusedId=14610400&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14610400) by the submitter. >> >> Let's consider the failing case where: >> >> a = C:\Users\Documents(true) >> b = C:\Users(false) >> c = C:\Users\Documents(false) >> >> The value in parentheses is `isSpecial()` flag. >> >> When `a` and `c` are compared, `special1 = true` and `special2 = false`, therefore the code flow enters this `if`-block. Because the `equals` method doesn't take into account the `isSpecial` flag, both `i1` and `i2` are 0. >> >> https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L534-L535 >> >> Thus, `a` and `c` are considered equal, which breaks the general contract of [`Comparable.compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Comparable.html#compareTo(T)). >> >> If you look below this `if`-statement: >> >> https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L545-L550 >> >> The comment and the code say that any special folder sorts above any regular folder. Therefore the code shouldn't enter that `if`-block above if *only one* of the folders is *special* ? the order is already well-defined for such case. >> >> The purpose of the `if`-block is to make some of the special folders even more special. In other words, it ensures the following special folders?`getPersonal`, `getDesktop`, `getDrives`, `getNetwork`?are at the top of the list, above any other special folders. > > So, changing the condition in the `if`-block from `special1 || special2` to `special1 && special2` makes the sorting order consistent because the relation is now *transitive*: > > > a < b & b < c therefore a < c @uckelman, Your message is hidden until you accept OpenJDK Terms of Use. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1526738043 From prr at openjdk.org Sat Mar 16 22:18:58 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 16 Mar 2024 22:18:58 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program Message-ID: Convert this applet based test to a main program ------------- Commit messages: - 8328301 Changes: https://git.openjdk.org/jdk/pull/18334/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18334&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328301 Stats: 260 lines in 2 files changed: 15 ins; 189 del; 56 mod Patch: https://git.openjdk.org/jdk/pull/18334.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18334/head:pull/18334 PR: https://git.openjdk.org/jdk/pull/18334 From honkar at openjdk.org Sat Mar 16 22:19:06 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:19:06 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 22:32:12 GMT, Phil Race wrote: > Convert this applet based test to a main program test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 27: > 25: @test > 26: @bug 7075105 > 27: @summary WIN: Provide a way to format HTML on drop Do we add `@requires (os.family == "windows")` since the test summary indicates Windows issue? test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 143: > 141: frame.add(new DropPane()); > 142: frame.pack(); > 143: return frame; Changes looks good expect that when the the test is started and I switch to the browser window the drop target frame goes behind and becomes difficult to drag and drop to the Red panel. Setting `frame.setAlwaysOnTop(true)` will ensure that the DnD panel is on top. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1527001893 PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1526997015 From aturbanov at openjdk.org Sat Mar 16 22:19:11 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Sat, 16 Mar 2024 22:19:11 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program In-Reply-To: References: Message-ID: <6a3gk6l9Y5taEtc_Mp7y9IPfcjPNTOCSYWg1liUz5jY=.cf77bcab-e8aa-4bb9-a869-608bf7615f32@github.com> On Fri, 15 Mar 2024 22:32:12 GMT, Phil Race wrote: > Convert this applet based test to a main program test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 60: > 58: @Override > 59: public Dimension getPreferredSize() { > 60: return new Dimension(400,400); Suggestion: return new Dimension(400, 400); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1527142240 From kizune at openjdk.org Sat Mar 16 22:19:16 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Sat, 16 Mar 2024 22:19:16 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main Message-ID: Converted to a main manual test. ------------- Commit messages: - Correct the run clause of the test - Added a line to separate two methods - 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main Changes: https://git.openjdk.org/jdk/pull/18331/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18331&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328279 Stats: 349 lines in 3 files changed: 91 ins; 258 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18331.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18331/head:pull/18331 PR: https://git.openjdk.org/jdk/pull/18331 From honkar at openjdk.org Sat Mar 16 22:19:32 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:19:32 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 16:13:33 GMT, Alexander Zuev wrote: > Converted to a main manual test. test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 34: > 32: import javax.swing.JPanel; > 33: > 34: /** Suggestion: /* test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 56: > 54: frame.getContentPane().add(layeredPane); > 55: frame.pack(); > 56: frame.setVisible(true); frame.setVisible(true) can be removed, this avoid the test pane to appear initially at a different location and then switch the final location, additionally PassFailJFrame handles it. test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 85: > 83: .title("Overlapping Panels Cursor Test Instructions") > 84: .instructions(instructions) > 85: .rows(4) May be 5-6 rows looks better for the instruction length. Using the below format avoids the need to specify a hardcoded row count number :) Suggestion: .rows((int) instructions.lines().count() + 1) test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 91: > 89: .awaitAndCheck(); > 90: } > 91: } EOF newline missing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527004319 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527005718 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527007416 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527005886 From ihse at openjdk.org Sat Mar 16 22:20:51 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Sat, 16 Mar 2024 22:20:51 GMT Subject: RFR: 8325163: Enable -Wpedantic on clang [v2] In-Reply-To: References: Message-ID: On Mon, 5 Feb 2024 10:58:17 GMT, Magnus Ihse Bursie wrote: >> Inspired by (the later backed-out) [JDK-8296115](https://bugs.openjdk.org/browse/JDK-8296115), I propose to enable `-Wpedantic` for clang. This has already found some irregularities in the code, like mistakenly using `#import` instead of `#include`. In this patch, I disable warnings for these individual buggy or badly written files, but I intend to post follow-up issues on the respective teams to have them properly fixed. >> >> Unfortunately, it is not possible to enable `-Wpedantic` on gcc, since individual warnings in `-Wpedantic` cannot be disabled. This means that code like this: >> >> >> #define DEBUG_ONLY(code) code; >> >> DEBUG_ONLY(foo()); >> >> >> will result in a `; ;`. This breaks the C standard, but is benign, and we use it all over the place. On clang, we can ignore this by `-Wno-extra-semi`, but this is not available on gcc. > > Magnus Ihse Bursie has updated the pull request incrementally with one additional commit since the last revision: > > FIx dtrace build Keep it for a bit more, bot. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17687#issuecomment-2000843635 From honkar at openjdk.org Sat Mar 16 22:34:10 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:34:10 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: References: Message-ID: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar 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 10 additional commits since the last revision: - used PassFailJFrame.logArea() - Merge branch 'master' into WheelRotation_8328190 - ordering of imports - whitespace removed - default timeout used - @requires tag - title change - converted test to main - delete .html file - moved test file ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/627ec863..a2b9b95a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=01-02 Stats: 4580 lines in 85 files changed: 2040 ins; 2125 del; 415 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Sat Mar 16 22:34:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:34:22 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v2] In-Reply-To: References: Message-ID: <1K3b9xSaMO26iqig-NCkqHiB1c3uZWI_Qf7Dsj2_Lpg=.061f023a-f2bc-439d-bd4e-1fbb57d7e392@github.com> On Thu, 14 Mar 2024 21:02:50 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > ordering of imports This PR has been updated to use PassFailJFrame's new logArea() feature. @azvegint @aivanov-jdk Please review. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18312#issuecomment-2000427947 From aturbanov at openjdk.org Sat Mar 16 22:34:25 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Sat, 16 Mar 2024 22:34:25 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 09:36:57 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar 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 10 additional commits since the last revision: > > - used PassFailJFrame.logArea() > - Merge branch 'master' into WheelRotation_8328190 > - ordering of imports > - whitespace removed > - default timeout used > - @requires tag > - title change > - converted test to main > - delete .html file > - moved test file test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 71: > 69: panel.setBackground(Color.GREEN); > 70: panel.addMouseWheelListener(e -> PassFailJFrame.log(e.toString())); > 71: frame.setSize (200,200); Suggestion: frame.setSize(200, 200); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1527142345 From honkar at openjdk.org Sat Mar 16 22:35:16 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:35:16 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v5] In-Reply-To: References: Message-ID: > Following InputMethod applet tests are converted to main using PassFailJFrame > > 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) > 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) > > - test instructions are updated to make to more clear > - tests renamed > - moved one directory above - /java/awt/im/ > - html file deleted. > > Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18251/files - new: https://git.openjdk.org/jdk/pull/18251/files/67acd86f..19fa3fe8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=03-04 Stats: 12 lines in 2 files changed: 1 ins; 1 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/18251.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18251/head:pull/18251 PR: https://git.openjdk.org/jdk/pull/18251 From tr at openjdk.org Sat Mar 16 22:35:17 2024 From: tr at openjdk.org (Tejesh R) Date: Sat, 16 Mar 2024 22:35:17 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v5] In-Reply-To: References: Message-ID: <6OSCK1-XBHdW8oqHeK9LSJjwMAfSJ7GqyDeC2Oq_aJE=.5a5a2cb2-ecce-4ce8-9cc0-dceb8eb53825@github.com> On Sat, 16 Mar 2024 22:19:36 GMT, Harshitha Onkar wrote: >> Following InputMethod applet tests are converted to main using PassFailJFrame >> >> 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) >> 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) >> >> - test instructions are updated to make to more clear >> - tests renamed >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > review updates Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18251#pullrequestreview-1940991012 From tr at openjdk.org Sat Mar 16 22:35:29 2024 From: tr at openjdk.org (Tejesh R) Date: Sat, 16 Mar 2024 22:35:29 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java Message-ID: Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. ------------- Commit messages: - Test converted to automated Changes: https://git.openjdk.org/jdk/pull/18336/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8327840 Stats: 60 lines in 1 file changed: 24 ins; 11 del; 25 mod Patch: https://git.openjdk.org/jdk/pull/18336.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18336/head:pull/18336 PR: https://git.openjdk.org/jdk/pull/18336 From honkar at openjdk.org Sat Mar 16 22:35:19 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:35:19 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v4] In-Reply-To: <2Ei6cim7yoEWHTzirrQ8TbqcAIjY2shmstPaXcoUGIg=.a8774df0-5d69-45f7-bc79-6d0856fb56e1@github.com> References: <2Ei6cim7yoEWHTzirrQ8TbqcAIjY2shmstPaXcoUGIg=.a8774df0-5d69-45f7-bc79-6d0856fb56e1@github.com> Message-ID: On Thu, 14 Mar 2024 04:43:48 GMT, Tejesh R wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instruction updated > > test/jdk/java/awt/im/PinyinIMCommaTest.java line 44: > >> 42: >> 43: public class PinyinIMCommaTest { >> 44: private static final String INSTRUCTIONS = """ > > `INSTRUCTIONS ` can be moved inside main (Other test also) Since it is okay to have it either as static var or within main, I'm going to leave it as it is now. > test/jdk/java/awt/im/PinyinIMCommaTest.java line 82: > >> 80: JTextField input = new JTextField(20); >> 81: panel.add(new JLabel("Text field:")); >> 82: panel.add(input); > > can add JTextField also this way `panel.add(new JTextField(20));`? Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1526685355 PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1526685550 From honkar at openjdk.org Sat Mar 16 22:35:21 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 16 Mar 2024 22:35:21 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v4] In-Reply-To: References: Message-ID: <2IRH2uQkvLYtmIvk8Qxp70EikTWgmSDnndFAZKscfOI=.c6d39b29-e3c8-407e-b23d-e4e107799027@github.com> On Wed, 13 Mar 2024 17:45:28 GMT, Alexander Zvegintsev wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instruction updated > > test/jdk/java/awt/im/PinyinIMFullstopTest.java line 81: > >> 79: private static JComponent createUI() { >> 80: JPanel panel = new JPanel(); >> 81: JTextField input = new JTextField(20); > > Is there a specific reason why we switched from a text area to a text field? I have updated it to JTextArea as per the original test. Missed it earlier. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1526683784 From serb at openjdk.org Sun Mar 17 08:56:33 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Sun, 17 Mar 2024 08:56:33 GMT Subject: RFR: 8328194: Add a test to check default rendering engine In-Reply-To: References: Message-ID: <0a5Q1MibQDAMg4dKEOqpFjMg78_S2Xa1ByM1bElKgaM=.df9fc7de-bfd1-49a6-84d7-6bebc71df16c@github.com> On Sat, 16 Mar 2024 21:32:02 GMT, Phil Race wrote: > We don't have any others in JDK 23, so I am not sure what this test does for us. Right now it is not useful, but that is the same story we had in OpenJDK 8 - only the one engine for years, and then the engine "accidentally" changed to marlin. This test will help to catch such bugs. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18313#issuecomment-2002368655 From kizune at openjdk.org Mon Mar 18 03:00:49 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 03:00:49 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v2] In-Reply-To: References: Message-ID: > Converted to a main manual test. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Fixes based on review feedback ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18331/files - new: https://git.openjdk.org/jdk/pull/18331/files/e74f3d26..c94a124e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18331&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18331&range=00-01 Stats: 4 lines in 1 file changed: 0 ins; 1 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18331.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18331/head:pull/18331 PR: https://git.openjdk.org/jdk/pull/18331 From kizune at openjdk.org Mon Mar 18 03:00:50 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 03:00:50 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v2] In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 00:44:12 GMT, Harshitha Onkar wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Fixes based on review feedback > > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 34: > >> 32: import javax.swing.JPanel; >> 33: >> 34: /** > > Suggestion: > > /* Done. > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 56: > >> 54: frame.getContentPane().add(layeredPane); >> 55: frame.pack(); >> 56: frame.setVisible(true); > > frame.setVisible(true) can be removed, this avoid the test pane to appear initially at a different location and then switch the final location, additionally PassFailJFrame handles it. Fixed. > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 85: > >> 83: .title("Overlapping Panels Cursor Test Instructions") >> 84: .instructions(instructions) >> 85: .rows(4) > > May be 5-6 rows looks better for the instruction length. > Using the below format avoids the need to specify a hardcoded row count number :) > > Suggestion: > > .rows((int) instructions.lines().count() + 1) Ok. > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 91: > >> 89: .awaitAndCheck(); >> 90: } >> 91: } > > EOF newline missing. Added new line ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527725691 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527724615 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527724519 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1527724792 From tr at openjdk.org Mon Mar 18 03:40:27 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 03:40:27 GMT Subject: RFR: 8328247: Remove redundant dir for tests converted from applet to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 07:23:30 GMT, Prasanta Sadhukhan wrote: > Few tests were converted from applet manual to main using PassFailJFrame manual framework but the extra folder was not deleted > > javax/swing/JFileChooser/6798062/bug6798062.java > javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.html > javax/swing/JInternalFrame/6726866/bug6726866.java > > so tests are now moved to one folder up.. Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18322#pullrequestreview-1941920879 From psadhukhan at openjdk.org Mon Mar 18 06:07:26 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 06:07:26 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main In-Reply-To: References: Message-ID: <7gn73bmbH0pkfkIHn2DYdwVXpNoZ2dgxRwbMyRxUz9E=.d2f822c9-6c6a-4d68-8c54-f1087d71144d@github.com> On Fri, 15 Mar 2024 23:03:41 GMT, Harshitha Onkar wrote: >> Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. >> >> This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. >> >> Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. > > test/jdk/ProblemList.txt line 788: > >> 786: java/awt/xembed/server/TestXEmbedServerJava.java 8001150,8004031 generic-all >> 787: java/awt/Modal/PrintDialogsTest/PrintDialogsTest.java 8068378 generic-all >> 788: java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.java 8080185 macosx-all,linux-all > > @prsadhuk While looking into the test history I noticed you had previous worked on it PR https://github.com/openjdk/jdk/pull/3406, it wasn't integrated though. Any thoughts whether to make this test windows-only or extend the test to other platforms ? > > Your previous PR description sounds correct, when I went through the related test bugs it seemed like the test was created for windows-only issue. The reason it was not integrated was because of this [comment](https://github.com/openjdk/jdk/pull/3406#pullrequestreview-632106612) wherein it was mentioned to update the test to run without MSOutlook dependancy so that it could be run on all platforms so making it not platform dependant.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18335#discussion_r1527889042 From dnguyen at openjdk.org Mon Mar 18 06:40:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 06:40:36 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Remove unneeded Global var. Review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18307/files - new: https://git.openjdk.org/jdk/pull/18307/files/3c3e5410..fb3d566e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=00-01 Stats: 18 lines in 1 file changed: 1 ins; 7 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/18307.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18307/head:pull/18307 PR: https://git.openjdk.org/jdk/pull/18307 From jdv at openjdk.org Mon Mar 18 06:51:26 2024 From: jdv at openjdk.org (Jayathirth D V) Date: Mon, 18 Mar 2024 06:51:26 GMT Subject: RFR: 8328247: Remove redundant dir for tests converted from applet to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 07:23:30 GMT, Prasanta Sadhukhan wrote: > Few tests were converted from applet manual to main using PassFailJFrame manual framework but the extra folder was not deleted > > javax/swing/JFileChooser/6798062/bug6798062.java > javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.html > javax/swing/JInternalFrame/6726866/bug6726866.java > > so tests are now moved to one folder up.. Marked as reviewed by jdv (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18322#pullrequestreview-1942087474 From psadhukhan at openjdk.org Mon Mar 18 06:58:29 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 06:58:29 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: <1cAYTvs4Pw5aUeqZ7LFZTinmO1M4m3c2eqznYbrXO7c=.d86ae1d1-4fc7-46a8-a311-cf41d8e5a4e1@github.com> On Thu, 14 Mar 2024 11:02:52 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... ![image](https://github.com/openjdk/jdk/assets/43534309/c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4) ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003053107 From psadhukhan at openjdk.org Mon Mar 18 07:02:30 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 07:02:30 GMT Subject: Integrated: 8328247: Remove redundant dir for tests converted from applet to main In-Reply-To: References: Message-ID: <9O333jjmJdPBnyHWLBDH6Q8yXFVb1m--GxE_AyH9390=.38918ffe-7dea-4d1e-85c9-cd449cd2a844@github.com> On Fri, 15 Mar 2024 07:23:30 GMT, Prasanta Sadhukhan wrote: > Few tests were converted from applet manual to main using PassFailJFrame manual framework but the extra folder was not deleted > > javax/swing/JFileChooser/6798062/bug6798062.java > javax/swing/JFileChooser/FileFilterDescription/FileFilterDescription.html > javax/swing/JInternalFrame/6726866/bug6726866.java > > so tests are now moved to one folder up.. This pull request has now been integrated. Changeset: ece4124f Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/ece4124f25f676da9bf2d1b7fd8e4394dd7d31af Stats: 0 lines in 3 files changed: 0 ins; 0 del; 0 mod 8328247: Remove redundant dir for tests converted from applet to main Reviewed-by: tr, jdv ------------- PR: https://git.openjdk.org/jdk/pull/18322 From psadhukhan at openjdk.org Mon Mar 18 07:12:27 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 07:12:27 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v5] In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 22:35:16 GMT, Harshitha Onkar wrote: >> Following InputMethod applet tests are converted to main using PassFailJFrame >> >> 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) >> 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) >> >> - test instructions are updated to make to more clear >> - tests renamed >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > review updates test/jdk/java/awt/im/PinyinIMCommaTest.java line 67: > 65: if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) { > 66: throw new SkippedException("This test is for macOS only"); > 67: } Is it required to have this SkippedException? I guess this test already have jtreg tag @requires("mac") and the test needs to be run with jtreg since we are using PassFailJFrame so I think it's redundant to have this check again in test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1527956025 From abhiscxk at openjdk.org Mon Mar 18 07:49:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 07:49:38 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main Message-ID: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Conversion of manual applet test to main based using PassFailJFrame manual framework ------------- Commit messages: - Applet test converted to maim manual Changes: https://git.openjdk.org/jdk/pull/18340/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18340&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328328 Stats: 785 lines in 4 files changed: 170 ins; 614 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18340.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18340/head:pull/18340 PR: https://git.openjdk.org/jdk/pull/18340 From abhiscxk at openjdk.org Mon Mar 18 08:01:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 08:01:41 GMT Subject: RFR: 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main [v2] In-Reply-To: References: Message-ID: <11rpqXZBWd0vrxXUt5IhGY_b00GaVTcEwo93nILK4wI=.2a4820ff-d7e5-4f62-989a-bf39d670c145@github.com> > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: jtreg tag update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18323/files - new: https://git.openjdk.org/jdk/pull/18323/files/ee30cdbb..ef49f3b8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18323&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18323&range=00-01 Stats: 16 lines in 1 file changed: 8 ins; 8 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18323.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18323/head:pull/18323 PR: https://git.openjdk.org/jdk/pull/18323 From abhiscxk at openjdk.org Mon Mar 18 08:01:41 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 08:01:41 GMT Subject: RFR: 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 12:59:24 GMT, Alexander Zvegintsev wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> jtreg tag update > > test/jdk/javax/swing/JSlider/bug6587742.java line 30: > >> 28: * @build PassFailJFrame >> 29: * @run main/manual bug6587742 >> 30: */ > > Can be moved to the bug6587742 class declaration for better readability There is a discussion going on for "where to put jtreg tags ?". Since there was no final conclusion, I left it as it was before the conversion. Updated now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18323#discussion_r1528019157 From abhiscxk at openjdk.org Mon Mar 18 08:16:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 08:16:27 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 07:43:18 GMT, Tejesh R wrote: > Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. > Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. test/jdk/javax/swing/border/Test4129681.java line 48: > 46: private static final Dimension SIZE = new Dimension(100, 40); > 47: private static final Point startPoint = new Point(8, 4); > 48: private static final Point endPoint = new Point(18, 14); I think all variables can be defined locally inside main. test/jdk/javax/swing/border/Test4129681.java line 55: > 53: int tolerance = 20; > 54: > 55: UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); Is the test exclusive for Metal Look And Feel or should it be checked in other LAFs as well? I think it may not work for Nimbus of GTK LAF as setting the property `UIManager.getDefaults().put("Label.disabledForeground", labelDisableColor);` may not work. test/jdk/javax/swing/border/Test4129681.java line 62: > 60: label.setSize(SIZE); > 61: label.setEnabled(false); > 62: BufferedImage image = new BufferedImage((int) Math.ceil(label.getWidth()), It can be - BufferedImage(label.getWidth(), label.getHeight(), TYPE_INT_RGB); Why Math.ceil is required ? test/jdk/javax/swing/border/Test4129681.java line 79: > 77: } > 78: > 79: if (((double)correctColoredPixels/totalPixels*100) <= tolerance) { fix spacing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528024716 PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528032073 PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528025999 PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528027557 From abhiscxk at openjdk.org Mon Mar 18 08:27:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 08:27:32 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 03:00:49 GMT, Alexander Zuev wrote: >> Converted to a main manual test. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Fixes based on review feedback test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 37: > 35: * @test > 36: * @bug 8007155 > 37: * @summary [macosx] Disabled panel takes mouse input in JLayeredPane Is the test exclusive for MacOS? test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 41: > 39: * @build PassFailJFrame > 40: * @run main/manual CursorOverlappedPanelsTest > 41: */ May add a blank line after this. test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 45: > 43: public static JFrame initialize() { > 44: final JFrame frame = new JFrame("Overlapping Panels Cursor Test"); > 45: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); redundant, can be removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1528053426 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1528052078 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1528050661 From abhiscxk at openjdk.org Mon Mar 18 08:32:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 08:32:27 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 23:02:58 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests test/jdk/javax/swing/JColorChooser/Test4887836.java line 36: > 34: * @summary Checks if no tooltip modification when no KeyStroke modifier > 35: * @run main/manual Test4887836 > 36: */ May add a blank line after this for better readability. test/jdk/javax/swing/JColorChooser/Test4887836.java line 54: > 52: } > 53: > 54: can be removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1528059759 PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1528060529 From abhiscxk at openjdk.org Mon Mar 18 08:37:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 08:37:27 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 23:02:58 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests test/jdk/javax/swing/JColorChooser/Test4887836.java line 57: > 55: private static JColorChooser createColorChooser() { > 56: JColorChooser chooser = new JColorChooser(Color.LIGHT_GRAY); > 57: UIManager.put("Label.font", new Font("Perpetua", 0, 36)); // NON-NLS: property and font names Can add comment above. Suggestion: // NON-NLS: property and font names UIManager.put("Label.font", new Font("Perpetua", 0, 36)); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1528068244 From psadhukhan at openjdk.org Mon Mar 18 08:44:26 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 08:44:26 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main [v3] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 07:36:55 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > jtreg manual tag update Marked as reviewed by psadhukhan (Reviewer). test/jdk/javax/swing/JSlider/bug6742358.java line 24: > 22: */ > 23: > 24: /* @test start @test at next line ------------- PR Review: https://git.openjdk.org/jdk/pull/18321#pullrequestreview-1942270311 PR Review Comment: https://git.openjdk.org/jdk/pull/18321#discussion_r1528079546 From psadhukhan at openjdk.org Mon Mar 18 08:54:30 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 08:54:30 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 11:30:53 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > jtreg manual tag update test/jdk/javax/swing/JSplitPane/bug8132123.java line 30: > 28: import javax.swing.JSplitPane; > 29: > 30: /* @test start @test at next line test/jdk/javax/swing/JSplitPane/bug8132123.java line 37: > 35: * @build PassFailJFrame > 36: * @run main/manual bug8132123 > 37: */ ALso, I know the current instruction doesn't specify that but should we run with -Dsun.java2d.uiScale=2.0 since it is supposed to be a hidpi test... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18325#discussion_r1528081758 PR Review Comment: https://git.openjdk.org/jdk/pull/18325#discussion_r1528094508 From tr at openjdk.org Mon Mar 18 09:19:34 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 09:19:34 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: On Thu, 14 Mar 2024 11:02:52 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) You mean to say the border of JEditorPane is 1 pixel thicker ? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003287567 From abhiscxk at openjdk.org Mon Mar 18 09:21:02 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 09:21:02 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main [v3] In-Reply-To: References: Message-ID: <7HFbDcncHLgKFUBmnrGUcgoYof-23Dj4qhTCaf2ZF-g=.0198f934-7808-457a-9991-06f92ed02811@github.com> > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18325/files - new: https://git.openjdk.org/jdk/pull/18325/files/cfac93ab..5456a5c7 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18325&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18325&range=01-02 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18325.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18325/head:pull/18325 PR: https://git.openjdk.org/jdk/pull/18325 From abhiscxk at openjdk.org Mon Mar 18 09:21:02 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 09:21:02 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 08:43:33 GMT, Prasanta Sadhukhan wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> jtreg manual tag update > > test/jdk/javax/swing/JSplitPane/bug8132123.java line 30: > >> 28: import javax.swing.JSplitPane; >> 29: >> 30: /* @test > > start @test at next line Updated. > test/jdk/javax/swing/JSplitPane/bug8132123.java line 37: > >> 35: * @build PassFailJFrame >> 36: * @run main/manual bug8132123 >> 37: */ > > ALso, I know the current instruction doesn't specify that but should we run with -Dsun.java2d.uiScale=2.0 since it is supposed to be a hidpi test... Yeah, updated now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18325#discussion_r1528150624 PR Review Comment: https://git.openjdk.org/jdk/pull/18325#discussion_r1528151708 From tr at openjdk.org Mon Mar 18 09:24:31 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 09:24:31 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 08:09:07 GMT, Abhishek Kumar wrote: > Is the test exclusive for Metal Look And Feel or should it be checked in other LAFs as well? I think it may not work for Nimbus of GTK LAF as setting the property `UIManager.getDefaults().put("Label.disabledForeground", labelDisableColor);` may not work. Yeah, because its difficult to verify it automatically for all L&F. And yeah you are right, it didn't work for Nimbus either. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528162083 From psadhukhan at openjdk.org Mon Mar 18 09:27:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 09:27:28 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: <9zdwvT5QVbv2Vw7zwTrU-LtotHnmkyagUEDgikirDWM=.1fc59ab5-21e7-43f4-bd83-6ecfe79e7cc2@github.com> On Mon, 18 Mar 2024 09:17:16 GMT, Tejesh R wrote: > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) > > You mean to say the border of JEditorPane is 1 pixel thicker ? it doesn't look exactly same subjectively... ![image](https://github.com/openjdk/jdk/assets/43534309/15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538) ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003314034 From abhiscxk at openjdk.org Mon Mar 18 09:35:37 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 09:35:37 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 09:22:02 GMT, Tejesh R wrote: > Yeah, because its difficult to verify it automatically for all L&F. Not really, this can be done. But if it is not required to check except Metal then it is ok. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528181286 From tr at openjdk.org Mon Mar 18 09:35:38 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 09:35:38 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: On Thu, 14 Mar 2024 11:02:52 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) > > > > > > You mean to say the border of JEditorPane is 1 pixel thicker ? > > it doesn't look exactly same subjectively... > > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003330021 From psadhukhan at openjdk.org Mon Mar 18 09:36:31 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 09:36:31 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main [v3] In-Reply-To: <7HFbDcncHLgKFUBmnrGUcgoYof-23Dj4qhTCaf2ZF-g=.0198f934-7808-457a-9991-06f92ed02811@github.com> References: <7HFbDcncHLgKFUBmnrGUcgoYof-23Dj4qhTCaf2ZF-g=.0198f934-7808-457a-9991-06f92ed02811@github.com> Message-ID: On Mon, 18 Mar 2024 09:21:02 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18325#pullrequestreview-1942408356 From tr at openjdk.org Mon Mar 18 09:38:29 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 09:38:29 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 09:32:37 GMT, Abhishek Kumar wrote: >>> Is the test exclusive for Metal Look And Feel or should it be checked in other LAFs as well? I think it may not work for Nimbus of GTK LAF as setting the property `UIManager.getDefaults().put("Label.disabledForeground", labelDisableColor);` may not work. >> >> Yeah, because its difficult to verify it automatically for all L&F. And yeah you are right, it didn't work for Nimbus either. > >> Yeah, because its difficult to verify it automatically for all L&F. > > Not really, this can be done. But if it is not required to check except Metal then it is ok. I meant the label position might vary slightly for different L&F, here I have hardcoded it for metal L&F...... Not sure it would remain same for all the L&F...... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528187092 From psadhukhan at openjdk.org Mon Mar 18 09:40:26 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 09:40:26 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> On Mon, 18 Mar 2024 09:32:42 GMT, Tejesh R wrote: > > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... > > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) > > > > > > > > > You mean to say the border of JEditorPane is 1 pixel thicker ? > > > > > > it doesn't look exactly same subjectively... > > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) > > Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different now in which case, probably the instructions should be amended accordingly...Let them verify once.. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003339203 From tr at openjdk.org Mon Mar 18 09:50:43 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 09:50:43 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v2] In-Reply-To: References: Message-ID: > Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. > Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18336/files - new: https://git.openjdk.org/jdk/pull/18336/files/2ab358db..cfb599ff Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=00-01 Stats: 22 lines in 1 file changed: 6 ins; 8 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18336.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18336/head:pull/18336 PR: https://git.openjdk.org/jdk/pull/18336 From tr at openjdk.org Mon Mar 18 09:50:43 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 09:50:43 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 08:04:36 GMT, Abhishek Kumar wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/border/Test4129681.java line 62: > >> 60: label.setSize(SIZE); >> 61: label.setEnabled(false); >> 62: BufferedImage image = new BufferedImage((int) Math.ceil(label.getWidth()), > > It can be - > BufferedImage(label.getWidth(), label.getHeight(), > TYPE_INT_RGB); > > Why Math.ceil is required ? Removed. > test/jdk/javax/swing/border/Test4129681.java line 79: > >> 77: } >> 78: >> 79: if (((double)correctColoredPixels/totalPixels*100) <= tolerance) { > > fix spacing. Done. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528218032 PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528217624 From psadhukhan at openjdk.org Mon Mar 18 09:51:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 09:51:28 GMT Subject: RFR: 8328300: Convert PrintDialogsTest.java from Applet to main program In-Reply-To: References: Message-ID: <_w1yg_VbWtBKL_8P4h-VdWqkWQFi9Vuhv1yY5BWiqMY=.96749489-32e4-4ba2-ae04-9d7debf4cee4@github.com> On Fri, 15 Mar 2024 21:20:04 GMT, Phil Race wrote: > This applet test is converted to a main program using PassFailJFrame. > Other than that, the main thing I improved is the instructions. Marked as reviewed by psadhukhan (Reviewer). test/jdk/java/awt/Modal/PrintDialogsTest/PrintDialogsTest.java line 58: > 56: (a) The dialog parent type. > 57: (b) The dialog modality type > 58: (c) The print dialog type (Print dialog or Page Setup dialog) Can we put a one line gap in the GUI between Dialog parent type options and next dialog modality type heading...Right now the type and the options of all 3 appear one after the other,,,maybe 1 line gap between each category would help ![image](https://github.com/openjdk/jdk/assets/43534309/a6c0f3f2-def3-4648-a13c-6e720bf6350c) ------------- PR Review: https://git.openjdk.org/jdk/pull/18333#pullrequestreview-1942457324 PR Review Comment: https://git.openjdk.org/jdk/pull/18333#discussion_r1528220823 From tr at openjdk.org Mon Mar 18 10:47:33 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 10:47:33 GMT Subject: RFR: 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main [v2] In-Reply-To: <11rpqXZBWd0vrxXUt5IhGY_b00GaVTcEwo93nILK4wI=.2a4820ff-d7e5-4f62-989a-bf39d670c145@github.com> References: <11rpqXZBWd0vrxXUt5IhGY_b00GaVTcEwo93nILK4wI=.2a4820ff-d7e5-4f62-989a-bf39d670c145@github.com> Message-ID: On Mon, 18 Mar 2024 08:01:41 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > jtreg tag update Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18323#pullrequestreview-1942590142 From ihse at openjdk.org Mon Mar 18 10:56:54 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Mon, 18 Mar 2024 10:56:54 GMT Subject: RFR: 8328177: Move LDFLAGS_JDK[LIB/EXE] to JdkNativeCompilation.gmk Message-ID: Similar to [JDK-8328157](https://bugs.openjdk.org/browse/JDK-8328157), we want to move the setting of LDFLAGS to LDFLAGS_JDK[LIB/EXE into SetupJdkLibrary and SetupJdkExecutable. ------------- Commit messages: - 8328177: Move LDFLAGS_JDK[LIB/EXE] to JdkNativeCompilation.gmk Changes: https://git.openjdk.org/jdk/pull/18343/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18343&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328177 Stats: 155 lines in 32 files changed: 29 ins; 99 del; 27 mod Patch: https://git.openjdk.org/jdk/pull/18343.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18343/head:pull/18343 PR: https://git.openjdk.org/jdk/pull/18343 From abhiscxk at openjdk.org Mon Mar 18 11:52:35 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 11:52:35 GMT Subject: Integrated: 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 07:29:53 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 86f17447 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/86f17447362483162a5983c270e0b530d8d99354 Stats: 332 lines in 3 files changed: 166 ins; 166 del; 0 mod 8328248: Convert javax/swing/JSlider/6587742/bug6587742.java applet test to main Reviewed-by: azvegint, tr ------------- PR: https://git.openjdk.org/jdk/pull/18323 From abhiscxk at openjdk.org Mon Mar 18 11:56:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 11:56:27 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 17:05:04 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment fix > > Please remove unused imports @honkar-jdk Please take a look. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18233#issuecomment-2003712693 From abhiscxk at openjdk.org Mon Mar 18 11:56:54 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 11:56:54 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main [v4] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: jtreg tag update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18321/files - new: https://git.openjdk.org/jdk/pull/18321/files/976964f0..bb95c4e9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=02-03 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18321.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18321/head:pull/18321 PR: https://git.openjdk.org/jdk/pull/18321 From abhiscxk at openjdk.org Mon Mar 18 11:57:26 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 11:57:26 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 09:36:02 GMT, Tejesh R wrote: >>> Yeah, because its difficult to verify it automatically for all L&F. >> >> Not really, this can be done. But if it is not required to check except Metal then it is ok. > > I meant the label position might vary slightly for different L&F, here I have hardcoded it for metal L&F...... Not sure it would remain same for all the L&F...... Since you are painting to buffered image, I don't think it should matter. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528406112 From abhiscxk at openjdk.org Mon Mar 18 12:03:30 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 12:03:30 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 09:50:43 GMT, Tejesh R wrote: >> Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. >> Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates test/jdk/javax/swing/border/Test4129681.java line 77: > 75: } > 76: > 77: if (((double)correctColoredPixels / totalPixels * 100) <= tolerance) { Minor: Suggestion: if (((double) correctColoredPixels / totalPixels * 100) <= tolerance) { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1528412319 From abhiscxk at openjdk.org Mon Mar 18 12:09:26 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 12:09:26 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 05:21:03 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18217#pullrequestreview-1942774121 From abhiscxk at openjdk.org Mon Mar 18 12:14:29 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 12:14:29 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 16:13:54 GMT, Damon Nguyen wrote: >> Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review comments test/jdk/java/awt/im/JTextFieldTest.java line 71: > 69: frame.getContentPane().add(tf1); > 70: frame.getContentPane().add(tf2); > 71: frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); Redundat, can be removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1528428015 From abhiscxk at openjdk.org Mon Mar 18 12:20:28 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 12:20:28 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:39:15 GMT, Tejesh R wrote: > Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. Marked as reviewed by abhiscxk (Committer). test/jdk/sun/java2d/loops/CopyAreaSpeed.java line 52: > 50: "of copyArea calls to be completed. Because the performance ", > 51: "measurement is relative, this code only provides a benchmark ", > 52: "to run with different releases to compare the outcomes." Bit of clean-up, double-quotes can be removed. ------------- PR Review: https://git.openjdk.org/jdk/pull/18296#pullrequestreview-1942798677 PR Review Comment: https://git.openjdk.org/jdk/pull/18296#discussion_r1528434348 From abhiscxk at openjdk.org Mon Mar 18 12:28:30 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Mon, 18 Mar 2024 12:28:30 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 22:34:10 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar 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 10 additional commits since the last revision: > > - used PassFailJFrame.logArea() > - Merge branch 'master' into WheelRotation_8328190 > - ordering of imports > - whitespace removed > - default timeout used > - @requires tag > - title change > - converted test to main > - delete .html file > - moved test file test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 55: > 53: > 54: public static void main (String[] args) throws Exception { > 55: PassFailJFrame.builder() OS check can be added. https://github.com/openjdk/jdk/pull/18233#discussion_r1525227378 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1528444067 From tr at openjdk.org Mon Mar 18 13:29:37 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 13:29:37 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v3] In-Reply-To: References: Message-ID: <7mXA4yB1IQMruvOFP2-u6IIiYPDX-wW8nnTIScNuqPQ=.75f7794c-27f6-4759-b3a2-ff65fbf367b8@github.com> > Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. > Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18336/files - new: https://git.openjdk.org/jdk/pull/18336/files/cfb599ff..029be55c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18336.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18336/head:pull/18336 PR: https://git.openjdk.org/jdk/pull/18336 From psadhukhan at openjdk.org Mon Mar 18 13:30:29 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 13:30:29 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> Message-ID: <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> On Mon, 18 Mar 2024 09:37:23 GMT, Prasanta Sadhukhan wrote: > > > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... > > > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) > > > > > > > > > > > > You mean to say the border of JEditorPane is 1 pixel thicker ? > > > > > > > > > it doesn't look exactly same subjectively... > > > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) > > > > > > Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? > > I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different now in which case, probably the instructions should be amended accordingly...Let them verify once.. or maybe run the test with uiScale 1.0 as I believe the golden images are generated without any scaling and windows has default 1.25/1.5 scaling ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003905130 From tr at openjdk.org Mon Mar 18 13:36:27 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 18 Mar 2024 13:36:27 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> Message-ID: On Mon, 18 Mar 2024 13:27:56 GMT, Prasanta Sadhukhan wrote: >>> > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... >>> > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) >>> > > >>> > > >>> > > You mean to say the border of JEditorPane is 1 pixel thicker ? >>> > >>> > >>> > it doesn't look exactly same subjectively... >>> > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) >>> >>> Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? >> >> I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different now in which case... > >> > > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... >> > > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) >> > > > >> > > > >> > > > You mean to say the border of JEditorPane is 1 pixel thicker ? >> > > >> > > >> > > it doesn't look exactly same subjectively... >> > > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) >> > >> > >> > Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? >> >> I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different n... @prsadhuk With scaling 1.0 it'll appear this way. I think it's supposed to be 1.0 scaling and its looking similar now. ![image](https://github.com/openjdk/jdk/assets/94159358/92e4358b-651d-43d9-bdc8-cb4a44aa021c) ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2003914767 From psadhukhan at openjdk.org Mon Mar 18 14:09:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 18 Mar 2024 14:09:28 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> Message-ID: On Mon, 18 Mar 2024 13:27:56 GMT, Prasanta Sadhukhan wrote: >>> > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... >>> > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) >>> > > >>> > > >>> > > You mean to say the border of JEditorPane is 1 pixel thicker ? >>> > >>> > >>> > it doesn't look exactly same subjectively... >>> > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) >>> >>> Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? >> >> I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different now in which case... > >> > > > > I am not sure but to me the images dont seem to match in windows11..it seems JEditorPane image is 1 pixel thicker than golden images...in which case, it needs to be problemlisted Also, I guess this has potential of making it automated by loading the golden images and JEditorPane in BufferedImage and then compare... >> > > > > ![image](https://private-user-images.githubusercontent.com/43534309/313576442-c9b84f20-5b0c-44f2-a9a8-c5568d1b0ef4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTM2MTEsIm5iZiI6MTcxMDc1MzMxMSwicGF0aCI6Ii80MzUzNDMwOS8zMTM1NzY0NDItYzliODRmMjAtNWIwYy00NGYyLWE5YTgtYzU1NjhkMWIwZWY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NjJmNzRmMzBjMzUyMzUxOWRiODBmZGJmNGU5Zjc4NThmMTUwZjc4NWJkN2NhYWI0ZmE4YWJkYmZkYTg3YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c3EEHxT_VGBlWLLQkH4xIdbcXBBuvpYoNW3KQfZNgAw) >> > > > >> > > > >> > > > You mean to say the border of JEditorPane is 1 pixel thicker ? >> > > >> > > >> > > it doesn't look exactly same subjectively... >> > > ![image](https://private-user-images.githubusercontent.com/43534309/313618601-15dcdcab-fdf4-4bf4-8ef8-7c0689d6b538.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NTQyNDIsIm5iZiI6MTcxMDc1Mzk0MiwicGF0aCI6Ii80MzUzNDMwOS8zMTM2MTg2MDEtMTVkY2RjYWItZmRmNC00YmY0LThlZjgtN2MwNjg5ZDZiNTM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDA5MjU0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU3NmZmMGZhNDUyYzM2Y2UyNGExN2QyZjFiNjljZDljMTE2NDdiMmM4NzIwYzgzOTdjYWJmZGY5ZDdjOTkwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d_TI9VegwGDfOcO0zHhgHhxtOHRiTZudNBS0IXIIGhI) >> > >> > >> > Yeah, but in instructions they say it should look similar, so wasn't sure whether to problem list or proceed with conversion. You think we should problem list? >> >> I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different n... > @prsadhuk With scaling 1.0 it'll appear this way. I think it's supposed to be 1.0 scaling and its looking similar now. ![image](https://private-user-images.githubusercontent.com/94159358/313696311-92e4358b-651d-43d9-bdc8-cb4a44aa021c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NzA5MjMsIm5iZiI6MTcxMDc3MDYyMywicGF0aCI6Ii85NDE1OTM1OC8zMTM2OTYzMTEtOTJlNDM1OGItNjUxZC00M2Q5LWJkYzgtY2I0YTQ0YWEwMjFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDE0MDM0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0NTcyZGE3NTBlOWFhY2YxYzk3NWNjZjc4ZDliNmJlZDE5ZWZhMDA3NTc2ZDliYjJmOGJmOTEwOTdlY2M1YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sSwTFVLibyG4g0u0xl92qA8fS5zU08-CP_6UICqH6Ds) I am not sure..it still seems 1.25 bigger than golden image..."similar" word has different connotation and is very subjective....is it intentional that "same" was not mentioned? What if we say, Earth and Mars are similar as they are planets... ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2004016674 From azvegint at openjdk.org Mon Mar 18 14:51:28 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 14:51:28 GMT Subject: RFR: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main [v2] In-Reply-To: References: Message-ID: <7M3UUufwySry70nSSRRPgCZ7UTUeFnOf3WTCpKaLmpA=.18e709e2-5f0b-4f4a-a8cf-4355fa8c05eb@github.com> On Wed, 13 Mar 2024 17:28:41 GMT, Harshitha Onkar wrote: >> The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. >> >> - test renamed to PinyinIMCapsTest >> - moved one directory above - /java/awt/im/ >> - html file deleted. >> >> PS: I tried to automate this test using Robot, but was unable to produce the same effect as a keyboard keypress for Pinyin, hence keep it as a manual test. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instructions updated Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18245#pullrequestreview-1943311364 From clanger at openjdk.org Mon Mar 18 15:11:29 2024 From: clanger at openjdk.org (Christoph Langer) Date: Mon, 18 Mar 2024 15:11:29 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 11:39:05 GMT, Christoph Langer wrote: > > > I added it to our testing. Results early next week. > > > > > > @RealCLanger Thank you. I'm more interested in the failing case. How reliable does the test reproduce the problem? > > Yes, it's running in 21 and 22 as well, so we'll see what happens there. We got the following, once in jdk21u and once in jdk21u-dev on macintelx64 through the weekend: > 2024-03-16 05:55:37.407 java[3056:1287194577] XType: Using static font registry. > 2024-03-16 05:55:38.047 java[3056:1287194577] name is : .SFNS-Regular > 2024-03-16 05:55:38.047 java[3056:1287194577] family is : .AppleSystemUIFont > 2024-03-16 05:55:38.047 java[3056:1287194577] name is : .SFNS-Bold > 2024-03-16 05:55:38.047 java[3056:1287194577] family is : .AppleSystemUIFont > 2024-03-16 05:55:38.616 java[3056:1287194577] nsFont-name is : .AppleSystemUIFont > 2024-03-16 05:55:38.616 java[3056:1287194577] nsFont-family is : .AppleSystemUIFont > 2024-03-16 05:55:38.616 java[3056:1287194577] nsFont-desc-name is : .SFNS-Regular > 2024-03-16 05:55:38.616 java[3056:1287194577] nsFont-name is : .AppleSystemUIFont > 2024-03-16 05:55:38.617 java[3056:1287194577] nsFont-family is : .AppleSystemUIFontBold > 2024-03-16 05:55:38.617 java[3056:1287194577] nsFont-desc-name is : .SFNS-Bold > 2024-03-16 05:55:38.629 java[3056:1287194577] nsFont-name is : .AppleSystemUIFont > 2024-03-16 05:55:38.629 java[3056:1287194577] nsFont-family is : .AppleSystemUIFont > 2024-03-16 05:55:38.629 java[3056:1287194577] nsFont-desc-name is : .SFNS-Regular > 2024-03-16 05:55:38.629 java[3056:1287194577] nsFont-name is : .AppleSystemUIFont > 2024-03-16 05:55:38.629 java[3056:1287194577] nsFont-family is : .AppleSystemUIFontBold > 2024-03-16 05:55:38.629 java[3056:1287194577] nsFont-desc-name is : .SFNS-Bold > Exception in Basic L&F File Loading Thread: class java.util.ConcurrentModificationException > java.util.ConcurrentModificationException > at java.base/java.util.AbstractList$SubList.checkForComodification(AbstractList.java:906) > at java.base/java.util.AbstractList$SubList.size(AbstractList.java:792) > at java.base/java.util.AbstractCollection.toArray(AbstractCollection.java:143) > at java.base/java.util.Collections$SynchronizedCollection.toArray(Collections.java:2310) > at java.base/java.util.Vector.(Vector.java:182) > at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader$1.call(BasicDirectoryModel.java:365) > at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader$1.call(BasicDirectoryModel.java:342) > at java.desktop/sun.awt.shell.ShellFolderManager$DirectInvoker.invoke(ShellFolderManager.java:148) > at java.desktop/sun.awt.shell.ShellFolder.invoke(ShellFolder.java:532) > at java.desktop/sun.awt.shell.ShellFolder.invoke(ShellFolder.java:518) > at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run0(BasicDirectoryModel.java:342) > at java.desktop/javax.swing.plaf.basic.BasicDirectoryModel$FilesLoader.run(BasicDirectoryModel.java:295) > at java.base/java.lang.Thread.run(Thread.java:1583) So it seems to work that the test can reproduce the issue. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-2004174197 From azvegint at openjdk.org Mon Mar 18 15:44:32 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 15:44:32 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: References: Message-ID: <5MG7j4Aphi1BnlAYJYXtR5nLkwQDM66c8dqMXpmnoW4=.51875b0f-7adb-4eb6-8951-5338bd0727ff@github.com> On Mon, 18 Mar 2024 12:25:24 GMT, Abhishek Kumar wrote: >> Harshitha Onkar 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 10 additional commits since the last revision: >> >> - used PassFailJFrame.logArea() >> - Merge branch 'master' into WheelRotation_8328190 >> - ordering of imports >> - whitespace removed >> - default timeout used >> - @requires tag >> - title change >> - converted test to main >> - delete .html file >> - moved test file > > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 55: > >> 53: >> 54: public static void main (String[] args) throws Exception { >> 55: PassFailJFrame.builder() > > OS check can be added. https://github.com/openjdk/jdk/pull/18233#discussion_r1525227378 It can be added, but I see no reason to do so. It may be helpful for tests that can be run standalone (that don't respect the jtreg tags and depend on some other jtreg libraries), but for this one the only easy way to run it is through jtreg, so the `@requires (os.family == "windows")` is sufficient. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1528802959 From azvegint at openjdk.org Mon Mar 18 15:57:35 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 15:57:35 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 22:34:10 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar 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 10 additional commits since the last revision: > > - used PassFailJFrame.logArea() > - Merge branch 'master' into WheelRotation_8328190 > - ordering of imports > - whitespace removed > - default timeout used > - @requires tag > - title change > - converted test to main > - delete .html file > - moved test file Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18312#pullrequestreview-1943521440 From ihse at openjdk.org Mon Mar 18 15:57:55 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Mon, 18 Mar 2024 15:57:55 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v50] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Sun, 21 Jan 2024 07:58:11 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 84 commits: > > - Merge branch 'openjdk:master' into patch-10 > - awt_Window.cpp > - awt_Frame.cpp > - awt_Component.cpp > - awt_Canvas.cpp > - Merge branch 'openjdk:master' into patch-10 > - Merge branch 'openjdk:master' into patch-10 > - Fix awt_Window.cpp > - Fix awt_PrintJob.cpp > - -Zc:stringStrings no longer needed with -permissive- flags-cflags.m4 > - ... and 74 more: https://git.openjdk.org/jdk/compare/a474b372...0f34608b bot-keep-alive @TheShermanTanker Did you understand the remaining changes that Phil has requested? Do you think you'll be able to fix this? ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2004305924 From honkar at openjdk.org Mon Mar 18 16:58:32 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 16:58:32 GMT Subject: Integrated: JDK-8328000 : Convert /java/awt/im/8154816/bug8154816.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 18:20:14 GMT, Harshitha Onkar wrote: > The following InputMethod test, bug8154816.java is converted to main using PassFailJFrame. > > - test renamed to PinyinIMCapsTest > - moved one directory above - /java/awt/im/ > - html file deleted. > > PS: I tried to automate this test using Robot, but was unable to produce the same effect as a keyboard keypress for Pinyin, hence keep it as a manual test. This pull request has now been integrated. Changeset: fc0472ba Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/fc0472baf9bad298e853bf2ca3d10dc9415272cd Stats: 168 lines in 3 files changed: 82 ins; 86 del; 0 mod 8328000: Convert /java/awt/im/8154816/bug8154816.java applet test to main Reviewed-by: tr, azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18245 From honkar at openjdk.org Mon Mar 18 17:27:43 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 17:27:43 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: minor changes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/a2b9b95a..0299e8e2 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=02-03 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Mon Mar 18 17:30:29 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 17:30:29 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: <5MG7j4Aphi1BnlAYJYXtR5nLkwQDM66c8dqMXpmnoW4=.51875b0f-7adb-4eb6-8951-5338bd0727ff@github.com> References: <5MG7j4Aphi1BnlAYJYXtR5nLkwQDM66c8dqMXpmnoW4=.51875b0f-7adb-4eb6-8951-5338bd0727ff@github.com> Message-ID: <-76l48ZU_OawRCTXD7RyqR47QuC6WFZHpABRMf8PFyY=.6db9668d-df49-4412-b44b-d10d2ad845e3@github.com> On Mon, 18 Mar 2024 15:39:52 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 55: >> >>> 53: >>> 54: public static void main (String[] args) throws Exception { >>> 55: PassFailJFrame.builder() >> >> OS check can be added. https://github.com/openjdk/jdk/pull/18233#discussion_r1525227378 > > It can be added, but I see no reason to do so. > > It may be helpful for tests that can be run standalone (that don't respect the jtreg tags and depend on some other jtreg libraries), but for this one the only easy way to run it is through jtreg, so the `@requires (os.family == "windows")` is sufficient. I agree with @azvegint, since it has @requires check in jtreg and the test will mainly be run using jtreg framework , the OS check is not strictly required. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1528977895 From honkar at openjdk.org Mon Mar 18 17:33:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 17:33:28 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 17:59:04 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JToggleButton/bug4128979.java line 69: >> >>> 67: >>> 68: public static void main(String[] args) throws Exception { >>> 69: UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); >> >> As the test is for Windows only it is good to have OS check along with the `@requires (os.family == "windows")` and throw skipped exception otherwise. >> >> Since it is followed by setting `WindowsClassicLookAndFeel` all the more reason to include this check. >> >> Suggestion: >> >> if (OSInfo.getOSType() != OSInfo.OSType.WINDOWS) { >> throw new SkippedException("This test is for Windows only"); >> } >> UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); > > Updated. You can remove the OS check here if you would like to, since it is not strictly required when run as jtreg test (which is essentially the case here). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1528981229 From dnguyen at openjdk.org Mon Mar 18 17:39:39 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 17:39:39 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main Message-ID: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame ------------- Commit messages: - Move test out. Remove extra directory - Resize instructions - Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18354/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328368 Stats: 391 lines in 3 files changed: 184 ins; 207 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18354.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18354/head:pull/18354 PR: https://git.openjdk.org/jdk/pull/18354 From dnguyen at openjdk.org Mon Mar 18 17:40:03 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 17:40:03 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Remove reundant window constant ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18247/files - new: https://git.openjdk.org/jdk/pull/18247/files/e5f694ef..c27b6139 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=02-03 Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18247.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18247/head:pull/18247 PR: https://git.openjdk.org/jdk/pull/18247 From dnguyen at openjdk.org Mon Mar 18 17:40:03 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 17:40:03 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v3] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 12:11:48 GMT, Abhishek Kumar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comments > > test/jdk/java/awt/im/JTextFieldTest.java line 71: > >> 69: frame.getContentPane().add(tf1); >> 70: frame.getContentPane().add(tf2); >> 71: frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); > > frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); > Redundat, can be removed. Removed. Thanks! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1528989275 From kizune at openjdk.org Mon Mar 18 17:40:42 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 17:40:42 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main Message-ID: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Convert test to manual main Move test to the Component folder ------------- Commit messages: - 8328367: Convert java/awt/Component/UpdatingBootTime test to main Changes: https://git.openjdk.org/jdk/pull/18355/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18355&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328367 Stats: 361 lines in 3 files changed: 96 ins; 265 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18355.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18355/head:pull/18355 PR: https://git.openjdk.org/jdk/pull/18355 From kizune at openjdk.org Mon Mar 18 17:45:02 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 17:45:02 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v3] In-Reply-To: References: Message-ID: > Converted to a main manual test. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Additional fixes based on review ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18331/files - new: https://git.openjdk.org/jdk/pull/18331/files/c94a124e..72e6bcb9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18331&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18331&range=01-02 Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18331.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18331/head:pull/18331 PR: https://git.openjdk.org/jdk/pull/18331 From kizune at openjdk.org Mon Mar 18 17:45:03 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 17:45:03 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 08:24:31 GMT, Abhishek Kumar wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Fixes based on review feedback > > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 37: > >> 35: * @test >> 36: * @bug 8007155 >> 37: * @summary [macosx] Disabled panel takes mouse input in JLayeredPane > > Is the test exclusive for MacOS? No, the bug was found on MacOS but the test is valid for all operating systems. > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 41: > >> 39: * @build PassFailJFrame >> 40: * @run main/manual CursorOverlappedPanelsTest >> 41: */ > > May add a blank line after this. Ok > test/jdk/java/awt/Cursor/CursorOverlappedPanelsTest.java line 45: > >> 43: public static JFrame initialize() { >> 44: final JFrame frame = new JFrame("Overlapping Panels Cursor Test"); >> 45: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); redundant, can be removed. Ok ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1528995686 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1528995917 PR Review Comment: https://git.openjdk.org/jdk/pull/18331#discussion_r1528996362 From honkar at openjdk.org Mon Mar 18 17:51:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 17:51:26 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main In-Reply-To: <7gn73bmbH0pkfkIHn2DYdwVXpNoZ2dgxRwbMyRxUz9E=.d2f822c9-6c6a-4d68-8c54-f1087d71144d@github.com> References: <7gn73bmbH0pkfkIHn2DYdwVXpNoZ2dgxRwbMyRxUz9E=.d2f822c9-6c6a-4d68-8c54-f1087d71144d@github.com> Message-ID: On Mon, 18 Mar 2024 06:04:49 GMT, Prasanta Sadhukhan wrote: >> test/jdk/ProblemList.txt line 788: >> >>> 786: java/awt/xembed/server/TestXEmbedServerJava.java 8001150,8004031 generic-all >>> 787: java/awt/Modal/PrintDialogsTest/PrintDialogsTest.java 8068378 generic-all >>> 788: java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.java 8080185 macosx-all,linux-all >> >> @prsadhuk While looking into the test history I noticed you had previous worked on it PR https://github.com/openjdk/jdk/pull/3406, it wasn't integrated though. Any thoughts whether to make this test windows-only or extend the test to other platforms ? >> >> Your previous PR description sounds correct, when I went through the related test bugs it seemed like the test was created for windows-only issue. > > The reason it was not integrated was because of this [comment](https://github.com/openjdk/jdk/pull/3406#pullrequestreview-632106612) wherein it was mentioned to update the test to run without MSOutlook dependancy so that it could be run on all platforms so making it not platform dependant.. @prsadhuk Since the test still retains the MS Outlook requirement in instructions, should we make the test windows-only then ? Because having a combination of `@requires (os.family == "windows")` and problem-listing on macOS and linux seems contradicting. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18335#discussion_r1529005890 From honkar at openjdk.org Mon Mar 18 18:03:39 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 18:03:39 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v2] In-Reply-To: References: Message-ID: > Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. > > This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. > > Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: OS check removed ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18335/files - new: https://git.openjdk.org/jdk/pull/18335/files/0a7745fe..f586cc64 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18335&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18335&range=00-01 Stats: 11 lines in 1 file changed: 0 ins; 8 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18335.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18335/head:pull/18335 PR: https://git.openjdk.org/jdk/pull/18335 From kizune at openjdk.org Mon Mar 18 18:03:45 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 18:03:45 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main Message-ID: Convert test to manual main and move from the dedicated folder Remove old files ------------- Commit messages: - 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main Changes: https://git.openjdk.org/jdk/pull/18357/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328377 Stats: 363 lines in 3 files changed: 98 ins; 265 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18357.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18357/head:pull/18357 PR: https://git.openjdk.org/jdk/pull/18357 From kizune at openjdk.org Mon Mar 18 18:20:37 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 18:20:37 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main Message-ID: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Convert test to main manual and move to the appropriate folder Remove old files ------------- Commit messages: - 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main Changes: https://git.openjdk.org/jdk/pull/18358/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18358&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328378 Stats: 218 lines in 3 files changed: 89 ins; 129 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18358.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18358/head:pull/18358 PR: https://git.openjdk.org/jdk/pull/18358 From azvegint at openjdk.org Mon Mar 18 18:23:27 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 18:23:27 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 06:40:36 GMT, Damon Nguyen wrote: >> Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Remove unneeded Global var. Review comments test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 42: > 40: // static boolean testPassed = false; > 41: // static Thread mainThread = null; > 42: //} Shouldn't this be removed? test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 74: > 72: if (mainThread != null) { > 73: mainThread.interrupt(); > 74: } It is still unclear why we still need this. It seems to be a remnant of the old TestDialog machinery. test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 122: > 120: > 121: public void componentShown(ComponentEvent e) > 122: { Suggestion: public void componentShown(ComponentEvent e) { for the consistency with other code ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529039239 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529038235 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529044141 From honkar at openjdk.org Mon Mar 18 18:36:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 18:36:28 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v2] In-Reply-To: <7gn73bmbH0pkfkIHn2DYdwVXpNoZ2dgxRwbMyRxUz9E=.d2f822c9-6c6a-4d68-8c54-f1087d71144d@github.com> References: <7gn73bmbH0pkfkIHn2DYdwVXpNoZ2dgxRwbMyRxUz9E=.d2f822c9-6c6a-4d68-8c54-f1087d71144d@github.com> Message-ID: <_-u_Wh-X-AUrhMkJ7DOsy8_4V2ndpNej7kHJxNNFM0Y=.c5c82ac9-2c75-4812-a0c2-7c77d1376b2e@github.com> On Mon, 18 Mar 2024 06:04:49 GMT, Prasanta Sadhukhan wrote: >> test/jdk/ProblemList.txt line 788: >> >>> 786: java/awt/xembed/server/TestXEmbedServerJava.java 8001150,8004031 generic-all >>> 787: java/awt/Modal/PrintDialogsTest/PrintDialogsTest.java 8068378 generic-all >>> 788: java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.java 8080185 macosx-all,linux-all >> >> @prsadhuk While looking into the test history I noticed you had previous worked on it PR https://github.com/openjdk/jdk/pull/3406, it wasn't integrated though. Any thoughts whether to make this test windows-only or extend the test to other platforms ? >> >> Your previous PR description sounds correct, when I went through the related test bugs it seemed like the test was created for windows-only issue. > > The reason it was not integrated was because of this [comment](https://github.com/openjdk/jdk/pull/3406#pullrequestreview-632106612) wherein it was mentioned to update the test to run without MSOutlook dependancy so that it could be run on all platforms so making it not platform dependant.. @prsadhuk When I read it for the 2nd time it makes sense why the @requires check was added. Since it is a manual test there is no way of knowing it has been problem-listed on macOS & linux unless someone explicitly checks the problemlist before running the test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18335#discussion_r1529061835 From dnguyen at openjdk.org Mon Mar 18 18:37:37 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 18:37:37 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Review changes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18307/files - new: https://git.openjdk.org/jdk/pull/18307/files/fb3d566e..5155ccfc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=01-02 Stats: 12 lines in 1 file changed: 0 ins; 11 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18307.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18307/head:pull/18307 PR: https://git.openjdk.org/jdk/pull/18307 From azvegint at openjdk.org Mon Mar 18 18:37:37 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 18:37:37 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v3] In-Reply-To: References: Message-ID: <4egUwPwq2ivWAMjbI-q2Hy3UX3U-OxxDADN7C1v1eZM=.8718315f-6d6b-4d8f-85f6-20475a5fa061@github.com> On Mon, 18 Mar 2024 18:35:23 GMT, Damon Nguyen wrote: >> Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review changes Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18307#pullrequestreview-1943885059 From dnguyen at openjdk.org Mon Mar 18 18:37:39 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 18:37:39 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v3] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 05:06:23 GMT, Alexander Zvegintsev wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review changes > > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 67: > >> 65: .rows(15) >> 66: .columns(40) >> 67: .testUI(new MemoryLeak()) > > It currently creates the MemoryLeak(aka Frame) on the main thread, instead of EDT. > > Suggestion: > > .testUI(MemoryLeak::new) Completely missed this. Thanks! > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 77: > >> 75: Thread.sleep(300000); >> 76: } catch (InterruptedException e) { >> 77: if (!Globals.testPassed) { > > It looks like `Globals.testPassed` is never changed, so the test will always fail. > Shouldn't this be controlled by the PassFailJFrame Pass/Fail buttons? Good point. Removed ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529062753 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529062212 From dnguyen at openjdk.org Mon Mar 18 18:37:39 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 18:37:39 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 18:16:52 GMT, Alexander Zvegintsev wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove unneeded Global var. Review comments > > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 42: > >> 40: // static boolean testPassed = false; >> 41: // static Thread mainThread = null; >> 42: //} > > Shouldn't this be removed? Thanks! Missed this when testing the behavior of the change. > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 74: > >> 72: if (mainThread != null) { >> 73: mainThread.interrupt(); >> 74: } > > It is still unclear why we still need this. It seems to be a remnant of the old TestDialog machinery. I initially thought this may be needed, but looks like you're right. Removed, thanks for the help! > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 122: > >> 120: >> 121: public void componentShown(ComponentEvent e) >> 122: { > > Suggestion: > > public void componentShown(ComponentEvent e) { > > for the consistency with other code Thanks! ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529061170 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529061895 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1529060923 From honkar at openjdk.org Mon Mar 18 18:42:30 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 18:42:30 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v3] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:45:02 GMT, Alexander Zuev wrote: >> Converted to a main manual test. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Additional fixes based on review LGTM ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18331#pullrequestreview-1943895993 From achung at openjdk.org Mon Mar 18 19:57:51 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 18 Mar 2024 19:57:51 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v2] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: remove middle copyright year, update spacings and jtreg summary ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18316/files - new: https://git.openjdk.org/jdk/pull/18316/files/b5b6e0c1..9652def1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=00-01 Stats: 8 lines in 1 file changed: 3 ins; 1 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18316.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18316/head:pull/18316 PR: https://git.openjdk.org/jdk/pull/18316 From achung at openjdk.org Mon Mar 18 19:57:51 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 18 Mar 2024 19:57:51 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 00:41:21 GMT, Harshitha Onkar wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> remove middle copyright year, update spacings and jtreg summary > > test/jdk/javax/swing/JColorChooser/Test4887836.java line 41: > >> 39: public static void main(String[] args) throws Exception { >> 40: String instructions = "If you do not see white area under the \"Swatches\" tab,\n" + >> 41: "then test passed, otherwise it failed."; > > The original instructions seem a bit vague and the test window has a lot going on so probably more details here would add clarity. The original test [JDK-4887836](https://bugs.openjdk.org/browse/JDK-4887836) is quite vague so I'm not sure how to add more details other than "white area under 'Swatches' tab" ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1529184482 From achung at openjdk.org Mon Mar 18 20:00:33 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 18 Mar 2024 20:00:33 GMT Subject: Integrated: 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." In-Reply-To: References: Message-ID: On Fri, 1 Mar 2024 22:49:25 GMT, Alisen Chung wrote: > Introduce delays in test to stabilize. Test passes 50x after fix. This pull request has now been integrated. Changeset: 3f2e849c Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/3f2e849c54c2a9c55e3b5c9f5a6d3478b83144e3 Stats: 44 lines in 2 files changed: 29 ins; 13 del; 2 mod 8280392: java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.java failed with "RuntimeException: Test failed." Reviewed-by: tr, aivanov, prr ------------- PR: https://git.openjdk.org/jdk/pull/18091 From achung at openjdk.org Mon Mar 18 20:12:49 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 18 Mar 2024 20:12:49 GMT Subject: RFR: 8328380: Remove applet usage from JColorChooser tests Test6348456 Message-ID: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> Removing applet usage from manual JColorChooser tests ------------- Commit messages: - remove html - init commit Changes: https://git.openjdk.org/jdk/pull/18359/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18359&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328380 Stats: 86 lines in 2 files changed: 32 ins; 42 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/18359.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18359/head:pull/18359 PR: https://git.openjdk.org/jdk/pull/18359 From kizune at openjdk.org Mon Mar 18 20:42:33 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 20:42:33 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main Message-ID: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> Convert test to a main based; Move test to an appropriate folder; Remove old files; ------------- Commit messages: - Reorganize imports. - 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main Changes: https://git.openjdk.org/jdk/pull/18360/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18360&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328382 Stats: 224 lines in 3 files changed: 93 ins; 131 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18360.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18360/head:pull/18360 PR: https://git.openjdk.org/jdk/pull/18360 From kizune at openjdk.org Mon Mar 18 21:12:39 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 21:12:39 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main Message-ID: Convert test to main manual; Move test to appropriate folder; Delete old files; ------------- Commit messages: - Reorganize imports. - 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main Changes: https://git.openjdk.org/jdk/pull/18361/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328384 Stats: 364 lines in 3 files changed: 82 ins; 282 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18361.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18361/head:pull/18361 PR: https://git.openjdk.org/jdk/pull/18361 From honkar at openjdk.org Mon Mar 18 21:16:11 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 18 Mar 2024 21:16:11 GMT Subject: RFR: JDK-8328379 : Convert URLDragTest.html applet test to main Message-ID: Following test - test/jdk/java/awt/dnd/URLDragTest/URLDragTest.html is converted from applet to main using PassFailJFrame. PassFailJFrame's `logArea()` is used for logging messages. ------------- Commit messages: - test changes: applet to main - html file deleted - test moved Changes: https://git.openjdk.org/jdk/pull/18364/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18364&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328379 Stats: 227 lines in 3 files changed: 94 ins; 133 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18364.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18364/head:pull/18364 PR: https://git.openjdk.org/jdk/pull/18364 From kizune at openjdk.org Mon Mar 18 21:16:17 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 18 Mar 2024 21:16:17 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main Message-ID: Convert test to a main method based; Move test to an apropriate location; Remove old files; ------------- Commit messages: - 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main Changes: https://git.openjdk.org/jdk/pull/18363/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328385 Stats: 428 lines in 3 files changed: 139 ins; 289 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18363.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18363/head:pull/18363 PR: https://git.openjdk.org/jdk/pull/18363 From dnguyen at openjdk.org Mon Mar 18 21:15:57 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 18 Mar 2024 21:15:57 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main Message-ID: Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. ------------- Commit messages: - Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18362/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328370 Stats: 303 lines in 3 files changed: 132 ins; 171 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18362.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18362/head:pull/18362 PR: https://git.openjdk.org/jdk/pull/18362 From azvegint at openjdk.org Mon Mar 18 21:19:40 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 21:19:40 GMT Subject: RFR: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main Message-ID: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> The test is converted to main and remains in the problem list, as the problem is still valid on Linux and macos. The test passes on Windows. * sleeps on EDT removed, replaced with the Swing timer * Unnecessary ltemListener and variables removed. * Updated instructions with html for better readability * small log improvements * log area from PassFailJFrame used ------------- Commit messages: - trailing spaces - Get rid of unnecessary ItemListener - instructions update - improve state logging - switch to logArea - do not call sleep on EDT - initial Changes: https://git.openjdk.org/jdk/pull/18366/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18366&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328387 Stats: 672 lines in 3 files changed: 220 ins; 399 del; 53 mod Patch: https://git.openjdk.org/jdk/pull/18366.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18366/head:pull/18366 PR: https://git.openjdk.org/jdk/pull/18366 From azvegint at openjdk.org Mon Mar 18 23:52:37 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 18 Mar 2024 23:52:37 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated Message-ID: The test converted to automated, CI and manual testing looks good on all platforms. ------------- Commit messages: - 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated Changes: https://git.openjdk.org/jdk/pull/18367/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18367&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328401 Stats: 244 lines in 2 files changed: 18 ins; 176 del; 50 mod Patch: https://git.openjdk.org/jdk/pull/18367.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18367/head:pull/18367 PR: https://git.openjdk.org/jdk/pull/18367 From honkar at openjdk.org Tue Mar 19 00:09:19 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 00:09:19 GMT Subject: RFR: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main In-Reply-To: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> References: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> Message-ID: <1IH-dodgezBhFkjzbkWIGFarAAUpBNseGZmYP4yvaBE=.95b397bf-5409-41b7-a76b-0130e1673181@github.com> On Mon, 18 Mar 2024 21:12:19 GMT, Alexander Zvegintsev wrote: > The test is converted to main and remains in the problem list, as the problem is still valid on Linux and macos. > The test passes on Windows. > > * sleeps on EDT removed, replaced with the Swing timer > * Unnecessary ltemListener and variables removed. > * Updated instructions with html for better readability > * small log improvements > * log area from PassFailJFrame used Tested on Win for various combinations. Updated test changes looks good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18366#pullrequestreview-1944584561 From honkar at openjdk.org Tue Mar 19 00:13:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 00:13:20 GMT Subject: RFR: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main In-Reply-To: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> References: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> Message-ID: On Mon, 18 Mar 2024 21:12:19 GMT, Alexander Zvegintsev wrote: > The test is converted to main and remains in the problem list, as the problem is still valid on Linux and macos. > The test passes on Windows. > > * sleeps on EDT removed, replaced with the Swing timer > * Unnecessary ltemListener and variables removed. > * Updated instructions with html for better readability > * small log improvements > * log area from PassFailJFrame used test/jdk/java/awt/Frame/FrameStateTest/FrameStateTest.java line 179: > 177: setLayout(new FlowLayout()); > 178: add(b1 = new Button("resizable")); > 179: add(b2 = new Button("resize")); @azvegint Minor: Should we consider renaming the "Resize" button to "Change Bounds"? Since when a non-resizable frame is created, the Resize option might seem confusing when we are changing the bounds of the frame. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18366#discussion_r1529490262 From honkar at openjdk.org Tue Mar 19 00:23:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 00:23:20 GMT Subject: RFR: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main In-Reply-To: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> References: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> Message-ID: On Mon, 18 Mar 2024 21:12:19 GMT, Alexander Zvegintsev wrote: > The test is converted to main and remains in the problem list, as the problem is still valid on Linux and macos. > The test passes on Windows. > > * sleeps on EDT removed, replaced with the Swing timer > * Unnecessary ltemListener and variables removed. > * Updated instructions with html for better readability > * small log improvements > * log area from PassFailJFrame used Since the .html file is removed, the test file could be moved one level up. ------------- PR Review: https://git.openjdk.org/jdk/pull/18366#pullrequestreview-1944635858 From azvegint at openjdk.org Tue Mar 19 00:23:20 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 00:23:20 GMT Subject: RFR: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main In-Reply-To: References: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> Message-ID: On Tue, 19 Mar 2024 00:10:17 GMT, Harshitha Onkar wrote: >> The test is converted to main and remains in the problem list, as the problem is still valid on Linux and macos. >> The test passes on Windows. >> >> * sleeps on EDT removed, replaced with the Swing timer >> * Unnecessary ltemListener and variables removed. >> * Updated instructions with html for better readability >> * small log improvements >> * log area from PassFailJFrame used > > test/jdk/java/awt/Frame/FrameStateTest/FrameStateTest.java line 179: > >> 177: setLayout(new FlowLayout()); >> 178: add(b1 = new Button("resizable")); >> 179: add(b2 = new Button("resize")); > > @azvegint Minor: Should we consider renaming the "Resize" button to "Change Bounds"? Since when a non-resizable frame is created, the Resize option might seem confusing when we are changing the bounds of the frame. I am not sure about this, the button does exactly what its label says - resize the frame. A non-resizable frame has always meant that it can't be resized by the user, but can be changed programmatically. > java.awt.Frame#setResizable Sets whether this frame is resizable by the user. So I prefer to leave it as it is. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18366#discussion_r1529502937 From azvegint at openjdk.org Tue Mar 19 00:29:19 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 00:29:19 GMT Subject: RFR: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main In-Reply-To: References: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> Message-ID: <60ls8O5nB4lNT5X2gWYuWBytoPT5KyT8WrLOQC2Euiw=.9488da06-e893-4e0c-918b-6c1a9677dc02@github.com> On Tue, 19 Mar 2024 00:20:17 GMT, Harshitha Onkar wrote: > Since the .html file is removed, the test file could be moved one level up. Yes, we can do that, but we already had a discussion that it makes it harder to do the review, since the github doesn't handle that moving well. It can be done as a single batch with a bunch of tests later. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18366#issuecomment-2005456935 From honkar at openjdk.org Tue Mar 19 00:44:29 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 00:44:29 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:50:59 GMT, Damon Nguyen wrote: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. Changes requested by honkar (Reviewer). test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 70: > 68: .rows(10) > 69: .columns(40) > 70: .testUI(PrintModalDialog::createAndShowGUI) Since the testUI is a simple "Print" button PassFailJFrame's spiltUIBottom() can be used with just a JButton to simplify the UI. test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 127: > 125: } > 126: catch (java.awt.print.PrinterException ex) { > 127: ex.printStackTrace(); It is better to use PassFailJFrame.forceFail() when a printer exception occurs else the timer keeps running and the error is swallowed even after a printer exception has occurred. Suggestion: catch (java.awt.print.PrinterException ex) { ex.printStackTrace(); String msg = "PrinterException: " + ex.getMessage(); PassFailJFrame.forceFail(msg); ------------- PR Review: https://git.openjdk.org/jdk/pull/18362#pullrequestreview-1944665869 PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1529515985 PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1529524710 From honkar at openjdk.org Tue Mar 19 00:54:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 00:54:26 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v5] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 07:09:33 GMT, Prasanta Sadhukhan wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> review updates > > test/jdk/java/awt/im/PinyinIMCommaTest.java line 67: > >> 65: if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) { >> 66: throw new SkippedException("This test is for macOS only"); >> 67: } > > Is it required to have this SkippedException? > > I guess this test already have jtreg tag @requires("mac") and the test needs to be run with jtreg since we are using PassFailJFrame so I think it's redundant to have this check again in test. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18251#discussion_r1529534777 From serb at openjdk.org Tue Mar 19 01:05:20 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Tue, 19 Mar 2024 01:05:20 GMT Subject: RFR: 8325179: Race in BasicDirectoryModel.validateFileCache [v4] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 14:50:12 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. >> >> The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. >> >> This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Increment fetch ID to invalidate pending DoChangeContents Marked as reviewed by serb (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18111#pullrequestreview-1944748397 From serb at openjdk.org Tue Mar 19 01:11:20 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Tue, 19 Mar 2024 01:11:20 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 12:02:43 GMT, Alexey Ivanov wrote: >> test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 99: >> >>> 97: createFiles(temp); >>> 98: >>> 99: final JFileChooser fc = new JFileChooser(temp.toFile()); >> >> it should be created on EDT, just in case. > > I don't think it matters here? The test does not rely on even processing on EDT, no state of `JFileChooser` is modified except for calling `rescanCurrentDirectory`. Technically, I am not allowed to do so either. But if I call `rescanCurrentDirectory` from EDT only, the test becomes void. I think it will fire the property change events via firePropertyChange from the constructor and it is better to do that on EDT. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1529545568 From azvegint at openjdk.org Tue Mar 19 01:20:20 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 01:20:20 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame Message-ID: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> > we need to add next to Pass/Fail a "Pause Timer" button, that (a) stops the count down (b) changes the Pause Timer to "Resume Timer" ~~(c) disables Pass/Fail until the timer is resumed~~ the test will not have to pause or be aware - only the PassFailJFrame machinery. ~~So the tester can do anything they want except exit the test in the paused mode.~~ This PR implements everything except the (c). I see nothing wrong with completing the test from the paused state, and it does not add an extra click. Example screenshots: ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) ------------- Commit messages: - 8328402: Implement pausing functionality for the PassFailJFrame Changes: https://git.openjdk.org/jdk/pull/18368/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18368&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328402 Stats: 31 lines in 1 file changed: 27 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18368.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18368/head:pull/18368 PR: https://git.openjdk.org/jdk/pull/18368 From azvegint at openjdk.org Tue Mar 19 01:20:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 01:20:21 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame In-Reply-To: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Tue, 19 Mar 2024 01:14:29 GMT, Alexander Zvegintsev wrote: >> we need to add next to Pass/Fail a "Pause Timer" button, that > (a) stops the count down > (b) changes the Pause Timer to "Resume Timer" > ~~(c) disables Pass/Fail until the timer is resumed~~ > the test will not have to pause or be aware - only the PassFailJFrame machinery. > ~~So the tester can do anything they want except exit the test in the paused mode.~~ > > This PR implements everything except the (c). > I see nothing wrong with completing the test from the paused state, and it does not add an extra click. > > > Example screenshots: > > ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) > ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) @aivanov-jdk you might want to take a look ------------- PR Comment: https://git.openjdk.org/jdk/pull/18368#issuecomment-2005555788 From achung at openjdk.org Tue Mar 19 01:51:28 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 19 Mar 2024 01:51:28 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 Message-ID: Removing applet usage from manual JColorChooser tests ------------- Commit messages: - init commit Changes: https://git.openjdk.org/jdk/pull/18369/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328403 Stats: 57 lines in 2 files changed: 15 ins; 32 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/18369.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18369/head:pull/18369 PR: https://git.openjdk.org/jdk/pull/18369 From tr at openjdk.org Tue Mar 19 04:15:21 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 19 Mar 2024 04:15:21 GMT Subject: RFR: 8322140: javax/swing/JTable/JTableScrollPrintTest.java does not print the rows and columns of the table in NimbusLookAndFeel Message-ID: Fix suggested in bug [8210807](https://github.com/openjdk/jdk/commit/38bbbe7588c94d3a0edd1c120ba49cbd0851a720) had a regression in Nimbus L&F yet it resolved the issue in other L&F. The better approach would be to handle `MultiResolutionImages `in `PathGraphics` class `getBufferedImage` method and is suggested here. The fix doesn't cause any regression and is verified in CI system. The test javax/swing/JTable/JTableScrollPrintTest.java is verified for all platforms and all L&F (Except in Windows it doesn't work due an issue introduced in 22, yet to investigate on it). And also fix [8210807](https://github.com/openjdk/jdk/commit/38bbbe7588c94d3a0edd1c120ba49cbd0851a720) has been reverted, retaining the test. ------------- Commit messages: - Fix + Revert 8210807 Changes: https://git.openjdk.org/jdk/pull/18187/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18187&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8322140 Stats: 25 lines in 3 files changed: 15 ins; 4 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/18187.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18187/head:pull/18187 PR: https://git.openjdk.org/jdk/pull/18187 From aturbanov at openjdk.org Tue Mar 19 04:15:22 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Tue, 19 Mar 2024 04:15:22 GMT Subject: RFR: 8322140: javax/swing/JTable/JTableScrollPrintTest.java does not print the rows and columns of the table in NimbusLookAndFeel In-Reply-To: References: Message-ID: On Mon, 11 Mar 2024 10:05:41 GMT, Tejesh R wrote: > Fix suggested in bug [8210807](https://github.com/openjdk/jdk/commit/38bbbe7588c94d3a0edd1c120ba49cbd0851a720) had a regression in Nimbus L&F yet it resolved the issue in other L&F. The better approach would be to handle `MultiResolutionImages `in `PathGraphics` class `getBufferedImage` method and is suggested here. The fix doesn't cause any regression and is verified in CI system. The test javax/swing/JTable/JTableScrollPrintTest.java is verified for all platforms and all L&F (Except in Windows it doesn't work due an issue introduced in 22, yet to investigate on it). And also fix [8210807](https://github.com/openjdk/jdk/commit/38bbbe7588c94d3a0edd1c120ba49cbd0851a720) has been reverted, retaining the test. src/java.desktop/share/classes/sun/print/PathGraphics.java line 1151: > 1149: public static BufferedImage convertToBufferedImage(MultiResolutionImage multiResolutionImage, > 1150: double width, double height ) { > 1151: Image resolutionImage = multiResolutionImage.getResolutionVariant(width,height); Suggestion: Image resolutionImage = multiResolutionImage.getResolutionVariant(width, height); src/java.desktop/share/classes/sun/print/PathGraphics.java line 1156: > 1154: BufferedImage.TYPE_INT_ARGB); > 1155: Graphics2D g2d = bufferedImage.createGraphics(); > 1156: g2d.drawImage(resolutionImage, 0, 0, (int)width, (int)height,null); Suggestion: g2d.drawImage(resolutionImage, 0, 0, (int)width, (int)height, null); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18187#discussion_r1527166774 PR Review Comment: https://git.openjdk.org/jdk/pull/18187#discussion_r1527166756 From tr at openjdk.org Tue Mar 19 04:27:41 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 19 Mar 2024 04:27:41 GMT Subject: RFR: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main [v2] In-Reply-To: References: Message-ID: <0HjBbmPYu0IfXLhCjyOqZEniORf5iJj4J9n4b4DE2Ek=.c8e5c3d3-71cb-4b4f-8381-201413fbc045@github.com> > Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18296/files - new: https://git.openjdk.org/jdk/pull/18296/files/b59c1b05..f1d4f655 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18296&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18296&range=00-01 Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18296.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18296/head:pull/18296 PR: https://git.openjdk.org/jdk/pull/18296 From tr at openjdk.org Tue Mar 19 04:41:24 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 19 Mar 2024 04:41:24 GMT Subject: Integrated: 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 10:39:15 GMT, Tejesh R wrote: > Convert sun/java2d/loops/CopyAreaSpeed.java manual applet test to main based using PassFailJFrame. This is a performance measurement test which provide benchmark to compare the outcome with different releases. I have converted the test using a PassFailJFrame though PASS/FAIL doesn't matter here. The result have been shown in `JOptionPane` message. This pull request has now been integrated. Changeset: 652fb3aa Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/652fb3aa48fdfe09e827c2a06f76b3a69c711b74 Stats: 257 lines in 2 files changed: 34 ins; 198 del; 25 mod 8328154: Convert sun/java2d/loops/CopyAreaSpeed.java applet test to main Reviewed-by: kizune, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18296 From abhiscxk at openjdk.org Tue Mar 19 05:13:19 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 05:13:19 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:30:46 GMT, Harshitha Onkar wrote: >> Updated. > > You can remove the OS check here if you would like to, since it is not strictly required when run as jtreg test (which is essentially the case here). I will keep this check as of now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1529721952 From abhiscxk at openjdk.org Tue Mar 19 05:41:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 05:41:20 GMT Subject: RFR: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main [v3] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:45:02 GMT, Alexander Zuev wrote: >> Converted to a main manual test. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Additional fixes based on review Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18331#pullrequestreview-1945227020 From psadhukhan at openjdk.org Tue Mar 19 05:59:19 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 19 Mar 2024 05:59:19 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v2] In-Reply-To: <_-u_Wh-X-AUrhMkJ7DOsy8_4V2ndpNej7kHJxNNFM0Y=.c5c82ac9-2c75-4812-a0c2-7c77d1376b2e@github.com> References: <7gn73bmbH0pkfkIHn2DYdwVXpNoZ2dgxRwbMyRxUz9E=.d2f822c9-6c6a-4d68-8c54-f1087d71144d@github.com> <_-u_Wh-X-AUrhMkJ7DOsy8_4V2ndpNej7kHJxNNFM0Y=.c5c82ac9-2c75-4812-a0c2-7c77d1376b2e@github.com> Message-ID: <1NxnfGHLOowc9kzH6lteetNakhfZOBfl8v32bV0Jxbs=.687ee264-fb16-4b0d-8466-956dadce1244@github.com> On Mon, 18 Mar 2024 18:34:18 GMT, Harshitha Onkar wrote: >> The reason it was not integrated was because of this [comment](https://github.com/openjdk/jdk/pull/3406#pullrequestreview-632106612) wherein it was mentioned to update the test to run without MSOutlook dependancy so that it could be run on all platforms so making it not platform dependant.. > > @prsadhuk When I read it for the 2nd time it makes sense why the @requires check was added. Since it is a manual test there is no way of knowing it has been problem-listed on macOS & linux unless someone explicitly checks the problemlist before running the test. The @requires was added in [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083) to ensure the test pass automatically in non-windows platform much before the problemlist was added so I think it was an oversight and we should remove the problemlist and close 8080185 as NA, in my opinion... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18335#discussion_r1529767437 From jdv at openjdk.org Tue Mar 19 06:02:21 2024 From: jdv at openjdk.org (Jayathirth D V) Date: Tue, 19 Mar 2024 06:02:21 GMT Subject: RFR: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main [v2] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 03:17:07 GMT, Prasanta Sadhukhan wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Ninor update Marked as reviewed by jdv (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18263#pullrequestreview-1945259467 From psadhukhan at openjdk.org Tue Mar 19 06:05:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 19 Mar 2024 06:05:20 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main In-Reply-To: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: On Mon, 18 Mar 2024 17:32:04 GMT, Alexander Zuev wrote: > Convert test to manual main > Move test to the Component folder test/jdk/java/awt/Component/UpdatingBootTime.java line 27: > 25: * @test > 26: * @bug 6461933 7194219 > 27: * @summary adjust system boot time in nowMillisUTC() frequently Guess you need @library for PassFailJFrame test/jdk/java/awt/Component/UpdatingBootTime.java line 74: > 72: """ > 73: 1) In the test window press "Press me" button. > 74: 2) A two timestamps should be printed. grammar issue...guess it should be just "Two timestamps should..." ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18355#discussion_r1529771184 PR Review Comment: https://git.openjdk.org/jdk/pull/18355#discussion_r1529773011 From psadhukhan at openjdk.org Tue Mar 19 06:25:26 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 19 Mar 2024 06:25:26 GMT Subject: Integrated: 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 07:34:24 GMT, Prasanta Sadhukhan wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: ac5b6cb2 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/ac5b6cb2d42bdb8fb1a110ad33411b50cff4ea61 Stats: 255 lines in 3 files changed: 120 ins; 135 del; 0 mod 8327757: Convert javax/swing/JSlider/6524424/bug6524424.java applet to main Reviewed-by: abhiscxk, jdv ------------- PR: https://git.openjdk.org/jdk/pull/18263 From psadhukhan at openjdk.org Tue Mar 19 07:52:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 19 Mar 2024 07:52:20 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main In-Reply-To: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: On Mon, 18 Mar 2024 18:16:08 GMT, Alexander Zuev wrote: > Convert test to main manual and move to the appropriate folder > Remove old files test/jdk/java/awt/FileDialog/FileDialogForDirectories.java line 36: > 34: * @test > 35: * @bug 7161437 > 36: * @summary We should support "apple.awt.fileDialogForDirectories" property. @library is missing...Does it work for you without this? I see most of your latest PRs doesn't have this tag test/jdk/java/awt/FileDialog/FileDialogForDirectories.java line 43: > 41: public class FileDialogForDirectories { > 42: private static Button showBtn; > 43: private static FileDialog fd; Can be made local in main ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18358#discussion_r1529879913 PR Review Comment: https://git.openjdk.org/jdk/pull/18358#discussion_r1529880137 From aturbanov at openjdk.org Tue Mar 19 08:57:21 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Tue, 19 Mar 2024 08:57:21 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:45:03 GMT, Alexander Zuev wrote: > Convert test to main manual; > Move test to appropriate folder; > Delete old files; test/jdk/java/awt/FileDialog/FileDialogOpenDirTest.java line 41: > 39: public class FileDialogOpenDirTest { > 40: private static JFrame initialize() { > 41: System.setProperty("sun.awt.disableGtkFileDialogs","true"); Suggestion: System.setProperty("sun.awt.disableGtkFileDialogs", "true"); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18361#discussion_r1529963749 From rkannathpari at openjdk.org Tue Mar 19 08:58:35 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Tue, 19 Mar 2024 08:58:35 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v4] In-Reply-To: References: Message-ID: > Hi Reviewers, > > I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. > Please review and let me know your suggestions if any. Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: Removed extra space ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18299/files - new: https://git.openjdk.org/jdk/pull/18299/files/b95f9022..cc6d560d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18299&range=02-03 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18299.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18299/head:pull/18299 PR: https://git.openjdk.org/jdk/pull/18299 From rkannathpari at openjdk.org Tue Mar 19 09:24:35 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Tue, 19 Mar 2024 09:24:35 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v13] In-Reply-To: References: Message-ID: > 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 updated the pull request incrementally with one additional commit since the last revision: Updated PassFailJFrame object creation ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17608/files - new: https://git.openjdk.org/jdk/pull/17608/files/69fe7d96..aa801855 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=12 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17608&range=11-12 Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/17608.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17608/head:pull/17608 PR: https://git.openjdk.org/jdk/pull/17608 From tr at openjdk.org Tue Mar 19 10:54:20 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 19 Mar 2024 10:54:20 GMT Subject: RFR: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main [v3] In-Reply-To: <7HFbDcncHLgKFUBmnrGUcgoYof-23Dj4qhTCaf2ZF-g=.0198f934-7808-457a-9991-06f92ed02811@github.com> References: <7HFbDcncHLgKFUBmnrGUcgoYof-23Dj4qhTCaf2ZF-g=.0198f934-7808-457a-9991-06f92ed02811@github.com> Message-ID: On Mon, 18 Mar 2024 09:21:02 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18325#pullrequestreview-1945833486 From tr at openjdk.org Tue Mar 19 11:02:20 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 19 Mar 2024 11:02:20 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main [v4] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 11:56:54 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > jtreg tag update Line column limit exceeds in `createSlider()` method, can correct those. test/jdk/javax/swing/JSlider/bug6742358.java line 27: > 25: * @test > 26: * @bug 6742358 > 27: * @summary MetalSliderUI paint wrong vertical disabled filled JSlider for DefaultMetalTheme Summary sentence could be re-structured. ------------- PR Review: https://git.openjdk.org/jdk/pull/18321#pullrequestreview-1945845023 PR Review Comment: https://git.openjdk.org/jdk/pull/18321#discussion_r1530142586 From abhiscxk at openjdk.org Tue Mar 19 11:29:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 11:29:38 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main [v5] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Summary rephrased and column limit addressed ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18321/files - new: https://git.openjdk.org/jdk/pull/18321/files/bb95c4e9..911063ac Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18321&range=03-04 Stats: 13 lines in 1 file changed: 6 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/18321.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18321/head:pull/18321 PR: https://git.openjdk.org/jdk/pull/18321 From abhiscxk at openjdk.org Tue Mar 19 11:29:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 11:29:27 GMT Subject: Integrated: 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 10:56:54 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: c01095c0 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/c01095c0c9d4de1995d079be3356468196d9a25e Stats: 166 lines in 3 files changed: 77 ins; 89 del; 0 mod 8328262: Convert javax/swing/JSplitPane/8132123/bug8132123.java applet test to main Reviewed-by: psadhukhan, tr ------------- PR: https://git.openjdk.org/jdk/pull/18325 From abhiscxk at openjdk.org Tue Mar 19 11:33:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 11:33:24 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 10:56:38 GMT, Tejesh R wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> jtreg tag update > > test/jdk/javax/swing/JSlider/bug6742358.java line 27: > >> 25: * @test >> 26: * @bug 6742358 >> 27: * @summary MetalSliderUI paint wrong vertical disabled filled JSlider for DefaultMetalTheme > > Summary sentence could be re-structured. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18321#discussion_r1530184987 From abhiscxk at openjdk.org Tue Mar 19 12:10:22 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 12:10:22 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v3] In-Reply-To: <7mXA4yB1IQMruvOFP2-u6IIiYPDX-wW8nnTIScNuqPQ=.75f7794c-27f6-4759-b3a2-ff65fbf367b8@github.com> References: <7mXA4yB1IQMruvOFP2-u6IIiYPDX-wW8nnTIScNuqPQ=.75f7794c-27f6-4759-b3a2-ff65fbf367b8@github.com> Message-ID: On Mon, 18 Mar 2024 13:29:37 GMT, Tejesh R wrote: >> Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. >> Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18336#pullrequestreview-1946013961 From abhiscxk at openjdk.org Tue Mar 19 12:14:22 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 12:14:22 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v2] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 19:57:51 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > remove middle copyright year, update spacings and jtreg summary test/jdk/javax/swing/JColorChooser/Test4887836.java line 41: > 39: > 40: public static void main(String[] args) throws Exception { > 41: String instructions = "If you do not see white area under the \"Swatches\" tab,\n" + You may use `Text Block` for clean instructions. > """ > Your Instructions. """; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1530245280 From abhiscxk at openjdk.org Tue Mar 19 12:16:21 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 12:16:21 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: <-76l48ZU_OawRCTXD7RyqR47QuC6WFZHpABRMf8PFyY=.6db9668d-df49-4412-b44b-d10d2ad845e3@github.com> References: <5MG7j4Aphi1BnlAYJYXtR5nLkwQDM66c8dqMXpmnoW4=.51875b0f-7adb-4eb6-8951-5338bd0727ff@github.com> <-76l48ZU_OawRCTXD7RyqR47QuC6WFZHpABRMf8PFyY=.6db9668d-df49-4412-b44b-d10d2ad845e3@github.com> Message-ID: On Mon, 18 Mar 2024 17:28:16 GMT, Harshitha Onkar wrote: >> It can be added, but I see no reason to do so. >> >> It may be helpful for tests that can be run standalone (that don't respect the jtreg tags and depend on some other jtreg libraries), but for this one the only easy way to run it is through jtreg, so the `@requires (os.family == "windows")` is sufficient. > > I agree with @azvegint, since it has @requires check in jtreg and the test will mainly be run using jtreg framework , the OS check is not strictly required. Fair enough. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530248601 From abhiscxk at openjdk.org Tue Mar 19 12:16:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 12:16:20 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:27:43 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > minor changes Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18312#pullrequestreview-1946027722 From abhiscxk at openjdk.org Tue Mar 19 12:25:22 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 12:25:22 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 23:46:34 GMT, Alexander Zvegintsev wrote: > The test converted to automated, CI and manual testing looks good on all platforms. test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 55: > 53: EventQueue.invokeAndWait(InitialMaximizedTest::createAndShowFrame); > 54: robot.waitForIdle(); > 55: robot.delay(2000); delay is too long ? Generally we have 1000 ms delay after creating test UI. test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 81: > 79: System.out.println("GraphicsConfiguration bounds " + gc.getBounds()); > 80: System.out.println("Screen insets: " + screenInsets); > 81: System.out.println("Work area: " + workArea); Is it intentional to keep so many print statement? test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 94: > 92: frame.setLocation(50, 50); > 93: frame.setExtendedState(Frame.MAXIMIZED_BOTH); > 94: frame.addWindowListener(new WindowAdapter() { Suggestion: May be replaced with `frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);` ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530251566 PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530253414 PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530259495 From abhiscxk at openjdk.org Tue Mar 19 12:27:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 12:27:20 GMT Subject: RFR: JDK-8328379 : Convert URLDragTest.html applet test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:53:50 GMT, Harshitha Onkar wrote: > Following test - test/jdk/java/awt/dnd/URLDragTest/URLDragTest.html is converted from applet to main using PassFailJFrame. > > PassFailJFrame's `logArea()` is used for logging messages. Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18364#pullrequestreview-1946049916 From tr at openjdk.org Tue Mar 19 12:40:20 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 19 Mar 2024 12:40:20 GMT Subject: RFR: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main [v5] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 11:29:38 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Summary rephrased and column limit addressed Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18321#pullrequestreview-1946087001 From kizune at openjdk.org Tue Mar 19 13:55:28 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 13:55:28 GMT Subject: Integrated: 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 16:13:33 GMT, Alexander Zuev wrote: > Converted to a main manual test. This pull request has now been integrated. Changeset: 2094ff3c Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/2094ff3c7ad829355bf13760d9a19b37649b3517 Stats: 348 lines in 3 files changed: 90 ins; 258 del; 0 mod 8328279: Convert java/awt/Cursor/CursorOverlappedPanelsTest test to main Reviewed-by: honkar, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18331 From kizune at openjdk.org Tue Mar 19 13:59:36 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 13:59:36 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main [v2] In-Reply-To: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: > Convert test to manual main > Move test to the Component folder Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Adding a tibrary abd build clauses ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18355/files - new: https://git.openjdk.org/jdk/pull/18355/files/a3ef58d5..c1f988f5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18355&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18355&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18355.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18355/head:pull/18355 PR: https://git.openjdk.org/jdk/pull/18355 From kizune at openjdk.org Tue Mar 19 14:01:42 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:01:42 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main [v2] In-Reply-To: References: Message-ID: <0dSFss67MVf8pZb_0BARTl70xls7xvxJnk1kYV81SOM=.611ad917-5e66-4c8d-9fdd-938adb21c486@github.com> > Convert test to manual main and move from the dedicated folder > Remove old files Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Adding library and build clauses ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18357/files - new: https://git.openjdk.org/jdk/pull/18357/files/79e4faeb..10235707 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18357.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18357/head:pull/18357 PR: https://git.openjdk.org/jdk/pull/18357 From kizune at openjdk.org Tue Mar 19 14:03:54 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:03:54 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main [v2] In-Reply-To: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: > Convert test to main manual and move to the appropriate folder > Remove old files Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Adding library and build clauses ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18358/files - new: https://git.openjdk.org/jdk/pull/18358/files/b6c0cc2e..d8f2aa64 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18358&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18358&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18358.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18358/head:pull/18358 PR: https://git.openjdk.org/jdk/pull/18358 From kizune at openjdk.org Tue Mar 19 14:09:38 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:09:38 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main [v2] In-Reply-To: References: Message-ID: > Convert test to main manual; > Move test to appropriate folder; > Delete old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Adding library and build clauses ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18361/files - new: https://git.openjdk.org/jdk/pull/18361/files/874de3d1..5b8216b0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18361.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18361/head:pull/18361 PR: https://git.openjdk.org/jdk/pull/18361 From kizune at openjdk.org Tue Mar 19 14:10:42 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:10:42 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v2] In-Reply-To: References: Message-ID: > Convert test to a main method based; > Move test to an apropriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Adding library and build clauses ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18363/files - new: https://git.openjdk.org/jdk/pull/18363/files/77f37032..9c5554f7 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18363.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18363/head:pull/18363 PR: https://git.openjdk.org/jdk/pull/18363 From kizune at openjdk.org Tue Mar 19 14:10:52 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:10:52 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v2] In-Reply-To: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> Message-ID: <_ytFO979o9K4RS7fFO_JTQKBda1f-S-at-TBIiWeLhs=.f9467d54-2198-4f3d-a3bc-c90e3a36c2e4@github.com> > Convert test to a main based; > Move test to an appropriate folder; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Adding library and build clauses ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18360/files - new: https://git.openjdk.org/jdk/pull/18360/files/0cc79c16..3e84d47a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18360&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18360&range=00-01 Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18360.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18360/head:pull/18360 PR: https://git.openjdk.org/jdk/pull/18360 From kizune at openjdk.org Tue Mar 19 14:15:50 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:15:50 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main Message-ID: Convert applet based test to a main based test; Move test to an apporpriate location; Remove old files; ------------- Commit messages: - Addid library and build clauses; - 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main Changes: https://git.openjdk.org/jdk/pull/18365/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328386 Stats: 253 lines in 3 files changed: 112 ins; 141 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18365.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18365/head:pull/18365 PR: https://git.openjdk.org/jdk/pull/18365 From kizune at openjdk.org Tue Mar 19 14:17:54 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:17:54 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main [v3] In-Reply-To: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: > Convert test to manual main > Move test to the Component folder Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Fixing instructions. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18355/files - new: https://git.openjdk.org/jdk/pull/18355/files/c1f988f5..891a2e83 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18355&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18355&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18355.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18355/head:pull/18355 PR: https://git.openjdk.org/jdk/pull/18355 From kizune at openjdk.org Tue Mar 19 14:17:55 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 14:17:55 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main [v3] In-Reply-To: References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: On Tue, 19 Mar 2024 06:00:56 GMT, Prasanta Sadhukhan wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Fixing instructions. > > test/jdk/java/awt/Component/UpdatingBootTime.java line 27: > >> 25: * @test >> 26: * @bug 6461933 7194219 >> 27: * @summary adjust system boot time in nowMillisUTC() frequently > > Guess you need @library for PassFailJFrame Sure. Here and in all other tests. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18355#discussion_r1530454679 From abhiscxk at openjdk.org Tue Mar 19 15:09:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 15:09:27 GMT Subject: Integrated: 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 05:55:28 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 5f2a92d9 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/5f2a92d954ce485d372c3cb3e5118556b1d076c3 Stats: 227 lines in 3 files changed: 106 ins; 121 del; 0 mod 8328244: Convert javax/swing/JSlider/6742358/bug6742358.java applet test to main Reviewed-by: psadhukhan, tr ------------- PR: https://git.openjdk.org/jdk/pull/18321 From azvegint at openjdk.org Tue Mar 19 15:12:34 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 15:12:34 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated [v2] In-Reply-To: References: Message-ID: <1tv0wI_4pAfwMqK2o98hA5QIb4xGSR2n9ymIgIurJpM=.a5c297ba-aa64-4388-99de-91c764072edf@github.com> > The test converted to automated, CI and manual testing looks good on all platforms. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: reduce delay ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18367/files - new: https://git.openjdk.org/jdk/pull/18367/files/c00873e7..430e3e71 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18367&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18367&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18367.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18367/head:pull/18367 PR: https://git.openjdk.org/jdk/pull/18367 From abhiscxk at openjdk.org Tue Mar 19 15:12:34 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 15:12:34 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated [v2] In-Reply-To: <1tv0wI_4pAfwMqK2o98hA5QIb4xGSR2n9ymIgIurJpM=.a5c297ba-aa64-4388-99de-91c764072edf@github.com> References: <1tv0wI_4pAfwMqK2o98hA5QIb4xGSR2n9ymIgIurJpM=.a5c297ba-aa64-4388-99de-91c764072edf@github.com> Message-ID: On Tue, 19 Mar 2024 15:09:24 GMT, Alexander Zvegintsev wrote: >> The test converted to automated, CI and manual testing looks good on all platforms. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > reduce delay Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18367#pullrequestreview-1946558399 From azvegint at openjdk.org Tue Mar 19 15:12:35 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 15:12:35 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated [v2] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 12:16:08 GMT, Abhishek Kumar wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> reduce delay > > test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 55: > >> 53: EventQueue.invokeAndWait(InitialMaximizedTest::createAndShowFrame); >> 54: robot.waitForIdle(); >> 55: robot.delay(2000); > > delay is too long ? Generally we have 1000 ms delay after creating test UI. Reduced > test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 81: > >> 79: System.out.println("GraphicsConfiguration bounds " + gc.getBounds()); >> 80: System.out.println("Screen insets: " + screenInsets); >> 81: System.out.println("Work area: " + workArea); > > Is it intentional to keep so many print statement? Looks cleaner to me than System.out.println( "Frame bounds " + frameBounds + "\nGraphicsConfiguration bounds " + gc.getBounds() + "\nScreen insets: " + screenInsets + "\nWork area: " + workArea ); > test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 94: > >> 92: frame.setLocation(50, 50); >> 93: frame.setExtendedState(Frame.MAXIMIZED_BOTH); >> 94: frame.addWindowListener(new WindowAdapter() { > > Suggestion: > May be replaced with > `frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);` `java.awt.Frame` does not have the `setDefaultCloseOperation`, it is a `JFrame` method. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530575589 PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530572855 PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530575047 From abhiscxk at openjdk.org Tue Mar 19 15:12:35 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 19 Mar 2024 15:12:35 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated [v2] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 15:06:02 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.java line 94: >> >>> 92: frame.setLocation(50, 50); >>> 93: frame.setExtendedState(Frame.MAXIMIZED_BOTH); >>> 94: frame.addWindowListener(new WindowAdapter() { >> >> Suggestion: >> May be replaced with >> `frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);` > > `java.awt.Frame` does not have the `setDefaultCloseOperation`, it is a `JFrame` method. Ok. I misread it as JFrame. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18367#discussion_r1530579702 From azvegint at openjdk.org Tue Mar 19 15:36:24 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 15:36:24 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 21:00:36 GMT, Alexander Zuev wrote: > Convert applet based test to a main based test; > Move test to an apporpriate location; > Remove old files; test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 32: > 30: * @build PassFailJFrame > 31: * @run main/manual FileNameOverrideTest > 32: */ We usually move this block just before a class declaration, for better readability. test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 93: > 91: 1) Click on 'Show File Dialog' button. A file dialog will come up. > 92: 2) Double-click on '$clickDirName' and click OK. > 93: 3) The text in the text field will indicate if test is passed or failed. It looks like we can remove the text field and its output altogether, and use `PassFailJFrame#forcePass`, `PassFailJFrame#forceFail` to finish the test. test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 94: > 92: 2) Double-click on '$clickDirName' and click OK. > 93: 3) The text in the text field will indicate if test is passed or failed. > 94: """; Suggestion: """.replace("$clickDirName", clickDirName); test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 100: > 98: instructions = """ > 99: The test is not applicable for $toolkit. Press Pass. > 100: """. replace("$toolkit", toolkit); There is no point in showing the instruction window in this case, it is probably better to just throw the `jtreg.SkippedException`. test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 108: > 106: .rows((int) instructions.lines().count() + 1) > 107: .columns(50) > 108: .testUI(FileNameOverrideTest::initialize) It is possible to get rid of the extra frame, e.g. make the `initialize` return the "Show File Dialog" `JButton` Suggestion: .splitUIBottom(FileNameOverrideTest::initialize) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1530610368 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1530597135 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1530621068 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1530618895 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1530603508 From honkar at openjdk.org Tue Mar 19 17:07:40 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 17:07:40 GMT Subject: RFR: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main [v6] In-Reply-To: References: Message-ID: > Following InputMethod applet tests are converted to main using PassFailJFrame > > 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) > 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) > > - test instructions are updated to make to more clear > - tests renamed > - moved one directory above - /java/awt/im/ > - html file deleted. > > Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: OS check removed ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18251/files - new: https://git.openjdk.org/jdk/pull/18251/files/19fa3fe8..0580da43 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18251&range=04-05 Stats: 18 lines in 2 files changed: 0 ins; 14 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18251.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18251/head:pull/18251 PR: https://git.openjdk.org/jdk/pull/18251 From aivanov at openjdk.org Tue Mar 19 17:11:24 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 17:11:24 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 01:08:25 GMT, Sergey Bylokhov wrote: >> I don't think it matters here? The test does not rely on even processing on EDT, no state of `JFileChooser` is modified except for calling `rescanCurrentDirectory`. Technically, I am not allowed to do so either. But if I call `rescanCurrentDirectory` from EDT only, the test becomes void. > > I think it will fire the property change events via firePropertyChange from the constructor and it is better to do that on EDT. I guess it does fire property change events on the current thread rather than EDT in this case. I still don't think it matters in this case. After the `JFileChooser` is created, it is accessed on the Scanner threads only, and only to call its `rescanCurrentDirectory` method. This call, in its turn, creates a new background thread which accesses the fields and methods of `JFileChooser` as well as `FileSystemView`. Instantiating `JFileChooser` on EDT adds complexity for no benefit. The `JFileChooser` is still accessed concurrently from several threads, including Swing internal thread. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1530766002 From aivanov at openjdk.org Tue Mar 19 17:11:25 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 17:11:25 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 11:17:08 GMT, Alexey Ivanov wrote: >> test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java line 211: >> >>> 209: private static void deleteFile(final Path file) { >>> 210: try { >>> 211: Files.delete(file); >> >> Should we try to delete all files first and then throw an exception if any? > > I do try to remove all the files: > > https://github.com/openjdk/jdk/blob/0d6be7a4e4368ea67382af4321b9483236276e5a/test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java#L115-L120 > > https://github.com/openjdk/jdk/blob/0d6be7a4e4368ea67382af4321b9483236276e5a/test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/ConcurrentModification.java#L202-L215 > > Probably, this can be chained via `handleException`. On the other hand, I don't want to fail the test if cleaning up the files fails. However, now an exception thrown from the `finally` block will override any exception thrown from the test code, which is a bad thing, so I'll need to reconsider exception handling during clean-up. > > If test fails to clean up the files it created, jtreg will remove them. It is the reason why I use the current directory as the base, which is the `scratch` directory when run in jtreg. I updated the code to avoid throwing `IOException` from cleaning up code. If an exception occurs, its stack trace is printed to `stderr`. The test will not fail if cleaning up the files fails. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1530772076 From aivanov at openjdk.org Tue Mar 19 17:11:24 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 17:11:24 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 15:09:20 GMT, Christoph Langer wrote: > > Yes, it's running in 21 and 22 as well, so we'll see what happens there. > > We got the following, once in jdk21u and once in jdk21u-dev on macintelx64 through the weekend: Thank you, Christoph! @RealCLanger. At least one failure is detected. It's better than nothing, isn't it? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-2007709744 From aivanov at openjdk.org Tue Mar 19 17:21:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 17:21:21 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main In-Reply-To: <8-xeU7RcrWLzg2ODCm5TFeqO8d_XR4uDsiy-VdLMB0c=.391ef94a-1c24-4799-9ae4-a7fb752364ab@github.com> References: <8-xeU7RcrWLzg2ODCm5TFeqO8d_XR4uDsiy-VdLMB0c=.391ef94a-1c24-4799-9ae4-a7fb752364ab@github.com> Message-ID: On Thu, 14 Mar 2024 22:44:24 GMT, Harshitha Onkar wrote: >> Following test is converted to main using PassFailJFrame. > > test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 56: > >> 54: In WIN32 systems the image under cursor would be visible ONLY over >> 55: the drop targets with activated extended OLE D'n'D support (that are, >> 56: the desktop and IE). > > @prrace Do we retain the testing instructions related to Win32 as they are quite old? Win32 is not that old? Java still uses these APIs in 64-bit world. I haven't run the test myself (yet). I suggest replacing _Win32_ with _Windows_. Is image under cursor visible when you drag'n'drop on Windows? It should be. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1530789789 From aivanov at openjdk.org Tue Mar 19 17:43:35 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 17:43:35 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 19:54:19 GMT, Harshitha Onkar wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor changes > > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 47: > >> 45: This test is relevant for windows platforms and mouses with high-resolution wheel, >> 46: please just press pass if this is not the case. >> 47: > > @prrace I wanted to check the relevance of the testing requirement. The original test was created for Windows Vista and for a high-res mouse. I think the test can be retained to check on newer versions of windows. Any suggestions? A trackpad is usually a high-res mouse wheel, it allows smooth scrolling (as opposed to moving 3 lines on a wheel notch). There are mice which also support smooth scrolling, I've got one. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530822784 From honkar at openjdk.org Tue Mar 19 17:43:34 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 17:43:34 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main In-Reply-To: References: <8-xeU7RcrWLzg2ODCm5TFeqO8d_XR4uDsiy-VdLMB0c=.391ef94a-1c24-4799-9ae4-a7fb752364ab@github.com> Message-ID: On Tue, 19 Mar 2024 17:18:44 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 56: >> >>> 54: In WIN32 systems the image under cursor would be visible ONLY over >>> 55: the drop targets with activated extended OLE D'n'D support (that are, >>> 56: the desktop and IE). >> >> @prrace Do we retain the testing instructions related to Win32 as they are quite old? > > Win32 is not that old? Java still uses these APIs in 64-bit world. > > I haven't run the test myself (yet). I suggest replacing _Win32_ with _Windows_. Is image under cursor visible when you drag'n'drop on Windows? It should be. Case 1: A circle + anchor is seen (without a green window) when just Mouse is used to perform DnD. Case 2: A green window below the anchor + circle is seen when CTRL + Mouse is used to perform DnD. (I believe the green window, is the image they are referring to ?) https://github.com/openjdk/jdk/assets/95945681/4ed2aa47-611c-4957-b930-b86732a95f76 https://github.com/openjdk/jdk/assets/95945681/d8990f71-e90f-4ee2-a7b2-ba5458fbd879 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1530818930 From aivanov at openjdk.org Tue Mar 19 17:47:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 17:47:22 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v3] In-Reply-To: References: <5MG7j4Aphi1BnlAYJYXtR5nLkwQDM66c8dqMXpmnoW4=.51875b0f-7adb-4eb6-8951-5338bd0727ff@github.com> <-76l48ZU_OawRCTXD7RyqR47QuC6WFZHpABRMf8PFyY=.6db9668d-df49-4412-b44b-d10d2ad845e3@github.com> Message-ID: <7GZrSZRucD96aACoo2WNDFaTR1Uab6SU26Hkz9tY_k8=.1eab0cc5-8512-4232-ab71-2eb7e16b6a3b@github.com> On Tue, 19 Mar 2024 12:13:43 GMT, Abhishek Kumar wrote: >> I agree with @azvegint, since it has @requires check in jtreg and the test will mainly be run using jtreg framework , the OS check is not strictly required. > > Fair enough. I agree. Adding an explicit OS check adds one more dependency on a test library. It's not that hard to run a test with `PassFailJFrame` without jtreg, however, it's not as simple as `java /.java`. Any way, if you run on a non-Windows, you may get unexpected result. Is the test not applicable to other platforms? macOS also supports high-res mice, trackpad on a MacBook is high-res too. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530828760 From honkar at openjdk.org Tue Mar 19 17:58:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 17:58:26 GMT Subject: Integrated: JDK-8328012 : Convert InputMethod (/java/awt/im) applet tests to main In-Reply-To: References: Message-ID: <6-DSgpxZkArYgWcaGKGL_M8ZJb7RRcapWRvoAkIx79Q=.2daf6217-7edd-45ec-9a04-605358d28735@github.com> On Tue, 12 Mar 2024 19:33:04 GMT, Harshitha Onkar wrote: > Following InputMethod applet tests are converted to main using PassFailJFrame > > 1. java/awt/im/8132503/bug8132503.java (Renamed to PinyinIMFullstopTest.java) > 2. java/awt/im/8148984/bug8148984.java (Renamed to PinyinIMCommaTest.java) > > - test instructions are updated to make to more clear > - tests renamed > - moved one directory above - /java/awt/im/ > - html file deleted. > > Two tests are updated as part of this PR as they are similar, details here https://github.com/openjdk/jdk/pull/18251#issuecomment-1992577598 This pull request has now been integrated. Changeset: 4f8f4865 Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/4f8f48654e500e875d14e6b4707ab654acc59176 Stats: 327 lines in 6 files changed: 157 ins; 170 del; 0 mod 8328012: Convert InputMethod (/java/awt/im) applet tests to main Reviewed-by: azvegint, tr ------------- PR: https://git.openjdk.org/jdk/pull/18251 From aivanov at openjdk.org Tue Mar 19 18:05:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 18:05:22 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:27:43 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > minor changes Changes requested by aivanov (Reviewer). test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 32: > 30: * @test > 31: * @bug 6730447 > 32: * @summary [Win] To verify the support for high resolution mouse wheel on Windows. This could be applicable to other platforms too, even though [JDK-6730447](https://bugs.openjdk.org/browse/JDK-6730447) and [JDK-6524352](https://bugs.openjdk.org/browse/JDK-6524352) are reported against Windows only. It could be than support for high-resolution mouse wheel was implemented on macOS earlier than on Windows. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 42: > 40: public class AWTPanelSmoothWheel { > 41: public static final String INSTRUCTIONS = """ > 42: This test is relevant for windows platforms and mouses with high-resolution wheel, Suggestion: This test is relevant for windows platforms and mice with high-resolution wheel, test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 49: > 47: below the instruction window. > 48: Please make sure that some of the messages have non-zero 'wheelRotation' value, > 49: and also check if the test works OK if the mouse wheel is rotated very slow. Shall we increase the width of the instruction window so that less horizontal scrolling is needed? The test can actually verify the condition without help from the user. The handler for `MouseWheelListener` could well look into the `MouseWheelEvent` and verify _automatically_ if `scrollType=WHEEL_UNIT_SCROLL` and there are any events with `wheelRotation=1` (or rather `wheelRotation!=0`). You can even `forcePass` the test as soon as you detected few events which satisfy the condition. If you don't see events with `scrollType=WHEEL_UNIT_SCROLL`, then the mouse doesn't support high-resolution scrolling. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 54: > 52: """; > 53: > 54: public static void main (String[] args) throws Exception { Suggestion: public static void main(String[] args) throws Exception { ------------- PR Review: https://git.openjdk.org/jdk/pull/18312#pullrequestreview-1946973667 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530851645 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530833558 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530845488 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530845747 From aivanov at openjdk.org Tue Mar 19 18:14:20 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 19 Mar 2024 18:14:20 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main In-Reply-To: References: <8-xeU7RcrWLzg2ODCm5TFeqO8d_XR4uDsiy-VdLMB0c=.391ef94a-1c24-4799-9ae4-a7fb752364ab@github.com> Message-ID: On Tue, 19 Mar 2024 17:37:26 GMT, Harshitha Onkar wrote: >> Win32 is not that old? Java still uses these APIs in 64-bit world. >> >> I haven't run the test myself (yet). I suggest replacing _Win32_ with _Windows_. Is image under cursor visible when you drag'n'drop on Windows? It should be. > > Case 1: A circle + anchor is seen (without a green window) when just Mouse is used to perform DnD. > Case 2: A green window below the anchor + circle is seen when CTRL + Mouse is used to perform DnD. (I believe the green window, is the image they are referring to ?) > > https://github.com/openjdk/jdk/assets/95945681/4ed2aa47-611c-4957-b930-b86732a95f76 > > https://github.com/openjdk/jdk/assets/95945681/d8990f71-e90f-4ee2-a7b2-ba5458fbd879 You can see the image under the cursor. The image appears when you hover over AWT windows, Firefox window but the image disappears when you hover over Cygwin terminal window. The image is the translucent blue rectangle with red circle. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1530864921 From honkar at openjdk.org Tue Mar 19 18:22:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 18:22:22 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 17:56:25 GMT, Alexey Ivanov wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor changes > > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 49: > >> 47: below the instruction window. >> 48: Please make sure that some of the messages have non-zero 'wheelRotation' value, >> 49: and also check if the test works OK if the mouse wheel is rotated very slow. > > Shall we increase the width of the instruction window so that less horizontal scrolling is needed? > > The test can actually verify the condition without help from the user. The handler for `MouseWheelListener` could well look into the `MouseWheelEvent` and verify _automatically_ if `scrollType=WHEEL_UNIT_SCROLL` and there are any events with `wheelRotation=1` (or rather `wheelRotation!=0`). > > You can even `forcePass` the test as soon as you detected few events which satisfy the condition. > > If you don't see events with `scrollType=WHEEL_UNIT_SCROLL`, then the mouse doesn't support high-resolution scrolling. Sounds good, test can be made semi-automatic. How long or many MouseWheelEvents do we check ? Probably 10-15 would be a good number? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1530874171 From prr at openjdk.org Tue Mar 19 18:24:39 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 19 Mar 2024 18:24:39 GMT Subject: RFR: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi Message-ID: A simple fix to the test to skip sampling the leftmost and rightmost ends of the divider to avoid possible issues at fractional scales. ------------- Commit messages: - 8328540 Changes: https://git.openjdk.org/jdk/pull/18384/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18384&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328540 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18384.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18384/head:pull/18384 PR: https://git.openjdk.org/jdk/pull/18384 From dnguyen at openjdk.org Tue Mar 19 18:26:34 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 19 Mar 2024 18:26:34 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: - Remove unused frame - splitUI addition. Add forceFail ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18362/files - new: https://git.openjdk.org/jdk/pull/18362/files/b385b956..bb9d6848 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=00-01 Stats: 15 lines in 1 file changed: 2 ins; 10 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18362.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18362/head:pull/18362 PR: https://git.openjdk.org/jdk/pull/18362 From kizune at openjdk.org Tue Mar 19 18:34:38 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 18:34:38 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v2] In-Reply-To: References: Message-ID: > Convert applet based test to a main based test; > Move test to an apporpriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Update test/jdk/java/awt/FileDialog/FileNameOverrideTest.java Add forgotten text formatting. Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18365/files - new: https://git.openjdk.org/jdk/pull/18365/files/6f83277f..23a98b35 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18365.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18365/head:pull/18365 PR: https://git.openjdk.org/jdk/pull/18365 From dnguyen at openjdk.org Tue Mar 19 19:00:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 19 Mar 2024 19:00:21 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 00:31:27 GMT, Harshitha Onkar wrote: >> Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: >> >> - Remove unused frame >> - splitUI addition. Add forceFail > > test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 70: > >> 68: .rows(10) >> 69: .columns(40) >> 70: .testUI(PrintModalDialog::createAndShowGUI) > > Since the testUI is a simple "Print" button PassFailJFrame's spiltUIBottom() can be used with just a JButton to simplify the UI. Added, thanks > test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 127: > >> 125: } >> 126: catch (java.awt.print.PrinterException ex) { >> 127: ex.printStackTrace(); > > It is better to use PassFailJFrame.forceFail() when a printer exception occurs else the timer keeps running and the error is swallowed even after a printer exception has occurred. > > Suggestion: > > catch (java.awt.print.PrinterException ex) { > ex.printStackTrace(); > String msg = "PrinterException: " + ex.getMessage(); > PassFailJFrame.forceFail(msg); Thanks for the suggestion. Added as suggested ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1530930647 PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1530931261 From dnguyen at openjdk.org Tue Mar 19 19:04:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 19 Mar 2024 19:04:21 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main [v3] In-Reply-To: References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: <9EfNi81e74pokdgIEG_hGMNtHMAX8g-1zRvANPU2szM=.3305cd18-73cd-4277-add8-3a72285ace45@github.com> On Tue, 19 Mar 2024 14:17:54 GMT, Alexander Zuev wrote: >> Convert test to manual main >> Move test to the Component folder > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Fixing instructions. LGTM ------------- Marked as reviewed by dnguyen (Committer). PR Review: https://git.openjdk.org/jdk/pull/18355#pullrequestreview-1947131270 From honkar at openjdk.org Tue Mar 19 20:43:34 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 20:43:34 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v5] In-Reply-To: References: Message-ID: <10lXz5tTJygajdcnlCpAcTwcxd9gMC0IxUGdncgi2hU=.cec04654-4f34-42d0-975a-0d761851effd@github.com> > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: semi-automated test, removed @requires windows tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/0299e8e2..d81df883 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=03-04 Stats: 41 lines in 1 file changed: 25 ins; 3 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Tue Mar 19 20:43:34 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 20:43:34 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 18:01:01 GMT, Alexey Ivanov wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor changes > > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 32: > >> 30: * @test >> 31: * @bug 6730447 >> 32: * @summary [Win] To verify the support for high resolution mouse wheel on Windows. > > This could be applicable to other platforms too, even though [JDK-6730447](https://bugs.openjdk.org/browse/JDK-6730447) and [JDK-6524352](https://bugs.openjdk.org/browse/JDK-6524352) are reported against Windows only. It could be than support for high-resolution mouse wheel was implemented on macOS earlier than on Windows. I have remove @requires tag and the test is extended to all platforms. > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 49: > >> 47: below the instruction window. >> 48: Please make sure that some of the messages have non-zero 'wheelRotation' value, >> 49: and also check if the test works OK if the mouse wheel is rotated very slow. > > Shall we increase the width of the instruction window so that less horizontal scrolling is needed? > > The test can actually verify the condition without help from the user. The handler for `MouseWheelListener` could well look into the `MouseWheelEvent` and verify _automatically_ if `scrollType=WHEEL_UNIT_SCROLL` and there are any events with `wheelRotation=1` (or rather `wheelRotation!=0`). > > You can even `forcePass` the test as soon as you detected few events which satisfy the condition. > > If you don't see events with `scrollType=WHEEL_UNIT_SCROLL`, then the mouse doesn't support high-resolution scrolling. @aivanov-jdk Semi-automated the test, it now passes when 5 or more MouseWheelEvent of type: scrollType=WHEEL_UNIT_SCROLL & wheelRotation != 0 is recorded. Updated the instructions accordingly. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1531080738 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1531078089 From kizune at openjdk.org Tue Mar 19 20:49:36 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 20:49:36 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v3] In-Reply-To: References: Message-ID: > Convert applet based test to a main based test; > Move test to an apporpriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with two additional commits since the last revision: - Update test/jdk/java/awt/FileDialog/FileNameOverrideTest.java Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> - Make test skip if current toolkit is not supported; Make test pass or fail automatically; Correct test instructions accordingly; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18365/files - new: https://git.openjdk.org/jdk/pull/18365/files/23a98b35..5a52b8ef Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=01-02 Stats: 48 lines in 1 file changed: 17 ins; 21 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/18365.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18365/head:pull/18365 PR: https://git.openjdk.org/jdk/pull/18365 From kizune at openjdk.org Tue Mar 19 20:49:36 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 19 Mar 2024 20:49:36 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v3] In-Reply-To: References: Message-ID: <1gs7sPpMYuJBjJG9FPniMUYzZxLBl1eLaIbH1eh9_6A=.5e28e654-4348-4f87-91a9-c25fb6eb33db@github.com> On Tue, 19 Mar 2024 15:18:24 GMT, Alexander Zvegintsev wrote: >> Alexander Zuev has updated the pull request incrementally with two additional commits since the last revision: >> >> - Update test/jdk/java/awt/FileDialog/FileNameOverrideTest.java >> >> Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> >> - Make test skip if current toolkit is not supported; >> Make test pass or fail automatically; >> Correct test instructions accordingly; > > test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 93: > >> 91: 1) Click on 'Show File Dialog' button. A file dialog will come up. >> 92: 2) Double-click on '$clickDirName' and click OK. >> 93: 3) The text in the text field will indicate if test is passed or failed. > > It looks like we can remove the text field and its output altogether, and use `PassFailJFrame#forcePass`, `PassFailJFrame#forceFail` to finish the test. Fixed. > test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 100: > >> 98: instructions = """ >> 99: The test is not applicable for $toolkit. Press Pass. >> 100: """. replace("$toolkit", toolkit); > > There is no point in showing the instruction window in this case, it is probably better to just throw the `jtreg.SkippedException`. Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531087880 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531089773 From honkar at openjdk.org Tue Mar 19 21:07:44 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 21:07:44 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v2] In-Reply-To: References: Message-ID: > Following test is converted to main using PassFailJFrame. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: instructions updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18315/files - new: https://git.openjdk.org/jdk/pull/18315/files/e1ec20e3..8ec60632 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=00-01 Stats: 10 lines in 1 file changed: 5 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18315.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18315/head:pull/18315 PR: https://git.openjdk.org/jdk/pull/18315 From honkar at openjdk.org Tue Mar 19 21:07:44 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 21:07:44 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v2] In-Reply-To: References: <8-xeU7RcrWLzg2ODCm5TFeqO8d_XR4uDsiy-VdLMB0c=.391ef94a-1c24-4799-9ae4-a7fb752364ab@github.com> Message-ID: On Tue, 19 Mar 2024 18:11:57 GMT, Alexey Ivanov wrote: >> Case 1: A circle + anchor is seen (without a green window) when just Mouse is used to perform DnD. >> Case 2: A green window below the anchor + circle is seen when CTRL + Mouse is used to perform DnD. (I believe the green window, is the image they are referring to ?) >> >> https://github.com/openjdk/jdk/assets/95945681/4ed2aa47-611c-4957-b930-b86732a95f76 >> >> https://github.com/openjdk/jdk/assets/95945681/d8990f71-e90f-4ee2-a7b2-ba5458fbd879 > > You can see the image under the cursor. The image appears when you hover over AWT windows, Firefox window but the image disappears when you hover over Cygwin terminal window. > > The image is the translucent blue rectangle with red circle. @aivanov-jdk Updated the instructions to make it more clear. Can you please re-review? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1531113359 From srl at openjdk.org Tue Mar 19 21:46:21 2024 From: srl at openjdk.org (Steven Loomis) Date: Tue, 19 Mar 2024 21:46:21 GMT Subject: RFR: 8195675: Call to insertText with single character from custom Input Method ignored In-Reply-To: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> References: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> Message-ID: On Tue, 20 Feb 2024 02:08:09 GMT, Steven Loomis wrote: > 8195675: Call to insertText with single character from custom Input Method ignored I'm able to build this again, but not satisfied that it solves the issue, so I am still investigating. Should I rebase this upon latest master or somewhere else (now that 22 is released)? @prrace ------------- PR Comment: https://git.openjdk.org/jdk/pull/17921#issuecomment-2008184716 From prr at openjdk.org Tue Mar 19 22:55:19 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 19 Mar 2024 22:55:19 GMT Subject: RFR: 8327879: Convert javax/swing/border/Test4760089.java applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 05:21:03 GMT, Tejesh R wrote: >> Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18217#pullrequestreview-1947551665 From prr at openjdk.org Tue Mar 19 22:56:19 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 19 Mar 2024 22:56:19 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v4] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:40:03 GMT, Damon Nguyen wrote: >> Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Remove reundant window constant Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18247#pullrequestreview-1947552650 From prr at openjdk.org Tue Mar 19 23:07:29 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 19 Mar 2024 23:07:29 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 18:26:34 GMT, Damon Nguyen wrote: >> Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. > > Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: > > - Remove unused frame > - splitUI addition. Add forceFail test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 57: > 55: Finish printing or close the dialog. If both dialogs are modal, > 56: PASS the test. Otherwise, FAIL. > 57: """; I think we need more instructions - explaining Modal and what to expect. "Modal in this case means that it blocks the user from interacting with other windows in the same application You may still be able to interact with unrelated applications on the desktop. One sure way to test this is to first show the print dialog and then press "Fail", because if you can click on "Fail" and have it respond, then the print dialog was not modal. If clicking on it does nothing then cancel the print dialog and do the same for the other print dialog. If all is well, then press Pass." ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1531231867 From azvegint at openjdk.org Tue Mar 19 23:20:22 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Tue, 19 Mar 2024 23:20:22 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v3] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 20:49:36 GMT, Alexander Zuev wrote: >> Convert applet based test to a main based test; >> Move test to an apporpriate location; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with two additional commits since the last revision: > > - Update test/jdk/java/awt/FileDialog/FileNameOverrideTest.java > > Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> > - Make test skip if current toolkit is not supported; > Make test pass or fail automatically; > Correct test instructions accordingly; Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 49: > 47: private final static String clickDirName = "Directory for double click"; > 48: private final static String dirPath = System.getProperty("user.dir");; > 49: private static JButton showBtn; Can be local variable test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 56: > 54: showBtn.addActionListener(w -> { > 55: Frame frame = new Frame(); > 56: fd = new FileDialog(frame, "Open"); Suggestion: fd = new FileDialog((Frame) null, "Open"); There is no point in this frame. test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 64: > 62: frame.dispose(); > 63: if (fileName.equals(output)) { > 64: PassFailJFrame.forcePass();; Suggestion: PassFailJFrame.forcePass(); ------------- PR Review: https://git.openjdk.org/jdk/pull/18365#pullrequestreview-1947576728 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531238886 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531238333 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531238119 From honkar at openjdk.org Tue Mar 19 23:29:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 23:29:20 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v3] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 18:37:37 GMT, Damon Nguyen wrote: >> Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review changes test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 29: > 27: * @build PassFailJFrame > 28: * @summary Test for a memory leak in Image. > 29: * @run main MemoryLeakTest missing manual here ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1531250326 From prr at openjdk.org Tue Mar 19 23:34:39 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 19 Mar 2024 23:34:39 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet Message-ID: This seems to have been some previous not very complete conversion of a test from applet to main. It even still had Applet imported and miscellaneous comments. I've cleaned it up. ------------- Commit messages: - 8328560 Changes: https://git.openjdk.org/jdk/pull/18386/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18386&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328560 Stats: 95 lines in 1 file changed: 13 ins; 33 del; 49 mod Patch: https://git.openjdk.org/jdk/pull/18386.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18386/head:pull/18386 PR: https://git.openjdk.org/jdk/pull/18386 From honkar at openjdk.org Tue Mar 19 23:43:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 19 Mar 2024 23:43:20 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v3] In-Reply-To: References: Message-ID: <4eNSBSTLXFeldurtMbp0bmnLnS19TOUcQygVnCRsVXE=.3fd7d79b-58ba-495a-8017-c16e4c4e303d@github.com> On Mon, 18 Mar 2024 18:37:37 GMT, Damon Nguyen wrote: >> Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review changes test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 27: > 25: * @bug 4078566 6658398 > 26: * @library /java/awt/regtesthelpers > 27: * @build PassFailJFrame How about we add @requires os.family == "linux" additionally here? test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 42: > 40: private static final String INSTRUCTIONS = > 41: """ > 42: Do the following steps on Solaris only. Since the test can be run on Unix platforms, how about including it in the instructions. Suggestion: Do the following steps on Unix platforms. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1531261051 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1531266744 From honkar at openjdk.org Wed Mar 20 00:09:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 00:09:20 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main In-Reply-To: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: <7akirtbYmVHNS-S1Xupl-OfycSL9lxIw3r2bXmqGPvM=.8b1f64c7-3deb-4ead-8339-b53d62b9a5b0@github.com> On Mon, 18 Mar 2024 07:45:42 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework. > > Tested in macOS where it didn't worked for "key press C to change tab layout" else it worked for other "key press (R, B, L, T) to change tab position. So, test is still in problem list. LGTM, minor changes added inline. test/jdk/javax/swing/JTabbedPane/bug4666224.java line 48: > 46: > 47: public class bug4666224 { > 48: final static int placements[] = { JTabbedPane.LEFT, JTabbedPane.RIGHT, JTabbedPane.TOP, JTabbedPane.BOTTOM }; placements isn't used and can be removed. test/jdk/javax/swing/JTabbedPane/bug4666224.java line 51: > 49: private static JTabbedPane tabPane; > 50: private static JFrame frame; > 51: private static JPanel mainPanel; mainPanel can be made local test/jdk/javax/swing/JTabbedPane/bug4666224.java line 58: > 56: 2. Lose focus on the window by clicking on some other window. > 57: 3. Focus indicator should disappear > 58: 4. Regain focus on the window by pressing the tab, The regain focus part also doesn't work on macOS along with change layout. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18340#pullrequestreview-1947634902 PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531289197 PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531293527 PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531292885 From azvegint at openjdk.org Wed Mar 20 01:00:26 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 01:00:26 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 23:30:39 GMT, Phil Race wrote: > This seems to have been some previous not very complete conversion of a test from applet to main. > It even still had Applet imported and miscellaneous comments. I've cleaned it up. test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 25: > 23: > 24: /* > 25: @test 1.2 98/08/05 Now we don't have `@test` at all. test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 29: > 27: @summary Tests that clicking mouse and pressing keys generates correct amount of click-counts > 28: @run main ClickDuringKeypress > 29: */ We usually move this block just before a class declaration, for better readability. test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 53: > 51: static volatile Frame frame; > 52: static volatile Robot robot; > 53: static volatile ClickDuringKeypress clicker; Suggestion: static final ClickDuringKeypress clicker = new ClickDuringKeypress(); `clicker` can be made final test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 61: > 59: robot = new Robot(); > 60: robot.mouseMove(200, 200); > 61: EventQueue.invokeAndWait(frame::show); Suggestion: EventQueue.invokeAndWait(() -> frame.setVisible(true)); `show` is deprecated. test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 96: > 94: throw new RuntimeException("Not Activated. Test fails"); > 95: } > 96: } Do we really need this synchronization? Shouldn't the standard robot.waitForIdle(); robot.delay(1000); be enough? test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 111: > 109: for (int i = 0; i < CLICKCOUNT / 2; i++) { > 110: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); > 111: robot.delay(10); Here and after Suggestion: We have already called `robot.setAutoDelay(DOUBLE_CLICK_AUTO_DELAY);` before. We can set `DOUBLE_CLICK_AUTO_DELAY` to 20 and remove the multiple `robot.delay(10)` calls. Probably we also want to add `setAutoWaitForIdle(true)` ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1531318899 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1531326699 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1531347759 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1531333655 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1531344366 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1531365101 From azvegint at openjdk.org Wed Mar 20 03:13:42 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 03:13:42 GMT Subject: RFR: 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main Message-ID: Test converted to main. Instructions split to Windows and Linux, with some clarifications. The test runs successfully on Windows and Linux. ------------- Commit messages: - split instructions for Windows and Linux - initial Changes: https://git.openjdk.org/jdk/pull/18388/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18388&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328562 Stats: 137 lines in 2 files changed: 65 ins; 57 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/18388.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18388/head:pull/18388 PR: https://git.openjdk.org/jdk/pull/18388 From psadhukhan at openjdk.org Wed Mar 20 03:14:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 03:14:21 GMT Subject: RFR: 8328367: Convert java/awt/Component/UpdatingBootTime test to main [v3] In-Reply-To: References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: On Tue, 19 Mar 2024 14:17:54 GMT, Alexander Zuev wrote: >> Convert test to manual main >> Move test to the Component folder > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Fixing instructions. Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18355#pullrequestreview-1947879653 From psadhukhan at openjdk.org Wed Mar 20 03:16:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 03:16:20 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main [v2] In-Reply-To: References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: On Tue, 19 Mar 2024 14:03:54 GMT, Alexander Zuev wrote: >> Convert test to main manual and move to the appropriate folder >> Remove old files > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Adding library and build clauses Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18358#pullrequestreview-1947880648 From psadhukhan at openjdk.org Wed Mar 20 03:16:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 03:16:21 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main [v2] In-Reply-To: References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: On Tue, 19 Mar 2024 07:49:53 GMT, Prasanta Sadhukhan wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Adding library and build clauses > > test/jdk/java/awt/FileDialog/FileDialogForDirectories.java line 43: > >> 41: public class FileDialogForDirectories { >> 42: private static Button showBtn; >> 43: private static FileDialog fd; > > Can be made local in main Still could have been made local... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18358#discussion_r1531467780 From psadhukhan at openjdk.org Wed Mar 20 03:18:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 03:18:21 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main [v2] In-Reply-To: <0dSFss67MVf8pZb_0BARTl70xls7xvxJnk1kYV81SOM=.611ad917-5e66-4c8d-9fdd-938adb21c486@github.com> References: <0dSFss67MVf8pZb_0BARTl70xls7xvxJnk1kYV81SOM=.611ad917-5e66-4c8d-9fdd-938adb21c486@github.com> Message-ID: On Tue, 19 Mar 2024 14:01:42 GMT, Alexander Zuev wrote: >> Convert test to manual main and move from the dedicated folder >> Remove old files > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Adding library and build clauses test/jdk/java/awt/Cursor/MultiResolutionCursorTest.java line 63: > 61: JFrame frame = new JFrame("Multi-resolution Cursor Test Frame"); > 62: frame.setSize(300, 300); > 63: frame.setLocation(300, 50); Is setLocation required? I guess PassFailJFrame will take care of that when you call testUI ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18357#discussion_r1531468594 From azvegint at openjdk.org Wed Mar 20 03:21:24 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 03:21:24 GMT Subject: Integrated: 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main In-Reply-To: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> References: <9jOoOgLC59s3h2IQkTvuc6jJ2Y19umd5SOd25zI67pI=.7e17596c-89f3-4ff2-9254-ec23f85e7eb1@github.com> Message-ID: On Mon, 18 Mar 2024 21:12:19 GMT, Alexander Zvegintsev wrote: > The test is converted to main and remains in the problem list, as the problem is still valid on Linux and macos. > The test passes on Windows. > > * sleeps on EDT removed, replaced with the Swing timer > * Unnecessary ltemListener and variables removed. > * Updated instructions with html for better readability > * small log improvements > * log area from PassFailJFrame used This pull request has now been integrated. Changeset: 269163d5 Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/269163d509ec3c80983f55c5b47f472fa76be26c Stats: 672 lines in 3 files changed: 220 ins; 399 del; 53 mod 8328387: Convert java/awt/Frame/FrameStateTest/FrameStateTest.html applet test to main Reviewed-by: honkar ------------- PR: https://git.openjdk.org/jdk/pull/18366 From abhiscxk at openjdk.org Wed Mar 20 04:18:46 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 04:18:46 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework. > > Tested in macOS where it didn't worked for "key press C to change tab layout" else it worked for other "key press (R, B, L, T) to change tab position. So, test is still in problem list. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: minor fix ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18340/files - new: https://git.openjdk.org/jdk/pull/18340/files/68ce8dd1..9c350b0e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18340&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18340&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18340.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18340/head:pull/18340 PR: https://git.openjdk.org/jdk/pull/18340 From abhiscxk at openjdk.org Wed Mar 20 04:18:46 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 04:18:46 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: <7akirtbYmVHNS-S1Xupl-OfycSL9lxIw3r2bXmqGPvM=.8b1f64c7-3deb-4ead-8339-b53d62b9a5b0@github.com> References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> <7akirtbYmVHNS-S1Xupl-OfycSL9lxIw3r2bXmqGPvM=.8b1f64c7-3deb-4ead-8339-b53d62b9a5b0@github.com> Message-ID: <3F9neJMFLWR0Nv2hk2tEAibKMN0jbd6XKnWM7aR3LWs=.b3c5428f-9212-4e68-8a94-ae808c3536ce@github.com> On Wed, 20 Mar 2024 00:00:14 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor fix > > test/jdk/javax/swing/JTabbedPane/bug4666224.java line 48: > >> 46: >> 47: public class bug4666224 { >> 48: final static int placements[] = { JTabbedPane.LEFT, JTabbedPane.RIGHT, JTabbedPane.TOP, JTabbedPane.BOTTOM }; > > placements isn't used and can be removed. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531492561 From abhiscxk at openjdk.org Wed Mar 20 04:28:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 04:28:20 GMT Subject: RFR: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 18:20:06 GMT, Phil Race wrote: > A simple fix to the test to skip sampling the leftmost and rightmost ends of the divider > to avoid possible issues at fractional scales. 1. should we mention `-Dsun.java2d.uiScale=2.0` in jtreg tag since it is supposed to be a hidpi test ? 2. Please update copyright year. ------------- PR Review: https://git.openjdk.org/jdk/pull/18384#pullrequestreview-1947923944 From kizune at openjdk.org Wed Mar 20 04:28:47 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 04:28:47 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main [v3] In-Reply-To: References: Message-ID: > Convert test to manual main and move from the dedicated folder > Remove old files Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Removing setLocation() on frame; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18357/files - new: https://git.openjdk.org/jdk/pull/18357/files/10235707..ffd314ee Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18357.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18357/head:pull/18357 PR: https://git.openjdk.org/jdk/pull/18357 From kizune at openjdk.org Wed Mar 20 04:28:47 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 04:28:47 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main [v2] In-Reply-To: References: <0dSFss67MVf8pZb_0BARTl70xls7xvxJnk1kYV81SOM=.611ad917-5e66-4c8d-9fdd-938adb21c486@github.com> Message-ID: On Wed, 20 Mar 2024 03:15:36 GMT, Prasanta Sadhukhan wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Adding library and build clauses > > test/jdk/java/awt/Cursor/MultiResolutionCursorTest.java line 63: > >> 61: JFrame frame = new JFrame("Multi-resolution Cursor Test Frame"); >> 62: frame.setSize(300, 300); >> 63: frame.setLocation(300, 50); > > Is setLocation required? I guess PassFailJFrame will take care of that when you call testUI It can be omitted. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18357#discussion_r1531496568 From kizune at openjdk.org Wed Mar 20 05:11:21 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 05:11:21 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main [v2] In-Reply-To: References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: On Tue, 19 Mar 2024 07:49:39 GMT, Prasanta Sadhukhan wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Adding library and build clauses > > test/jdk/java/awt/FileDialog/FileDialogForDirectories.java line 36: > >> 34: * @test >> 35: * @bug 7161437 >> 36: * @summary We should support "apple.awt.fileDialogForDirectories" property. > > @library is missing...Does it work for you without this? I see most of your latest PRs doesn't have this tag I had PassFailJFrame.class in my classpath so i could run these tests easier. I fixed all of the headers now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18358#discussion_r1531516652 From kizune at openjdk.org Wed Mar 20 05:17:49 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 05:17:49 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main [v3] In-Reply-To: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: > Convert test to main manual and move to the appropriate folder > Remove old files Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Made fd and showBtn variables local. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18358/files - new: https://git.openjdk.org/jdk/pull/18358/files/d8f2aa64..63223622 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18358&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18358&range=01-02 Stats: 6 lines in 1 file changed: 2 ins; 3 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18358.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18358/head:pull/18358 PR: https://git.openjdk.org/jdk/pull/18358 From kizune at openjdk.org Wed Mar 20 05:17:49 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 05:17:49 GMT Subject: RFR: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main [v3] In-Reply-To: References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: <_p6sbrlt8yDRKjmjnIdvePofaFXoCDW9IePv0xxp2bM=.bec28f20-5e94-42e9-9cef-a2a1ff3f1180@github.com> On Wed, 20 Mar 2024 03:13:19 GMT, Prasanta Sadhukhan wrote: >> test/jdk/java/awt/FileDialog/FileDialogForDirectories.java line 43: >> >>> 41: public class FileDialogForDirectories { >>> 42: private static Button showBtn; >>> 43: private static FileDialog fd; >> >> Can be made local in main > > Still could have been made local... Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18358#discussion_r1531518973 From kizune at openjdk.org Wed Mar 20 05:17:58 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 05:17:58 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main [v3] In-Reply-To: References: Message-ID: > Convert test to main manual; > Move test to appropriate folder; > Delete old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Update test/jdk/java/awt/FileDialog/FileDialogOpenDirTest.java Co-authored-by: Andrey Turbanov ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18361/files - new: https://git.openjdk.org/jdk/pull/18361/files/5b8216b0..9c9e8fbb Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18361.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18361/head:pull/18361 PR: https://git.openjdk.org/jdk/pull/18361 From psadhukhan at openjdk.org Wed Mar 20 05:18:04 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 05:18:04 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main Message-ID: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Few closed manual applet tests are converted to main based and opensourced ------------- Commit messages: - 8328238: Convert few closed manual applet tests to main Changes: https://git.openjdk.org/jdk/pull/18390/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328238 Stats: 396 lines in 4 files changed: 396 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18390.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18390/head:pull/18390 PR: https://git.openjdk.org/jdk/pull/18390 From psadhukhan at openjdk.org Wed Mar 20 05:22:19 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 05:22:19 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 04:28:47 GMT, Alexander Zuev wrote: >> Convert test to manual main and move from the dedicated folder >> Remove old files > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Removing setLocation() on frame; Marked as reviewed by psadhukhan (Reviewer). test/jdk/java/awt/Cursor/MultiResolutionCursorTest.java line 47: > 45: public class MultiResolutionCursorTest { > 46: static final int sizes[] = {8, 16, 32, 128}; > 47: static final Color colors[] = {Color.WHITE, Color.RED, Color.GREEN, Color.BLUE}; colors could be made local.. ------------- PR Review: https://git.openjdk.org/jdk/pull/18357#pullrequestreview-1947960516 PR Review Comment: https://git.openjdk.org/jdk/pull/18357#discussion_r1531521432 From kizune at openjdk.org Wed Mar 20 05:58:47 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 05:58:47 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v4] In-Reply-To: References: Message-ID: > Convert applet based test to a main based test; > Move test to an apporpriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Update test/jdk/java/awt/FileDialog/FileNameOverrideTest.java Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18365/files - new: https://git.openjdk.org/jdk/pull/18365/files/5a52b8ef..24f7912d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18365.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18365/head:pull/18365 PR: https://git.openjdk.org/jdk/pull/18365 From tr at openjdk.org Wed Mar 20 06:02:21 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 06:02:21 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> Message-ID: <_hoq8F5GGhG-PeyH6IAWlRqmYLHrTj_UElGkjO33Uak=.b379c878-8a4e-4c55-a6cd-7d0301ba6681@github.com> On Mon, 18 Mar 2024 14:06:36 GMT, Prasanta Sadhukhan wrote: > > @prsadhuk With scaling 1.0 it'll appear this way. I think it's supposed to be 1.0 scaling and its looking similar now. ![image](https://private-user-images.githubusercontent.com/94159358/313696311-92e4358b-651d-43d9-bdc8-cb4a44aa021c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA3NzA5MjMsIm5iZiI6MTcxMDc3MDYyMywicGF0aCI6Ii85NDE1OTM1OC8zMTM2OTYzMTEtOTJlNDM1OGItNjUxZC00M2Q5LWJkYzgtY2I0YTQ0YWEwMjFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE4VDE0MDM0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc0NTcyZGE3NTBlOWFhY2YxYzk3NWNjZjc4ZDliNmJlZDE5ZWZhMDA3NTc2ZDliYjJmOGJmOTEwOTdlY2M1YWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sSwTFVLibyG4g0u0xl92qA8fS5zU08-CP_6UICqH6Ds) > > I am not sure..it still seems 1.25 bigger than golden image..."similar" word has different connotation and is very subjective....is it intentional that "same" was not mentioned? What if we say, Earth and Mars are similar as they are planets... Then shall I problemlist it? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2008706412 From tr at openjdk.org Wed Mar 20 06:02:25 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 06:02:25 GMT Subject: Integrated: 8327879: Convert javax/swing/border/Test4760089.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 07:35:36 GMT, Tejesh R wrote: > Convert javax/swing/border/Test4760089.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: a68f5d73 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/a68f5d7331c2e6c4bc51eee95abcbabb5a19b484 Stats: 71 lines in 2 files changed: 25 ins; 35 del; 11 mod 8327879: Convert javax/swing/border/Test4760089.java applet test to main Reviewed-by: abhiscxk, prr ------------- PR: https://git.openjdk.org/jdk/pull/18217 From kizune at openjdk.org Wed Mar 20 06:06:34 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 06:06:34 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v5] In-Reply-To: References: Message-ID: > Convert applet based test to a main based test; > Move test to an apporpriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: More fixes based on review. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18365/files - new: https://git.openjdk.org/jdk/pull/18365/files/24f7912d..d895e970 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18365&range=03-04 Stats: 11 lines in 1 file changed: 3 ins; 6 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18365.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18365/head:pull/18365 PR: https://git.openjdk.org/jdk/pull/18365 From kizune at openjdk.org Wed Mar 20 06:06:34 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 06:06:34 GMT Subject: RFR: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main [v3] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 23:17:04 GMT, Alexander Zvegintsev wrote: >> Alexander Zuev has updated the pull request incrementally with two additional commits since the last revision: >> >> - Update test/jdk/java/awt/FileDialog/FileNameOverrideTest.java >> >> Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> >> - Make test skip if current toolkit is not supported; >> Make test pass or fail automatically; >> Correct test instructions accordingly; > > test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 49: > >> 47: private final static String clickDirName = "Directory for double click"; >> 48: private final static String dirPath = System.getProperty("user.dir");; >> 49: private static JButton showBtn; > > Can be local variable Fixed. > test/jdk/java/awt/FileDialog/FileNameOverrideTest.java line 56: > >> 54: showBtn.addActionListener(w -> { >> 55: Frame frame = new Frame(); >> 56: fd = new FileDialog(frame, "Open"); > > Suggestion: > > fd = new FileDialog((Frame) null, "Open"); > > There is no point in this frame. Ok. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531541505 PR Review Comment: https://git.openjdk.org/jdk/pull/18365#discussion_r1531541438 From tr at openjdk.org Wed Mar 20 06:12:21 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 06:12:21 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: On Wed, 20 Mar 2024 04:18:46 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework. >> >> Tested in macOS where it didn't worked for "key press C to change tab layout" else it worked for other "key press (R, B, L, T) to change tab position. So, test is still in problem list. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > minor fix test/jdk/javax/swing/JTabbedPane/bug4666224.java line 54: > 52: ON ALL PLATFORMS > 53: 1. Click on any of the tabs, focus indicator is visible. > 54: 2. Lose focus on the window by clicking on some other window. Lose focus? test/jdk/javax/swing/JTabbedPane/bug4666224.java line 132: > 130: map.put("bottom", new RotateAction(JTabbedPane.BOTTOM)); > 131: map.put("changeLayout", new ChangeLayoutAction()); > 132: map.put("dump", new DumpAction()); `DumpAction `can also be mentioned in INSTRUCTIONS I guess, since its been used here. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531541477 PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531546196 From psadhukhan at openjdk.org Wed Mar 20 06:21:22 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 06:21:22 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: <8OiGTvKzBlSqdN879t4GkIyTT5CJpkHOBRmuaLWdNBY=.38eae1af-37cb-4224-9efa-f33434874f10@github.com> On Thu, 14 Mar 2024 11:02:52 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Ideally yes, but you can discuss in the meeting since harshita/damon has not come back on this.. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2008722624 From jwaters at openjdk.org Wed Mar 20 06:25:51 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 20 Mar 2024 06:25:51 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v46] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <5WJnl6Z9RyYzZrDStf9p74gus07Stz6S6NHwVpGQO3M=.0a04a120-77b5-48c3-9ae8-7d37c9646463@github.com> Message-ID: On Sat, 20 Jan 2024 00:17:02 GMT, Phil Race wrote: >> Julian Waters has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 79 commits: >> >> - Merge branch 'openjdk:master' into patch-10 >> - Merge branch 'openjdk:master' into patch-10 >> - Fix awt_Window.cpp >> - Fix awt_PrintJob.cpp >> - -Zc:stringStrings no longer needed with -permissive- flags-cflags.m4 >> - Fix awt_Window.cpp >> - awt_Window.cpp >> - awt_PrintJob.cpp >> - awt_Frame.cpp >> - Whitespace awt_Component.cpp >> - ... and 69 more: https://git.openjdk.org/jdk/compare/35e96627...cbfbaee6 > > src/java.desktop/windows/native/libawt/windows/awt_Component.cpp line 6366: > >> 6364: jobject parent = data->parentComp; >> 6365: >> 6366: AwtComponent *awtComponent = nullptr; > > Looking at it (not tested) here through 6403 could be simplified as > > if (self == NULL || parent == NULL) { > env->ExceptionClear(); > JNU_ThrowNullPointerException(env, "peer"); > env->DeleteGlobalRef(self); > env->DeleteGlobalRef(parent); > delete data; > return; > } > > AwtComponent *awtComponent = (AwtComponent *)JNI_GET_PDATA(self); > if (awtComponent == NULL) { > THROW_NULL_PDATA_IF_NOT_DESTROYED(self); > env->DeleteGlobalRef(self); > env->DeleteGlobalRef(parent); > delete data; > return; > } > > AwtComponent *awtParent = (AwtComponent *)JNI_GET_PDATA(parent); > if (awtParent == NULL) { > THROW_NULL_PDATA_IF_NOT_DESTROYED(parent); > env->DeleteGlobalRef(self); > env->DeleteGlobalRef(parent); > delete data; > return; > } > > > I think I prefer that over > BOOL error = FALSE; > AwtComponent *awtComponent = nullptr; > AwtComponent *awtParent = nullptr; > > if (self == NULL || parent == NULL) { > env->ExceptionClear(); > JNU_ThrowNullPointerException(env, "peer"); > error = TRUE; > } > > if (!error) { > awtComponent = (AwtComponent *)JNI_GET_PDATA(self); > if (awtComponent == NULL) { > THROW_NULL_PDATA_IF_NOT_DESTROYED(self); > error = TRUE; > } > } > > if (!error) { > awtParent = (AwtComponent *)JNI_GET_PDATA(parent); > if (awtParent == NULL) { > THROW_NULL_PDATA_IF_NOT_DESTROYED(parent); > error = TRUE; > } > > if (error) { > env->DeleteGlobalRef(self); > env->DeleteGlobalRef(parent); > delete data; > return; > } Sorry, I don't see a BOOL error anywhere? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1531553778 From jwaters at openjdk.org Wed Mar 20 06:33:52 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 20 Mar 2024 06:33:52 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v51] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert Formatting in awt_PrintJob.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/0f34608b..18014c3a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=50 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=49-50 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Wed Mar 20 06:38:59 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 20 Mar 2024 06:38:59 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with two additional commits since the last revision: - Revert Formatting in awt_Component.cpp - Revert Formatting in awt_Window.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/18014c3a..0439b138 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=51 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=50-51 Stats: 6 lines in 2 files changed: 2 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From tr at openjdk.org Wed Mar 20 06:41:20 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 06:41:20 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v4] In-Reply-To: References: Message-ID: <87TT43vLzavbC6ursccLOMzGwGXvdOj7FUUBcv-GHp0=.37f8222f-ed56-4134-9e1c-3ced7eee6131@github.com> On Fri, 15 Mar 2024 07:38:56 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > jtreg manual tag update test/jdk/javax/swing/JToggleButton/bug4128979.java line 32: > 30: * @summary Tests that background changes correctly in WinLF for JToggleButton when pressed > 31: * @run main/manual bug4128979 > 32: */ Move it after imports. test/jdk/javax/swing/JToggleButton/bug4128979.java line 55: > 53: > 54: public class bug4128979 { > 55: private static JFrame frame; `frame `can be moved inside `createAndShowUI()`. test/jdk/javax/swing/JToggleButton/bug4128979.java line 65: > 63: > 64: If the background color does not change correctly for at least one button, > 65: the test fails. """; Getting a white space after `fails.`, can you check once. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1531560138 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1531563247 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1531563877 From jwaters at openjdk.org Wed Mar 20 06:48:40 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 20 Mar 2024 06:48:40 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v50] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Mon, 18 Mar 2024 15:55:15 GMT, Magnus Ihse Bursie wrote: > bot-keep-alive > > @TheShermanTanker Did you understand the remaining changes that Phil has requested? Do you think you'll be able to fix this? Hi Magnus, yes I do plan on fixing this. I've just been a bit busy and tired is all, and also to be honest I don't quite understand some of Phil's reviews, which is why I'm asking for clarification on some of them first ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2008743382 From jwaters at openjdk.org Wed Mar 20 06:48:41 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 20 Mar 2024 06:48:41 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v46] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <5WJnl6Z9RyYzZrDStf9p74gus07Stz6S6NHwVpGQO3M=.0a04a120-77b5-48c3-9ae8-7d37c9646463@github.com> Message-ID: <0zriWFk8mESin6eTDm4kH02213a8tTq5gEBx41NtZ8Y=.74965e93-6475-44ee-805b-73c477aede94@github.com> On Wed, 20 Mar 2024 06:22:50 GMT, Julian Waters wrote: >> src/java.desktop/windows/native/libawt/windows/awt_Component.cpp line 6366: >> >>> 6364: jobject parent = data->parentComp; >>> 6365: >>> 6366: AwtComponent *awtComponent = nullptr; >> >> Looking at it (not tested) here through 6403 could be simplified as >> >> if (self == NULL || parent == NULL) { >> env->ExceptionClear(); >> JNU_ThrowNullPointerException(env, "peer"); >> env->DeleteGlobalRef(self); >> env->DeleteGlobalRef(parent); >> delete data; >> return; >> } >> >> AwtComponent *awtComponent = (AwtComponent *)JNI_GET_PDATA(self); >> if (awtComponent == NULL) { >> THROW_NULL_PDATA_IF_NOT_DESTROYED(self); >> env->DeleteGlobalRef(self); >> env->DeleteGlobalRef(parent); >> delete data; >> return; >> } >> >> AwtComponent *awtParent = (AwtComponent *)JNI_GET_PDATA(parent); >> if (awtParent == NULL) { >> THROW_NULL_PDATA_IF_NOT_DESTROYED(parent); >> env->DeleteGlobalRef(self); >> env->DeleteGlobalRef(parent); >> delete data; >> return; >> } >> >> >> I think I prefer that over >> BOOL error = FALSE; >> AwtComponent *awtComponent = nullptr; >> AwtComponent *awtParent = nullptr; >> >> if (self == NULL || parent == NULL) { >> env->ExceptionClear(); >> JNU_ThrowNullPointerException(env, "peer"); >> error = TRUE; >> } >> >> if (!error) { >> awtComponent = (AwtComponent *)JNI_GET_PDATA(self); >> if (awtComponent == NULL) { >> THROW_NULL_PDATA_IF_NOT_DESTROYED(self); >> error = TRUE; >> } >> } >> >> if (!error) { >> awtParent = (AwtComponent *)JNI_GET_PDATA(parent); >> if (awtParent == NULL) { >> THROW_NULL_PDATA_IF_NOT_DESTROYED(parent); >> error = TRUE; >> } >> >> if (error) { >> env->DeleteGlobalRef(self); >> env->DeleteGlobalRef(parent); >> delete data; >> return; >> } > > Sorry, I don't see a BOOL error anywhere? I see the advantage of collapsing self and parent into the same check, but it doesn't seem like getting rid of pData is of much benefit, the checks for null seem to remain the same either way ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1531567293 From psadhukhan at openjdk.org Wed Mar 20 06:50:19 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 06:50:19 GMT Subject: RFR: JDK-8328379 : Convert URLDragTest.html applet test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:53:50 GMT, Harshitha Onkar wrote: > Following test - test/jdk/java/awt/dnd/URLDragTest/URLDragTest.html is converted from applet to main using PassFailJFrame. > > PassFailJFrame's `logArea()` is used for logging messages. Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18364#pullrequestreview-1948039625 From abhiscxk at openjdk.org Wed Mar 20 08:22:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 08:22:20 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: On Wed, 20 Mar 2024 06:01:25 GMT, Tejesh R wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor fix > > test/jdk/javax/swing/JTabbedPane/bug4666224.java line 54: > >> 52: ON ALL PLATFORMS >> 53: 1. Click on any of the tabs, focus indicator is visible. >> 54: 2. Lose focus on the window by clicking on some other window. > > Lose focus? Yeah, it means the current focused windows should not be focused. > test/jdk/javax/swing/JTabbedPane/bug4666224.java line 132: > >> 130: map.put("bottom", new RotateAction(JTabbedPane.BOTTOM)); >> 131: map.put("changeLayout", new ChangeLayoutAction()); >> 132: map.put("dump", new DumpAction()); > > `DumpAction `can also be mentioned in INSTRUCTIONS I guess, since its been used here. There is no instruction mentioned in old applet test. Kept it as it is. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531660249 PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531660927 From abhiscxk at openjdk.org Wed Mar 20 08:30:36 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 08:30:36 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v5] In-Reply-To: References: Message-ID: > Conversion of manual applet test to main based using PassFailJFrame manual framework Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18233/files - new: https://git.openjdk.org/jdk/pull/18233/files/4e5c83d6..90ba58cc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18233&range=03-04 Stats: 23 lines in 1 file changed: 10 ins; 11 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18233.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18233/head:pull/18233 PR: https://git.openjdk.org/jdk/pull/18233 From abhiscxk at openjdk.org Wed Mar 20 08:30:36 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 08:30:36 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v4] In-Reply-To: <87TT43vLzavbC6ursccLOMzGwGXvdOj7FUUBcv-GHp0=.37f8222f-ed56-4134-9e1c-3ced7eee6131@github.com> References: <87TT43vLzavbC6ursccLOMzGwGXvdOj7FUUBcv-GHp0=.37f8222f-ed56-4134-9e1c-3ced7eee6131@github.com> Message-ID: On Wed, 20 Mar 2024 06:32:26 GMT, Tejesh R wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> jtreg manual tag update > > test/jdk/javax/swing/JToggleButton/bug4128979.java line 32: > >> 30: * @summary Tests that background changes correctly in WinLF for JToggleButton when pressed >> 31: * @run main/manual bug4128979 >> 32: */ > > Move it after imports. Updated but placing of imports is still confusing. > test/jdk/javax/swing/JToggleButton/bug4128979.java line 55: > >> 53: >> 54: public class bug4128979 { >> 55: private static JFrame frame; > > `frame `can be moved inside `createAndShowUI()`. Updated. > test/jdk/javax/swing/JToggleButton/bug4128979.java line 65: > >> 63: >> 64: If the background color does not change correctly for at least one button, >> 65: the test fails. """; > > Getting a white space after `fails.`, can you check once. Not a problem though since it is part of instruction. Anyways removed extra space. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1531667599 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1531669136 PR Review Comment: https://git.openjdk.org/jdk/pull/18233#discussion_r1531670435 From psadhukhan at openjdk.org Wed Mar 20 09:27:59 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 09:27:59 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v2] In-Reply-To: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: > Few closed manual applet tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Frame title ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18390/files - new: https://git.openjdk.org/jdk/pull/18390/files/40d3aed0..a7ab52c3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18390.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18390/head:pull/18390 PR: https://git.openjdk.org/jdk/pull/18390 From tr at openjdk.org Wed Mar 20 09:46:21 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 09:46:21 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v2] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: On Wed, 20 Mar 2024 09:27:59 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Frame title test/jdk/javax/swing/JFrame/bug4419914.java line 31: > 29: * @build PassFailJFrame > 30: * @run main/manual bug4419914 > 31: */ In most of the test which we are converting to main, we are moving the jtreg tags after imports. You are planning to retain it before imports? test/jdk/javax/swing/text/bug4148489.java line 31: > 29: * @build PassFailJFrame > 30: * @run main/manual bug4148489 > 31: */ One space gap. test/jdk/javax/swing/text/html/StyleSheet/bug4803145.java line 42: > 40: import javax.swing.text.html.HTMLEditorKit; > 41: > 42: Extra line space here. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1531765711 PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1531760308 PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1531768785 From tr at openjdk.org Wed Mar 20 10:02:23 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 10:02:23 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 01:47:01 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests test/jdk/javax/swing/JColorChooser/Test6977726.java line 42: > 40: PassFailJFrame.builder() > 41: .title("Test6977726") > 42: .instructions("Check that there is an empty panel titled \"Preview\" in the JColorChooser.") Exceeds line column length. test/jdk/javax/swing/JColorChooser/Test6977726.java line 56: > 54: return chooser; > 55: } > 56: } Line spacing at end is missing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1531788673 PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1531793270 From tr at openjdk.org Wed Mar 20 10:05:21 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 10:05:21 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: On Wed, 20 Mar 2024 08:19:29 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JTabbedPane/bug4666224.java line 54: >> >>> 52: ON ALL PLATFORMS >>> 53: 1. Click on any of the tabs, focus indicator is visible. >>> 54: 2. Lose focus on the window by clicking on some other window. >> >> Lose focus? > > Yeah, it means the current focused windows should not be focused. I was getting confused whether it should be lose or loose in this context? >> test/jdk/javax/swing/JTabbedPane/bug4666224.java line 132: >> >>> 130: map.put("bottom", new RotateAction(JTabbedPane.BOTTOM)); >>> 131: map.put("changeLayout", new ChangeLayoutAction()); >>> 132: map.put("dump", new DumpAction()); >> >> `DumpAction `can also be mentioned in INSTRUCTIONS I guess, since its been used here. > > There is no instruction mentioned in old applet test. Kept it as it is. I guess you can update it since its there in the test, still not mandatory. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531797814 PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1531798987 From psadhukhan at openjdk.org Wed Mar 20 10:18:43 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 10:18:43 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v3] In-Reply-To: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: <8vhHRuJd0YGltreMN3r7arqjVGjLrr9MQ1KA_Lp4PVg=.511c21c2-13a8-486c-a06a-53ee02a62f67@github.com> > Few closed manual applet tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18390/files - new: https://git.openjdk.org/jdk/pull/18390/files/a7ab52c3..74433845 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=01-02 Stats: 2 lines in 2 files changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18390.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18390/head:pull/18390 PR: https://git.openjdk.org/jdk/pull/18390 From psadhukhan at openjdk.org Wed Mar 20 10:18:44 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 10:18:44 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v2] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: On Wed, 20 Mar 2024 09:41:39 GMT, Tejesh R wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> Frame title > > test/jdk/javax/swing/JFrame/bug4419914.java line 31: > >> 29: * @build PassFailJFrame >> 30: * @run main/manual bug4419914 >> 31: */ > > In most of the test which we are converting to main, we are moving the jtreg tags after imports. You are planning to retain it before imports? yes not mandated yet..till then individual choice.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1531813814 From tr at openjdk.org Wed Mar 20 10:21:21 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 20 Mar 2024 10:21:21 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v3] In-Reply-To: <8vhHRuJd0YGltreMN3r7arqjVGjLrr9MQ1KA_Lp4PVg=.511c21c2-13a8-486c-a06a-53ee02a62f67@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <8vhHRuJd0YGltreMN3r7arqjVGjLrr9MQ1KA_Lp4PVg=.511c21c2-13a8-486c-a06a-53ee02a62f67@github.com> Message-ID: On Wed, 20 Mar 2024 10:18:43 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > spacing Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18390#pullrequestreview-1948458616 From kizune at openjdk.org Wed Mar 20 13:43:28 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 13:43:28 GMT Subject: Integrated: 8328367: Convert java/awt/Component/UpdatingBootTime test to main In-Reply-To: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> References: <9gtCIzXrOP-RQJyjhkP8ibENRjEXP9rMUkEbZry4uWc=.2d949d4b-c1ed-45b0-84b9-82859af8a4b0@github.com> Message-ID: On Mon, 18 Mar 2024 17:32:04 GMT, Alexander Zuev wrote: > Convert test to manual main > Move test to the Component folder This pull request has now been integrated. Changeset: 03c25b15 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/03c25b15eb73e594d1329be397cd34e206d2682b Stats: 363 lines in 3 files changed: 98 ins; 265 del; 0 mod 8328367: Convert java/awt/Component/UpdatingBootTime test to main Reviewed-by: dnguyen, psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18355 From kizune at openjdk.org Wed Mar 20 13:48:30 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 13:48:30 GMT Subject: Integrated: 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main In-Reply-To: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> References: <2yId9SKzUfB9ZnRy1Ma_m6jye3Mad5UIx-mxcgcZdZ8=.b71c078f-0a57-4b4c-b1ce-a98d23df0b48@github.com> Message-ID: On Mon, 18 Mar 2024 18:16:08 GMT, Alexander Zuev wrote: > Convert test to main manual and move to the appropriate folder > Remove old files This pull request has now been integrated. Changeset: e0373e01 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/e0373e01fece310d12859207cc5e233f68b7607f Stats: 219 lines in 3 files changed: 90 ins; 129 del; 0 mod 8328378: Convert java/awt/FileDialog/FileDialogForDirectories test to main Reviewed-by: psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18358 From kizune at openjdk.org Wed Mar 20 13:49:47 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 13:49:47 GMT Subject: RFR: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main [v4] In-Reply-To: References: Message-ID: > Convert test to manual main and move from the dedicated folder > Remove old files Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Made colors variable local. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18357/files - new: https://git.openjdk.org/jdk/pull/18357/files/ffd314ee..7dd74880 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18357&range=02-03 Stats: 2 lines in 1 file changed: 1 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18357.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18357/head:pull/18357 PR: https://git.openjdk.org/jdk/pull/18357 From kizune at openjdk.org Wed Mar 20 13:49:48 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 13:49:48 GMT Subject: Integrated: 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:59:37 GMT, Alexander Zuev wrote: > Convert test to manual main and move from the dedicated folder > Remove old files This pull request has now been integrated. Changeset: 1b68c731 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/1b68c731f2461a2f26e6d967dd3f94e217b4d1f4 Stats: 364 lines in 3 files changed: 99 ins; 265 del; 0 mod 8328377: Convert java/awt/Cursor/MultiResolutionCursorTest test to main Reviewed-by: psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18357 From kizune at openjdk.org Wed Mar 20 13:51:28 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 13:51:28 GMT Subject: Integrated: 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 21:00:36 GMT, Alexander Zuev wrote: > Convert applet based test to a main based test; > Move test to an apporpriate location; > Remove old files; This pull request has now been integrated. Changeset: e5e7cd20 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/e5e7cd20eca0e5a5f0811d304a9659961dcf11c0 Stats: 246 lines in 3 files changed: 105 ins; 141 del; 0 mod 8328386: Convert java/awt/FileDialog/FileNameOverrideTest test to main Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18365 From kizune at openjdk.org Wed Mar 20 15:48:41 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 15:48:41 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main [v4] In-Reply-To: References: Message-ID: > Convert test to main manual; > Move test to appropriate folder; > Delete old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Moving test metadata closer to the class definition for better readability; Making test automatically skip execution on unsuported toolkit; Eliminated the separate frame, moving button inside the PassFailJFrame; Corrected test instructions accordingly; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18361/files - new: https://git.openjdk.org/jdk/pull/18361/files/9c9e8fbb..6dd4e7f9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=02-03 Stats: 31 lines in 1 file changed: 9 ins; 14 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18361.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18361/head:pull/18361 PR: https://git.openjdk.org/jdk/pull/18361 From kizune at openjdk.org Wed Mar 20 16:07:50 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 16:07:50 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v3] In-Reply-To: References: Message-ID: > Convert test to a main method based; > Move test to an apropriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Moved test metadate closer to the class definition; Made variables local; Made test skip execution on an unsupported toolkit; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18363/files - new: https://git.openjdk.org/jdk/pull/18363/files/9c5554f7..132bcbc6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=01-02 Stats: 32 lines in 1 file changed: 16 ins; 15 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18363.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18363/head:pull/18363 PR: https://git.openjdk.org/jdk/pull/18363 From dnguyen at openjdk.org Wed Mar 20 16:19:33 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:19:33 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18307/files - new: https://git.openjdk.org/jdk/pull/18307/files/5155ccfc..44ab8889 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18307&range=02-03 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18307.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18307/head:pull/18307 PR: https://git.openjdk.org/jdk/pull/18307 From dnguyen at openjdk.org Wed Mar 20 16:19:34 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:19:34 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v3] In-Reply-To: <4eNSBSTLXFeldurtMbp0bmnLnS19TOUcQygVnCRsVXE=.3fd7d79b-58ba-495a-8017-c16e4c4e303d@github.com> References: <4eNSBSTLXFeldurtMbp0bmnLnS19TOUcQygVnCRsVXE=.3fd7d79b-58ba-495a-8017-c16e4c4e303d@github.com> Message-ID: On Tue, 19 Mar 2024 23:36:31 GMT, Harshitha Onkar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review changes > > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 27: > >> 25: * @bug 4078566 6658398 >> 26: * @library /java/awt/regtesthelpers >> 27: * @build PassFailJFrame > > How about we add @requires os.family == "linux" additionally here? Added > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 29: > >> 27: * @build PassFailJFrame >> 28: * @summary Test for a memory leak in Image. >> 29: * @run main MemoryLeakTest > > missing manual here Fixed > test/jdk/java/awt/image/MemoryLeakTest/MemoryLeakTest.java line 42: > >> 40: private static final String INSTRUCTIONS = >> 41: """ >> 42: Do the following steps on Solaris only. > > Since the test can be run on Unix platforms, how about including it in the instructions. > Suggestion: > > Do the following steps on Unix platforms. Fixed ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1532394025 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1532393776 PR Review Comment: https://git.openjdk.org/jdk/pull/18307#discussion_r1532393605 From honkar at openjdk.org Wed Mar 20 16:24:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 16:24:22 GMT Subject: RFR: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main [v4] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:19:33 GMT, Damon Nguyen wrote: >> Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review comments Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18307#pullrequestreview-1949412354 From dnguyen at openjdk.org Wed Mar 20 16:26:39 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:26:39 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: - Modify instructions more - Modify instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18362/files - new: https://git.openjdk.org/jdk/pull/18362/files/bb9d6848..5db0a4af Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=01-02 Stats: 9 lines in 1 file changed: 3 ins; 0 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/18362.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18362/head:pull/18362 PR: https://git.openjdk.org/jdk/pull/18362 From dnguyen at openjdk.org Wed Mar 20 16:26:39 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:26:39 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v2] In-Reply-To: References: Message-ID: <7rpTnSgUrlQU4Nt_w9_7lK3c8EcaoPjUK5AXL_uFQHQ=.dfce7c36-4087-4265-9028-cc6a8856861a@github.com> On Tue, 19 Mar 2024 23:04:54 GMT, Phil Race wrote: >> Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: >> >> - Remove unused frame >> - splitUI addition. Add forceFail > > test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 57: > >> 55: Finish printing or close the dialog. If both dialogs are modal, >> 56: PASS the test. Otherwise, FAIL. >> 57: """; > > I think we need more instructions - explaining Modal and what to expect. > "Modal in this case means that it blocks the user from interacting with other windows in the same application > You may still be able to interact with unrelated applications on the desktop. > One sure way to test this is to first show the print dialog and then press "Fail", because if you can click on "Fail" > and have it respond, then the print dialog was not modal. If clicking on it does nothing then cancel the print dialog > and do the same for the other print dialog. > If all is well, then press Pass." Makes sense. Added modal description to instructions as suggested. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1532406097 From dnguyen at openjdk.org Wed Mar 20 16:28:26 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:28:26 GMT Subject: Integrated: 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 16:40:56 GMT, Damon Nguyen wrote: > Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main using PassFailJFrame This pull request has now been integrated. Changeset: 4e83f4cf Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/4e83f4cfc779e39cca0070b5729a508aeaa74654 Stats: 174 lines in 1 file changed: 41 ins; 94 del; 39 mod 8328185: Convert java/awt/image/MemoryLeakTest/MemoryLeakTest.java applet test to main Reviewed-by: azvegint, honkar ------------- PR: https://git.openjdk.org/jdk/pull/18307 From dnguyen at openjdk.org Wed Mar 20 16:34:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:34:21 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v2] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 21:07:44 GMT, Harshitha Onkar wrote: >> Following test is converted to main using PassFailJFrame. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instructions updated Do we need to add any instructions regarding the blue "empty" boxes that appear? test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 53: > 51: On the systems that supports pictured drag, the image under the drag-cursor > 52: should appear. > 53: "Image under drag-cursor" is a translucent blue rectangle + red circle Suggestion: On the systems that supports pictured drag, the image under the drag-cursor should appear. "Image under drag-cursor" is a translucent blue rectangle + red circle In the instructions window, there's an extra newline due to exceeding the character limit per line. ------------- Changes requested by dnguyen (Committer). PR Review: https://git.openjdk.org/jdk/pull/18315#pullrequestreview-1949433569 PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532417383 From aivanov at openjdk.org Wed Mar 20 16:38:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 16:38:23 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v3] In-Reply-To: <8vhHRuJd0YGltreMN3r7arqjVGjLrr9MQ1KA_Lp4PVg=.511c21c2-13a8-486c-a06a-53ee02a62f67@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <8vhHRuJd0YGltreMN3r7arqjVGjLrr9MQ1KA_Lp4PVg=.511c21c2-13a8-486c-a06a-53ee02a62f67@github.com> Message-ID: On Wed, 20 Mar 2024 10:18:43 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > spacing Changes requested by aivanov (Reviewer). test/jdk/javax/swing/JFrame/bug4419914.java line 71: > 69: frame.enableInputMethods(false); > 70: frame.getContentPane().setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); > 71: frame.getContentPane().setLocale(new Locale("en")); Suggestion: frame.getContentPane().setLocale(Locale.ENGLISH); test/jdk/javax/swing/text/PaintTest.java line 83: > 81: if (getFont() != null) { > 82: size.height += getFontMetrics(getFont()). > 83: getHeight() / 2; Suggestion: size.height += getFontMetrics(getFont()) .getHeight() / 2; Wrap the `.` operator to the next line. test/jdk/javax/swing/text/html/StyleSheet/bug4803145.java line 81: > 79: jep.setText(text); > 80: > 81: f.setSize(500,500); Suggestion: f.setSize(500, 500); ------------- PR Review: https://git.openjdk.org/jdk/pull/18390#pullrequestreview-1949432377 PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1532416576 PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1532422176 PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1532425463 From honkar at openjdk.org Wed Mar 20 16:43:45 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 16:43:45 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main Message-ID: Following test is converted from applet to main using PassFailJFrame. The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. ------------- Commit messages: - delete html file - instructions updated - test changes - test file moved Changes: https://git.openjdk.org/jdk/pull/18402/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328398 Stats: 241 lines in 3 files changed: 110 ins; 131 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18402.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18402/head:pull/18402 PR: https://git.openjdk.org/jdk/pull/18402 From honkar at openjdk.org Wed Mar 20 16:45:24 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 16:45:24 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:31:32 GMT, Damon Nguyen wrote: > Do we need to add any instructions regarding the blue "empty" boxes that appear? Since we are checking the second case i.e CTRL + Mouse Drag, the empty boxes don't appear hence I skipped it. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18315#issuecomment-2010025314 From psadhukhan at openjdk.org Wed Mar 20 16:46:45 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Wed, 20 Mar 2024 16:46:45 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> > Few closed manual applet tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: REview update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18390/files - new: https://git.openjdk.org/jdk/pull/18390/files/74433845..bac1ecb3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=02-03 Stats: 4 lines in 3 files changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18390.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18390/head:pull/18390 PR: https://git.openjdk.org/jdk/pull/18390 From dnguyen at openjdk.org Wed Mar 20 16:51:45 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 16:51:45 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main Message-ID: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame ------------- Commit messages: - Add test in new location - Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18403/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328558 Stats: 350 lines in 4 files changed: 107 ins; 243 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18403.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18403/head:pull/18403 PR: https://git.openjdk.org/jdk/pull/18403 From honkar at openjdk.org Wed Mar 20 16:59:47 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 16:59:47 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v2] In-Reply-To: References: Message-ID: > Following test is converted from applet to main using PassFailJFrame. > > The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** > I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. > > This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: instruction line length ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18402/files - new: https://git.openjdk.org/jdk/pull/18402/files/e1fdb064..3dcb944c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=00-01 Stats: 20 lines in 1 file changed: 2 ins; 0 del; 18 mod Patch: https://git.openjdk.org/jdk/pull/18402.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18402/head:pull/18402 PR: https://git.openjdk.org/jdk/pull/18402 From aivanov at openjdk.org Wed Mar 20 17:00:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 17:00:22 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: Message-ID: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> On Tue, 19 Mar 2024 20:39:07 GMT, Harshitha Onkar wrote: >> test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 49: >> >>> 47: below the instruction window. >>> 48: Please make sure that some of the messages have non-zero 'wheelRotation' value, >>> 49: and also check if the test works OK if the mouse wheel is rotated very slow. >> >> Shall we increase the width of the instruction window so that less horizontal scrolling is needed? >> >> The test can actually verify the condition without help from the user. The handler for `MouseWheelListener` could well look into the `MouseWheelEvent` and verify _automatically_ if `scrollType=WHEEL_UNIT_SCROLL` and there are any events with `wheelRotation=1` (or rather `wheelRotation!=0`). >> >> You can even `forcePass` the test as soon as you detected few events which satisfy the condition. >> >> If you don't see events with `scrollType=WHEEL_UNIT_SCROLL`, then the mouse doesn't support high-resolution scrolling. > > @aivanov-jdk Semi-automated the test, it now passes when 5 or more MouseWheelEvent of type: scrollType=WHEEL_UNIT_SCROLL & wheelRotation != 0 is recorded. Updated the instructions accordingly. I think we should update the instructions. A high resolution mouse produces events like this: java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(133,46),absolute(1104,321),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 Thus, `wheelRotation=0` while `preciseWheelRotation=0.25`. When it reaches, `preciseWheelRotation=1.0`, the event contains **`wheelRotation=1`**. A regular mouse with mouse-wheel notches produces the following events: java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(90,115),absolute(1061,390),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(176,76),absolute(1147,351),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 As you can see, `scrollType=WHEEL_UNIT_SCROLL` is the same in both cases. The only difference is that high-resolution mouse produces events where **`preciseWheelRotation < 1.0`**. This means that you should also track the value of `preciseWheelRotation`. Otherwise, the test will pass when a regular mouse is used. You may show a warning to the user if you detect, let's say, 5 events with `wheelRotation=1` but none of the events had `wheelRotation=0` and `preciseWheelRotation < 1.0`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1532468459 From prr at openjdk.org Wed Mar 20 17:04:36 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:04:36 GMT Subject: RFR: 8328300: Convert PrintDialogsTest.java from Applet to main program [v2] In-Reply-To: References: Message-ID: > This applet test is converted to a main program using PassFailJFrame. > Other than that, the main thing I improved is the instructions. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328300 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18333/files - new: https://git.openjdk.org/jdk/pull/18333/files/c9d56f03..8458a1aa Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18333&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18333&range=00-01 Stats: 6 lines in 1 file changed: 4 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18333.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18333/head:pull/18333 PR: https://git.openjdk.org/jdk/pull/18333 From prr at openjdk.org Wed Mar 20 17:04:36 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:04:36 GMT Subject: RFR: 8328300: Convert PrintDialogsTest.java from Applet to main program In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 21:20:04 GMT, Phil Race wrote: > This applet test is converted to a main program using PassFailJFrame. > Other than that, the main thing I improved is the instructions. I added empty labels as spacing ------------- PR Comment: https://git.openjdk.org/jdk/pull/18333#issuecomment-2010069676 From aivanov at openjdk.org Wed Mar 20 17:12:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 17:12:21 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> Message-ID: On Wed, 20 Mar 2024 16:46:45 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > REview update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18390#pullrequestreview-1949549703 From dnguyen at openjdk.org Wed Mar 20 17:13:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 17:13:21 GMT Subject: RFR: 8328300: Convert PrintDialogsTest.java from Applet to main program [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:04:36 GMT, Phil Race wrote: >> This applet test is converted to a main program using PassFailJFrame. >> Other than that, the main thing I improved is the instructions. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328300 Marked as reviewed by dnguyen (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18333#pullrequestreview-1949554083 From honkar at openjdk.org Wed Mar 20 17:13:34 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 17:13:34 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v3] In-Reply-To: References: Message-ID: <9BcQwKYpNGUpK8-qEkf7cCcpQPLQB1ZWXc7oGiLUDVg=.623e63f7-5c26-4b18-8867-5aa7a2b157d8@github.com> > Following test is converted to main using PassFailJFrame. Harshitha Onkar has updated the pull request incrementally with two additional commits since the last revision: - minor fix - instruction line-lengths ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18315/files - new: https://git.openjdk.org/jdk/pull/18315/files/8ec60632..7e35e23d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=01-02 Stats: 14 lines in 1 file changed: 1 ins; 0 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18315.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18315/head:pull/18315 PR: https://git.openjdk.org/jdk/pull/18315 From aivanov at openjdk.org Wed Mar 20 17:13:34 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 17:13:34 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v2] In-Reply-To: References: Message-ID: <8RCbCOaEQlmsCWcT9Oo60Jxm7cK5Lr8aYizCYQorW-I=.2c7279bd-02ef-4f6f-8c72-3e21a8f82f32@github.com> On Tue, 19 Mar 2024 21:07:44 GMT, Harshitha Onkar wrote: >> Following test is converted to main using PassFailJFrame. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instructions updated Changes requested by aivanov (Reviewer). test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 46: > 44: > 45: 1. Click on the button and drag to the red panel by pressing > 46: the "CTRL" key on the keyboard. Suggestion: 1. Click on the button and drag it to the red panel while holding the "CTRL" key on the keyboard. test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 59: > 57: On Windows system the image under cursor would be visible ONLY over > 58: the drop targets with activated extended OLE D'n'D support (that are, > 59: the desktop and IE). Suggestion: On Windows, the image under the cursor would be visible ONLY over drop targets with activated extended D'n'D support. It means the image may not be displayed when dragging over some windows, it is not error. The image should be display when dragging over the red/yellow panel. Let's clarify the instructions a bit. test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 65: > 63: The panel should turn red again and a yellow button labeled , > 64: "Drag ME!" should appear inside the panel. You should be able, > 65: to repeat this operation multiple times. Suggestion: The panel should turn red again and a yellow button labeled "Drag ME!" should appear inside the panel. You should be able to repeat this operation multiple times. No comma here. ------------- PR Review: https://git.openjdk.org/jdk/pull/18315#pullrequestreview-1949533848 PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532478358 PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532484264 PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532486266 From dnguyen at openjdk.org Wed Mar 20 17:13:34 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 17:13:34 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v3] In-Reply-To: <9BcQwKYpNGUpK8-qEkf7cCcpQPLQB1ZWXc7oGiLUDVg=.623e63f7-5c26-4b18-8867-5aa7a2b157d8@github.com> References: <9BcQwKYpNGUpK8-qEkf7cCcpQPLQB1ZWXc7oGiLUDVg=.623e63f7-5c26-4b18-8867-5aa7a2b157d8@github.com> Message-ID: On Wed, 20 Mar 2024 17:10:54 GMT, Harshitha Onkar wrote: >> Following test is converted to main using PassFailJFrame. > > Harshitha Onkar has updated the pull request incrementally with two additional commits since the last revision: > > - minor fix > - instruction line-lengths Makes sense. Confirmed OK with CTRL. ------------- Marked as reviewed by dnguyen (Committer). PR Review: https://git.openjdk.org/jdk/pull/18315#pullrequestreview-1949549383 From abhiscxk at openjdk.org Wed Mar 20 17:25:19 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 17:25:19 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: On Wed, 20 Mar 2024 10:01:59 GMT, Tejesh R wrote: >> Yeah, it means the current focused windows should not be focused. > > I was getting confused whether it should be lose or loose in this context? I think `Lose` is ok. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18340#discussion_r1532508275 From dnguyen at openjdk.org Wed Mar 20 17:26:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 17:26:21 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:07:50 GMT, Alexander Zuev wrote: >> Convert test to a main method based; >> Move test to an apropriate location; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Moved test metadate closer to the class definition; > Made variables local; > Made test skip execution on an unsupported toolkit; Changes requested by dnguyen (Committer). test/jdk/java/awt/FileDialog/FileDialogReturnTest.java line 46: > 44: * @library /test/lib > 45: * @build PassFailJFrame > 46: * @build jtreg.SkippedException Suggestion: * @library /java/awt/regtesthelpers /test/lib * @build PassFailJFrame jtreg.SkippedException Not positive if this is correct, but I was able to combine the `@library` and `@build` on one line by adding a space between the two. test/jdk/java/awt/FileDialog/FileDialogReturnTest.java line 47: > 45: * @build PassFailJFrame > 46: * @build jtreg.SkippedException > 47: * @run main/manual FileDialogReturnTest.html This still runs on the `.html` file. Does this run correctly for you when testing? ------------- PR Review: https://git.openjdk.org/jdk/pull/18363#pullrequestreview-1949578878 PR Review Comment: https://git.openjdk.org/jdk/pull/18363#discussion_r1532505591 PR Review Comment: https://git.openjdk.org/jdk/pull/18363#discussion_r1532509430 From prr at openjdk.org Wed Mar 20 17:27:44 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:27:44 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v2] In-Reply-To: References: Message-ID: > This seems to have been some previous not very complete conversion of a test from applet to main. > It even still had Applet imported and miscellaneous comments. I've cleaned it up. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328560 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18386/files - new: https://git.openjdk.org/jdk/pull/18386/files/5f9e257c..f4f4c335 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18386&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18386&range=00-01 Stats: 40 lines in 1 file changed: 11 ins; 21 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18386.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18386/head:pull/18386 PR: https://git.openjdk.org/jdk/pull/18386 From prr at openjdk.org Wed Mar 20 17:27:45 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:27:45 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v2] In-Reply-To: References: Message-ID: <1-FT5fa2Hcl7l-jGF4ahsi8PpkhbWCX3OnGtw1k-Jkg=.e9fbf6a5-1773-48c9-942e-00b3a26a753e@github.com> On Wed, 20 Mar 2024 00:32:17 GMT, Alexander Zvegintsev wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328560 > > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 25: > >> 23: >> 24: /* >> 25: @test 1.2 98/08/05 > > Now we don't have `@test` at all. oops, fixed > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 29: > >> 27: @summary Tests that clicking mouse and pressing keys generates correct amount of click-counts >> 28: @run main ClickDuringKeypress >> 29: */ > > We usually move this block just before a class declaration, for better readability. ok > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 53: > >> 51: static volatile Frame frame; >> 52: static volatile Robot robot; >> 53: static volatile ClickDuringKeypress clicker; > > Suggestion: > > static final ClickDuringKeypress clicker = new ClickDuringKeypress(); > > `clicker` can be made final ok > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 61: > >> 59: robot = new Robot(); >> 60: robot.mouseMove(200, 200); >> 61: EventQueue.invokeAndWait(frame::show); > > Suggestion: > > EventQueue.invokeAndWait(() -> frame.setVisible(true)); > > > `show` is deprecated. yeah I know, I changed this as you suggested but (1) I like the :: syntax, (2) I never thought it was necessary to deprecate show() > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 96: > >> 94: throw new RuntimeException("Not Activated. Test fails"); >> 95: } >> 96: } > > Do we really need this synchronization? > Shouldn't the standard > > robot.waitForIdle(); > robot.delay(1000); > > be enough? OK .. changed .. but I'm now a long way from removing an un-used import as a lot of this test is now quite different than before. > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 111: > >> 109: for (int i = 0; i < CLICKCOUNT / 2; i++) { >> 110: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); >> 111: robot.delay(10); > > Here and after > Suggestion: > > > > We have already called `robot.setAutoDelay(DOUBLE_CLICK_AUTO_DELAY);` before. We can set `DOUBLE_CLICK_AUTO_DELAY` to 20 and remove the multiple `robot.delay(10)` calls. > > Probably we also want to add `setAutoWaitForIdle(true)` ok ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532506155 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532510812 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532510509 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532508651 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532509878 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532510220 From prr at openjdk.org Wed Mar 20 17:29:21 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:29:21 GMT Subject: RFR: 8195675: Call to insertText with single character from custom Input Method ignored In-Reply-To: References: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> Message-ID: On Mon, 4 Mar 2024 17:02:29 GMT, Phil Race wrote: >> 8195675: Call to insertText with single character from custom Input Method ignored > > Marked as reviewed by prr (Reviewer). > I'm able to build this again, but not satisfied that it solves the issue, so I am still investigating. Should I rebase this upon latest master or somewhere else (now that 22 is released)? @prrace @srl295 You are based on main-line, which is now 23, so there should be nothing to do. If you feel you are out of date in some important way you can re-base but the release change would have nothing to do with that. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17921#issuecomment-2010167231 From honkar at openjdk.org Wed Mar 20 17:32:54 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 17:32:54 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v4] In-Reply-To: References: Message-ID: > Following test is converted to main using PassFailJFrame. Harshitha Onkar has updated the pull request incrementally with three additional commits since the last revision: - frame.setSize() used - review update - review update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18315/files - new: https://git.openjdk.org/jdk/pull/18315/files/7e35e23d..6c522e53 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=02-03 Stats: 11 lines in 1 file changed: 2 ins; 0 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18315.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18315/head:pull/18315 PR: https://git.openjdk.org/jdk/pull/18315 From aivanov at openjdk.org Wed Mar 20 17:32:54 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 17:32:54 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v4] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:29:58 GMT, Harshitha Onkar wrote: >> Following test is converted to main using PassFailJFrame. > > Harshitha Onkar has updated the pull request incrementally with three additional commits since the last revision: > > - frame.setSize() used > - review update > - review update Marked as reviewed by aivanov (Reviewer). test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 34: > 32: * @test > 33: * @bug 4874070 > 34: * @summary Tests CTRL + DnD functionality. I think summaries look better without the full stop in the end? test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 62: > 60: It means the image may not be displayed when dragging over some > 61: windows, it is not error. > 62: The image should be display when dragging over the red/yellow panel. Suggestion: windows, it is not an error. The image should be displayed when dragging over the red/yellow panel. ------------- PR Review: https://git.openjdk.org/jdk/pull/18315#pullrequestreview-1949594651 PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532516400 PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532515526 From honkar at openjdk.org Wed Mar 20 17:32:54 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 17:32:54 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v2] In-Reply-To: <8RCbCOaEQlmsCWcT9Oo60Jxm7cK5Lr8aYizCYQorW-I=.2c7279bd-02ef-4f6f-8c72-3e21a8f82f32@github.com> References: <8RCbCOaEQlmsCWcT9Oo60Jxm7cK5Lr8aYizCYQorW-I=.2c7279bd-02ef-4f6f-8c72-3e21a8f82f32@github.com> Message-ID: On Wed, 20 Mar 2024 17:03:41 GMT, Alexey Ivanov wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instructions updated > > test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 46: > >> 44: >> 45: 1. Click on the button and drag to the red panel by pressing >> 46: the "CTRL" key on the keyboard. > > Suggestion: > > 1. Click on the button and drag it to the red panel while holding > the "CTRL" key on the keyboard. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532507511 From aivanov at openjdk.org Wed Mar 20 17:32:55 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 17:32:55 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v3] In-Reply-To: <9BcQwKYpNGUpK8-qEkf7cCcpQPLQB1ZWXc7oGiLUDVg=.623e63f7-5c26-4b18-8867-5aa7a2b157d8@github.com> References: <9BcQwKYpNGUpK8-qEkf7cCcpQPLQB1ZWXc7oGiLUDVg=.623e63f7-5c26-4b18-8867-5aa7a2b157d8@github.com> Message-ID: On Wed, 20 Mar 2024 17:13:34 GMT, Harshitha Onkar wrote: >> Following test is converted to main using PassFailJFrame. > > Harshitha Onkar has updated the pull request incrementally with two additional commits since the last revision: > > - minor fix > - instruction line-lengths test/jdk/java/awt/dnd/ImageDecoratedDnD/ImageDecoratedDnD.java line 87: > 85: Component dragSource, dropTarget; > 86: > 87: frame.setBounds(0, 400, 400, 400); Suggestion: frame.setSize(400, 400); The frame is positioned by `PassFailJFrame`, so setting the location is redundant. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18315#discussion_r1532513704 From honkar at openjdk.org Wed Mar 20 17:35:47 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 17:35:47 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v5] In-Reply-To: References: Message-ID: > Following test is converted to main using PassFailJFrame. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: summary updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18315/files - new: https://git.openjdk.org/jdk/pull/18315/files/6c522e53..54543424 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=03-04 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18315.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18315/head:pull/18315 PR: https://git.openjdk.org/jdk/pull/18315 From abhiscxk at openjdk.org Wed Mar 20 17:37:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 17:37:20 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:46:40 GMT, Damon Nguyen wrote: > Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame LGTM. test/jdk/javax/swing/JCheckBox/bug8032667.java line 41: > 39: * @build PassFailJFrame > 40: * @summary [macosx] Components cannot be rendered in HiDPI to BufferedImage > 41: * @run main/manual bug8032667 Minor: May add a blank line after this. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18403#pullrequestreview-1949594433 PR Review Comment: https://git.openjdk.org/jdk/pull/18403#discussion_r1532515383 From honkar at openjdk.org Wed Mar 20 17:38:35 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 17:38:35 GMT Subject: RFR: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main [v6] In-Reply-To: References: Message-ID: > Following test is converted to main using PassFailJFrame. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: instructions updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18315/files - new: https://git.openjdk.org/jdk/pull/18315/files/54543424..362aff06 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18315&range=04-05 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18315.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18315/head:pull/18315 PR: https://git.openjdk.org/jdk/pull/18315 From prr at openjdk.org Wed Mar 20 17:38:44 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:38:44 GMT Subject: RFR: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi [v2] In-Reply-To: References: Message-ID: > A simple fix to the test to skip sampling the leftmost and rightmost ends of the divider > to avoid possible issues at fractional scales. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328540 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18384/files - new: https://git.openjdk.org/jdk/pull/18384/files/9618fa4a..b8c3c48a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18384&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18384&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18384.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18384/head:pull/18384 PR: https://git.openjdk.org/jdk/pull/18384 From abhiscxk at openjdk.org Wed Mar 20 17:38:44 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 17:38:44 GMT Subject: RFR: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:35:14 GMT, Phil Race wrote: >> A simple fix to the test to skip sampling the leftmost and rightmost ends of the divider >> to avoid possible issues at fractional scales. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328540 Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18384#pullrequestreview-1949606489 From prr at openjdk.org Wed Mar 20 17:38:44 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 17:38:44 GMT Subject: RFR: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 04:25:52 GMT, Abhishek Kumar wrote: > 1. should we mention `-Dsun.java2d.uiScale` in jtreg tag since it is supposed to be a hidpi test ? No, since it is not a hidpi test, it is just a test that happens to fail in certain hidpi envts. And the fractional scale only works on windows anyway. It might be "interesting" to run all our tests with that option, but that's a different topic and is more easily and robustly accomplished by running on an actual hidpi envt. > 2. Please update copyright year. OK .. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18384#issuecomment-2010184385 From srl at openjdk.org Wed Mar 20 17:41:21 2024 From: srl at openjdk.org (Steven Loomis) Date: Wed, 20 Mar 2024 17:41:21 GMT Subject: RFR: 8195675: Call to insertText with single character from custom Input Method ignored In-Reply-To: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> References: <70yOUGT0N_mI3Pq8UVS-KgUAzZbtRhFniW8U16iVtlk=.7d6edddb-d68b-4b98-aaaf-1e60224dee0b@github.com> Message-ID: On Tue, 20 Feb 2024 02:08:09 GMT, Steven Loomis wrote: > 8195675: Call to insertText with single character from custom Input Method ignored Great. I'll keep investigating ------------- PR Comment: https://git.openjdk.org/jdk/pull/17921#issuecomment-2010198705 From abhiscxk at openjdk.org Wed Mar 20 17:44:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 20 Mar 2024 17:44:24 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:27:44 GMT, Phil Race wrote: >> This seems to have been some previous not very complete conversion of a test from applet to main. >> It even still had Applet imported and miscellaneous comments. I've cleaned it up. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328560 test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 45: > 43: > 44: public class ClickDuringKeypress implements MouseListener { > 45: //Declare things used in the test, like buttons and labels here Comments can be removed. test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 67: > 65: doTest(); > 66: } finally { > 67: if (frame != null) { null check should be done on EDT ? test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 88: > 86: robot.delay(1000); > 87: if (!ready) { > 88: System.out.println("Not Activated. Test fails"); Looks redundant. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532530344 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532531591 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532533350 From aivanov at openjdk.org Wed Mar 20 18:01:24 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 18:01:24 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame In-Reply-To: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: <4Gm8rlFmxk7XFbCasmgSLpp0HKe3OUbulAtDX1Gfhic=.b3d6f1ea-de53-4393-8ac6-ef2cbbf3e520@github.com> On Tue, 19 Mar 2024 01:14:29 GMT, Alexander Zvegintsev wrote: >> we need to add next to Pass/Fail a "Pause Timer" button, that > (a) stops the count down > (b) changes the Pause Timer to "Resume Timer" > ~~(c) disables Pass/Fail until the timer is resumed~~ > the test will not have to pause or be aware - only the PassFailJFrame machinery. > ~~So the tester can do anything they want except exit the test in the paused mode.~~ > > This PR implements everything except the (c). > I see nothing wrong with completing the test from the paused state, and it does not add an extra click. > > > Example screenshots: > > ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) > ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) Looks good overall. However, the _Pause Timer_ is quite large, it's larger than Pass or Fail button, and it attracts more attention. I would place the Pause button into the timeout panel at the top. Yet the button is larger than the label. The font may be reduced, a symbol '?' (U+23F8) and '?' (U+23F5) could be used (see [Media control symbols](https://en.wikipedia.org/wiki/Media_control_symbols)), or an image icon with a tooltip. The timeout and its UI elements ? the label and pause button ? may be encapsulated into `TimeoutHandler` and return a `JPanel`. Yet the above improvements could be handled separately. I agree there should be a way to pause the test. I agree that Pass and Fail button can remain enabled, the tester could proceed with the test even when the timer isn't running. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 647: > 645: private static final String PAUSE_BUTTON_LABEL = "Pause Timer"; > 646: private static final String RESUME_BUTTON_LABEL = "Resume Timer"; > 647: private long endTime; Suggestion: private static final String RESUME_BUTTON_LABEL = "Resume Timer"; private long endTime; test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 648: > 646: private static final String RESUME_BUTTON_LABEL = "Resume Timer"; > 647: private long endTime; > 648: private long pauseTimeLeft = 0L; Suggestion: private long pauseTimeLeft; Zero is the default value; you never use `pauseTimeLeft` before assigning it a value when the Pause button is pressed. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 704: > 702: } else { > 703: label.setText(label.getText().replace(PAUSED_LABEL_SUFFIX, "")); > 704: endTime = System.currentTimeMillis() + pauseTimeLeft; I'd rather call `updateTime(pauseTimeLeft)` here instead of editing the text. Suggestion: endTime = System.currentTimeMillis() + pauseTimeLeft; updateTime(pauseTimeLeft); ------------- Changes requested by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18368#pullrequestreview-1949607461 PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1532523214 PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1532529917 PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1532538482 From azvegint at openjdk.org Wed Mar 20 18:01:26 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 18:01:26 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:27:44 GMT, Phil Race wrote: >> This seems to have been some previous not very complete conversion of a test from applet to main. >> It even still had Applet imported and miscellaneous comments. I've cleaned it up. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328560 Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 24: > 22: */ > 23: > 24: import java.awt.AWTException; Suggestion: Unused test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 34: > 32: import java.awt.event.WindowAdapter; > 33: import java.awt.event.WindowEvent; > 34: import java.awt.event.WindowEvent; Suggestion: import java.awt.event.WindowEvent; test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 54: > 52: static volatile Frame frame; > 53: static volatile Robot robot; > 54: static final ClickDuringKeypress clicker = new ClickDuringKeypress(); On the other hand, we can get rid of the instantiation of this class and MouseListener empty methods overrides by simply adding this: frame.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { System.out.println(e.toString()); clicked = true; lastClickCount = e.getClickCount(); } }); Either way, I'm fine with it. ------------- PR Review: https://git.openjdk.org/jdk/pull/18386#pullrequestreview-1949640518 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532556420 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532544604 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1532555599 From achung at openjdk.org Wed Mar 20 18:01:51 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 20 Mar 2024 18:01:51 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: text block instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18316/files - new: https://git.openjdk.org/jdk/pull/18316/files/9652def1..00bf78b2 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=01-02 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18316.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18316/head:pull/18316 PR: https://git.openjdk.org/jdk/pull/18316 From achung at openjdk.org Wed Mar 20 18:02:37 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 20 Mar 2024 18:02:37 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v2] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18369/files - new: https://git.openjdk.org/jdk/pull/18369/files/19fa62e8..d0818756 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=00-01 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18369.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18369/head:pull/18369 PR: https://git.openjdk.org/jdk/pull/18369 From honkar at openjdk.org Wed Mar 20 18:12:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 18:12:28 GMT Subject: Integrated: JDK-8328225: Convert ImageDecoratedDnD.html applet test to main In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 22:41:20 GMT, Harshitha Onkar wrote: > Following test is converted to main using PassFailJFrame. This pull request has now been integrated. Changeset: a112fc8b Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/a112fc8bac8ddee87c8555b156519a2785d3223b Stats: 254 lines in 2 files changed: 52 ins; 185 del; 17 mod 8328225: Convert ImageDecoratedDnD.html applet test to main Reviewed-by: dnguyen, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18315 From aivanov at openjdk.org Wed Mar 20 18:16:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 20 Mar 2024 18:16:22 GMT Subject: RFR: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs [v4] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 08:58:35 GMT, Renjith Kannath Pariyangad wrote: >> Hi Reviewers, >> >> I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. >> Please review and let me know your suggestions if any. > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Removed extra space Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18299#pullrequestreview-1949697930 From kizune at openjdk.org Wed Mar 20 18:33:19 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 18:33:19 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:23:36 GMT, Damon Nguyen wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Moved test metadate closer to the class definition; >> Made variables local; >> Made test skip execution on an unsupported toolkit; > > test/jdk/java/awt/FileDialog/FileDialogReturnTest.java line 47: > >> 45: * @build PassFailJFrame >> 46: * @build jtreg.SkippedException >> 47: * @run main/manual FileDialogReturnTest.html > > This still runs on the `.html` file. Does this run correctly for you when testing? No, i were fixing other stuff and accidentally pasted the .html there. Will fix that. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18363#discussion_r1532598681 From kizune at openjdk.org Wed Mar 20 18:37:45 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 18:37:45 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v4] In-Reply-To: References: Message-ID: > Convert test to a main method based; > Move test to an apropriate location; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Remove .html from the @test clause ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18363/files - new: https://git.openjdk.org/jdk/pull/18363/files/132bcbc6..0c838ea4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18363&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18363.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18363/head:pull/18363 PR: https://git.openjdk.org/jdk/pull/18363 From kizune at openjdk.org Wed Mar 20 18:37:45 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Wed, 20 Mar 2024 18:37:45 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:21:13 GMT, Damon Nguyen wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Moved test metadate closer to the class definition; >> Made variables local; >> Made test skip execution on an unsupported toolkit; > > test/jdk/java/awt/FileDialog/FileDialogReturnTest.java line 46: > >> 44: * @library /test/lib >> 45: * @build PassFailJFrame >> 46: * @build jtreg.SkippedException > > Suggestion: > > * @library /java/awt/regtesthelpers /test/lib > * @build PassFailJFrame jtreg.SkippedException > > > Not positive if this is correct, but I was able to combine the `@library` and `@build` on one line by adding a space between the two. I prefer to use separate lines just to make it more readable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18363#discussion_r1532605591 From prr at openjdk.org Wed Mar 20 18:49:20 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 18:49:20 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 00:37:47 GMT, Harshitha Onkar wrote: >> Convert this applet based test to a main program > > test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 27: > >> 25: @test >> 26: @bug 7075105 >> 27: @summary WIN: Provide a way to format HTML on drop > > Do we add `@requires (os.family == "windows")` since the test summary indicates Windows issue? It is valid on all platforms. In fact if you read the instructions you'll see it says " On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor," ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1532624900 From prr at openjdk.org Wed Mar 20 18:57:37 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 18:57:37 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: > Convert this applet based test to a main program Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328301 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18334/files - new: https://git.openjdk.org/jdk/pull/18334/files/86ec0268..38292f15 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18334&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18334&range=00-01 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18334.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18334/head:pull/18334 PR: https://git.openjdk.org/jdk/pull/18334 From prr at openjdk.org Wed Mar 20 18:57:38 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 18:57:38 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: <6a3gk6l9Y5taEtc_Mp7y9IPfcjPNTOCSYWg1liUz5jY=.cf77bcab-e8aa-4bb9-a869-608bf7615f32@github.com> References: <6a3gk6l9Y5taEtc_Mp7y9IPfcjPNTOCSYWg1liUz5jY=.cf77bcab-e8aa-4bb9-a869-608bf7615f32@github.com> Message-ID: On Sat, 16 Mar 2024 09:36:08 GMT, Andrey Turbanov wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328301 > > test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 60: > >> 58: @Override >> 59: public Dimension getPreferredSize() { >> 60: return new Dimension(400,400); > > Suggestion: > > return new Dimension(400, 400); done ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1532636540 From prr at openjdk.org Wed Mar 20 18:57:38 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 18:57:38 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: On Sat, 16 Mar 2024 00:30:48 GMT, Harshitha Onkar wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328301 > > test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 143: > >> 141: frame.add(new DropPane()); >> 142: frame.pack(); >> 143: return frame; > > Changes looks good expect that when the the test is started and I switch to the browser window the drop target frame goes behind and becomes difficult to drag and drop to the Red panel. > > Setting `frame.setAlwaysOnTop(true)` will ensure that the DnD panel is on top. done ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1532636769 From honkar at openjdk.org Wed Mar 20 19:02:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 19:02:20 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 18:57:37 GMT, Phil Race wrote: >> Convert this applet based test to a main program > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328301 Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18334#pullrequestreview-1949805694 From honkar at openjdk.org Wed Mar 20 19:09:23 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 19:09:23 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> References: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> Message-ID: On Wed, 20 Mar 2024 16:57:24 GMT, Alexey Ivanov wrote: >> @aivanov-jdk Semi-automated the test, it now passes when 5 or more MouseWheelEvent of type: scrollType=WHEEL_UNIT_SCROLL & wheelRotation != 0 is recorded. Updated the instructions accordingly. > > I think we should update the instructions. > > A high resolution mouse produces events like this: > > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(133,46),absolute(1104,321),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > > > Thus, `wheelRotation=0` while `preciseWheelRotation=0.25`. When it reaches, `preciseWheelRotation=1.0`, the event contains **`wheelRotation=1`**. > > A regular mouse with mouse-wheel notches produces the following events: > > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(90,115),absolute(1061,390),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(176,76),absolute(1147,351),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > > > As you can see, `scrollType=WHEEL_UNIT_SCROLL` is the same in both cases. The only difference is that high-resolution mouse produces events where **`preciseWheelRotation < 1.0`**. > > This means that you should also track the value of `preciseWheelRotation`. Otherwise, the test will pass when a regular mouse is used. > > You may show a warning to the user if you detect, let's say, 5 events with `wheelRotation=1` but none of the events had `wheelRotation=0` and `preciseWheelRotation < 1.0`. I believe since there a lot of conditions that needs to be checked manually, it is better to convert this test from semi-automatic to completely manual. I can parse the MouseWheelEvent to display only the info needed by the user such as PreciseWheelRotation and WheelRotation for easier checking and include a warning when not using a hi-res mouse. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1532662283 From honkar at openjdk.org Wed Mar 20 19:20:31 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 19:20:31 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> References: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> Message-ID: On Wed, 20 Mar 2024 16:57:24 GMT, Alexey Ivanov wrote: >> @aivanov-jdk Semi-automated the test, it now passes when 5 or more MouseWheelEvent of type: scrollType=WHEEL_UNIT_SCROLL & wheelRotation != 0 is recorded. Updated the instructions accordingly. > > I think we should update the instructions. > > A high resolution mouse produces events like this: > > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(133,46),absolute(1104,321),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > > > Thus, `wheelRotation=0` while `preciseWheelRotation=0.25`. When it reaches, `preciseWheelRotation=1.0`, the event contains **`wheelRotation=1`**. > > A regular mouse with mouse-wheel notches produces the following events: > > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(90,115),absolute(1061,390),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(176,76),absolute(1147,351),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > > > As you can see, `scrollType=WHEEL_UNIT_SCROLL` is the same in both cases. The only difference is that high-resolution mouse produces events where **`preciseWheelRotation < 1.0`**. > > This means that you should also track the value of `preciseWheelRotation`. Otherwise, the test will pass when a regular mouse is used. > > You may show a warning to the user if you detect, let's say, 5 events with `wheelRotation=1` but none of the events had `wheelRotation=0` and `preciseWheelRotation < 1.0`. @aivanov-jdk Thanks for reviewing this in-depth and pointing out the difference between wheelRotation & preciseWheelRotation when using hi-res mouse. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1532702217 From honkar at openjdk.org Wed Mar 20 19:52:32 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 19:52:32 GMT Subject: Integrated: JDK-8328379 : Convert URLDragTest.html applet test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:53:50 GMT, Harshitha Onkar wrote: > Following test - test/jdk/java/awt/dnd/URLDragTest/URLDragTest.html is converted from applet to main using PassFailJFrame. > > PassFailJFrame's `logArea()` is used for logging messages. This pull request has now been integrated. Changeset: fbeac98c Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/fbeac98c84078a566c572abeba07c49e94bbf26b Stats: 227 lines in 3 files changed: 94 ins; 133 del; 0 mod 8328379: Convert URLDragTest.html applet test to main Reviewed-by: abhiscxk, psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18364 From azvegint at openjdk.org Wed Mar 20 20:25:33 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 20:25:33 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: >> we need to add next to Pass/Fail a "Pause Timer" button, that > (a) stops the count down > (b) changes the Pause Timer to "Resume Timer" > ~~(c) disables Pass/Fail until the timer is resumed~~ > the test will not have to pause or be aware - only the PassFailJFrame machinery. > ~~So the tester can do anything they want except exit the test in the paused mode.~~ > > This PR implements everything except the (c). > I see nothing wrong with completing the test from the paused state, and it does not add an extra click. > > > Example screenshots: > > ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) > ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) Alexander Zvegintsev has updated the pull request incrementally with two additional commits since the last revision: - TimeoutHandler -> TimeoutHandlerPanel - review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18368/files - new: https://git.openjdk.org/jdk/pull/18368/files/85ba846a..10f4580e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18368&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18368&range=00-01 Stats: 38 lines in 1 file changed: 15 ins; 9 del; 14 mod Patch: https://git.openjdk.org/jdk/pull/18368.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18368/head:pull/18368 PR: https://git.openjdk.org/jdk/pull/18368 From azvegint at openjdk.org Wed Mar 20 20:32:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 20:32:21 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: <4Gm8rlFmxk7XFbCasmgSLpp0HKe3OUbulAtDX1Gfhic=.b3d6f1ea-de53-4393-8ac6-ef2cbbf3e520@github.com> References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> <4Gm8rlFmxk7XFbCasmgSLpp0HKe3OUbulAtDX1Gfhic=.b3d6f1ea-de53-4393-8ac6-ef2cbbf3e520@github.com> Message-ID: <_n14OJqwTnv9gtIAi9ztg33_ew5xtW4jhRRqybko0UA=.cf0676bf-96ce-4c22-b4fc-22ffdd28568e@github.com> On Wed, 20 Mar 2024 17:58:59 GMT, Alexey Ivanov wrote: > I would place the Pause button into the timeout panel at the top. Yet the button is larger than the label. The font may be reduced, a symbol '?' (U+23F8) and '?' (U+23F5) could be used (see [Media control symbols](https://en.wikipedia.org/wiki/Media_control_symbols)), or an image icon with a tooltip. Unfortunately `a symbol '?' (U+23F8) and '?' (U+23F5)` doesn't work on Linux for me: ![image](https://github.com/openjdk/jdk/assets/77687766/b7ad68e2-ad58-4ca4-9672-d529cb8866eb) ![image](https://github.com/openjdk/jdk/assets/77687766/d97bbe8c-ed44-4bb8-935e-61015e833d7b) So the text is used (icons can be added separately): ![image](https://github.com/openjdk/jdk/assets/77687766/24ca05b4-79ac-46f6-8958-576114522d48) ![image](https://github.com/openjdk/jdk/assets/77687766/a6420488-7071-49e4-908e-84d1e18c9261) ![image](https://github.com/openjdk/jdk/assets/77687766/fb2d1b02-4b15-4e49-8af4-c6a28398ebef) ![image](https://github.com/openjdk/jdk/assets/77687766/542ec12d-7121-498e-aba9-fde8d8dda77a) ![image](https://github.com/openjdk/jdk/assets/77687766/5ebfea75-fade-4bc6-91b3-e212c0c17cf6) ![image](https://github.com/openjdk/jdk/assets/77687766/7f3ccd0b-9492-4e60-bbd1-8bd32e002864) > test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 704: > >> 702: } else { >> 703: label.setText(label.getText().replace(PAUSED_LABEL_SUFFIX, "")); >> 704: endTime = System.currentTimeMillis() + pauseTimeLeft; > > I'd rather call `updateTime(pauseTimeLeft)` here instead of editing the text. > > Suggestion: > > endTime = System.currentTimeMillis() + pauseTimeLeft; > updateTime(pauseTimeLeft); Yes, this way is better. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18368#issuecomment-2010561001 PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1532807064 From azvegint at openjdk.org Wed Mar 20 21:06:35 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Wed, 20 Mar 2024 21:06:35 GMT Subject: RFR: 8328631: Convert java/awt/InputMethods/InputMethodsTest/InputMethodsTest.java applet test to manual Message-ID: Test converted to main. Tested on Linux with Japanese ibus-anthy input method. ------------- Commit messages: - initial Changes: https://git.openjdk.org/jdk/pull/18412/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18412&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328631 Stats: 109 lines in 2 files changed: 20 ins; 53 del; 36 mod Patch: https://git.openjdk.org/jdk/pull/18412.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18412/head:pull/18412 PR: https://git.openjdk.org/jdk/pull/18412 From prr at openjdk.org Wed Mar 20 21:37:29 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 21:37:29 GMT Subject: RFR: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main Message-ID: Converts java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.html to a main program. ------------- Commit messages: - 8328642 Changes: https://git.openjdk.org/jdk/pull/18414/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18414&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328642 Stats: 286 lines in 2 files changed: 48 ins; 211 del; 27 mod Patch: https://git.openjdk.org/jdk/pull/18414.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18414/head:pull/18414 PR: https://git.openjdk.org/jdk/pull/18414 From dnguyen at openjdk.org Wed Mar 20 22:16:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 22:16:36 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Add new line ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18403/files - new: https://git.openjdk.org/jdk/pull/18403/files/14f9280b..2416a1c1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=00-01 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18403.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18403/head:pull/18403 PR: https://git.openjdk.org/jdk/pull/18403 From dnguyen at openjdk.org Wed Mar 20 22:16:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 20 Mar 2024 22:16:36 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:28:08 GMT, Abhishek Kumar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Add new line > > test/jdk/javax/swing/JCheckBox/bug8032667.java line 41: > >> 39: * @build PassFailJFrame >> 40: * @summary [macosx] Components cannot be rendered in HiDPI to BufferedImage >> 41: * @run main/manual bug8032667 > > Minor: > May add a blank line after this. Thanks added ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18403#discussion_r1532949858 From achung at openjdk.org Wed Mar 20 22:53:27 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 20 Mar 2024 22:53:27 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 Message-ID: Removing applet usage from manual JFileChooser tests ------------- Commit messages: - remove extra dialog - init commit Changes: https://git.openjdk.org/jdk/pull/18415/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328648 Stats: 116 lines in 2 files changed: 25 ins; 46 del; 45 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From prr at openjdk.org Wed Mar 20 23:00:22 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:00:22 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Wed, 20 Mar 2024 20:25:33 GMT, Alexander Zvegintsev wrote: >>> we need to add next to Pass/Fail a "Pause Timer" button, that >> (a) stops the count down >> (b) changes the Pause Timer to "Resume Timer" >> ~~(c) disables Pass/Fail until the timer is resumed~~ >> the test will not have to pause or be aware - only the PassFailJFrame machinery. >> ~~So the tester can do anything they want except exit the test in the paused mode.~~ >> >> This PR implements everything except the (c). >> I see nothing wrong with completing the test from the paused state, and it does not add an extra click. >> >> >> Example screenshots: >> >> ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) >> ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) > > Alexander Zvegintsev has updated the pull request incrementally with two additional commits since the last revision: > > - TimeoutHandler -> TimeoutHandlerPanel > - review comments Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18368#pullrequestreview-1950390181 From honkar at openjdk.org Wed Mar 20 23:02:23 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 20 Mar 2024 23:02:23 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> <6SPvUhuB-QIgakHdRqx1_LzOADDQNU25xRz7k2obSZc=.ac2b9979-d177-412e-be68-7b10f9a3a0ae@github.com> <_tDJv5UgWgGj_eogkTzVvY7YvJtzckfxRAQs_pDzBsw=.f905413d-f540-41f2-a464-c647822de64d@github.com> Message-ID: On Mon, 18 Mar 2024 13:27:56 GMT, Prasanta Sadhukhan wrote: > I am not sure...I think there was some fix regarding border stroke sometime back either by @honkar-jdk or @DamonGuy . Maybe expectation should be somewhat different now in which case, probably the instructions should be amended accordingly...Let them verify once.. @prsadhuk @TejeshR13 I do see slight difference in borders on fractional scales 1.25,1.75. This looks similar to the border scaling issue fixed as part https://github.com/openjdk/jdk/pull/11571, https://github.com/openjdk/jdk/pull/10274. The border scaling fix was extended to line, etched borders and borders for JInternalFrame. This case is slightly different, in the sense html is parsed to paint the border of desired thickness but I believe the underlying issue is the same - painting of borders on fractional scales on Windows. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2010840644 From prr at openjdk.org Wed Mar 20 23:02:23 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:02:23 GMT Subject: RFR: 8328631: Convert java/awt/InputMethods/InputMethodsTest/InputMethodsTest.java applet test to manual In-Reply-To: References: Message-ID: <9sjj678n2mOstw14jsusyNG0nWqyvEQfHlEKlizEXNw=.7d4875b4-92b4-4a73-976c-1c8d47a4b223@github.com> On Wed, 20 Mar 2024 21:02:02 GMT, Alexander Zvegintsev wrote: > Test converted to main. Tested on Linux with Japanese ibus-anthy input method. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18412#pullrequestreview-1950393778 From prr at openjdk.org Wed Mar 20 23:11:23 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:11:23 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> Message-ID: On Wed, 20 Mar 2024 16:46:45 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > REview update Marked as reviewed by prr (Reviewer). test/jdk/javax/swing/JFrame/bug4419914.java line 71: > 69: frame.enableInputMethods(false); > 70: frame.getContentPane().setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); > 71: frame.getContentPane().setLocale(Locale.ENGLISH); The requirement to use getContentPane() has been obsolete since JDK 1.5 ... here's an external page about it https://coderanch.com/t/345686/java/getContentPane But I don't generally tell people to delete except here there are 9 calls cluttering up this code. So not critical, but a suggestion. ------------- PR Review: https://git.openjdk.org/jdk/pull/18390#pullrequestreview-1950401141 PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1533017080 From prr at openjdk.org Wed Mar 20 23:13:20 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:13:20 GMT Subject: RFR: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated [v2] In-Reply-To: <1tv0wI_4pAfwMqK2o98hA5QIb4xGSR2n9ymIgIurJpM=.a5c297ba-aa64-4388-99de-91c764072edf@github.com> References: <1tv0wI_4pAfwMqK2o98hA5QIb4xGSR2n9ymIgIurJpM=.a5c297ba-aa64-4388-99de-91c764072edf@github.com> Message-ID: On Tue, 19 Mar 2024 15:12:34 GMT, Alexander Zvegintsev wrote: >> The test converted to automated, CI and manual testing looks good on all platforms. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > reduce delay Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18367#pullrequestreview-1950413589 From prr at openjdk.org Wed Mar 20 23:18:20 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:18:20 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v3] In-Reply-To: <7mXA4yB1IQMruvOFP2-u6IIiYPDX-wW8nnTIScNuqPQ=.75f7794c-27f6-4759-b3a2-ff65fbf367b8@github.com> References: <7mXA4yB1IQMruvOFP2-u6IIiYPDX-wW8nnTIScNuqPQ=.75f7794c-27f6-4759-b3a2-ff65fbf367b8@github.com> Message-ID: <5s8VQMd2rKlq9PjXBcYhjzrvXLuxhkxNF_PWtVznLwU=.7d3efb1f-fa92-4c5b-8ecd-ad48797cb969@github.com> On Mon, 18 Mar 2024 13:29:37 GMT, Tejesh R wrote: >> Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. >> Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates test/jdk/javax/swing/border/Test4129681.java line 55: > 53: > 54: UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); > 55: System.setProperty("sun.java2d.uiScale", "1.0"); If you are going to do this in code it needs to be line 1 of main before we call any java.desktop code. You can also pass it on the command line of the test @run main -Dsun.java2d.uiScale=1 Test4129681 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1533029624 From prr at openjdk.org Wed Mar 20 23:19:21 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:19:21 GMT Subject: RFR: 8328194: Add a test to check default rendering engine In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 20:13:58 GMT, Sergey Bylokhov wrote: > This is a request to forward port the test added by the [JDK-8241307](https://bugs.openjdk.org/browse/JDK-8241307) with inverted condition - jdk jdk11 the marlin should be used by default. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18313#pullrequestreview-1950421621 From prr at openjdk.org Wed Mar 20 23:19:22 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:19:22 GMT Subject: RFR: 8328194: Add a test to check default rendering engine In-Reply-To: <0a5Q1MibQDAMg4dKEOqpFjMg78_S2Xa1ByM1bElKgaM=.df9fc7de-bfd1-49a6-84d7-6bebc71df16c@github.com> References: <0a5Q1MibQDAMg4dKEOqpFjMg78_S2Xa1ByM1bElKgaM=.df9fc7de-bfd1-49a6-84d7-6bebc71df16c@github.com> Message-ID: <7ZofadtzUIoKENjdCQzi-3e6BhFbqQgek8emX5qLe50=.db0eeabf-b305-4f95-961e-b009b937b15d@github.com> On Sun, 17 Mar 2024 08:53:21 GMT, Sergey Bylokhov wrote: > > We don't have any others in JDK 23, so I am not sure what this test does for us. > > Right now it is not useful, but that is the same story we had in OpenJDK 8 - only the one engine for years, and then the engine "accidentally" changed to marlin. This test will help to catch such bugs. Ok ... ------------- PR Comment: https://git.openjdk.org/jdk/pull/18313#issuecomment-2010885381 From prr at openjdk.org Wed Mar 20 23:19:26 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:19:26 GMT Subject: Integrated: 8328300: Convert PrintDialogsTest.java from Applet to main program In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 21:20:04 GMT, Phil Race wrote: > This applet test is converted to a main program using PassFailJFrame. > Other than that, the main thing I improved is the instructions. This pull request has now been integrated. Changeset: dea94f44 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/dea94f4445b9389339cf7ca0eef688ca56c17814 Stats: 127 lines in 2 files changed: 65 ins; 52 del; 10 mod 8328300: Convert PrintDialogsTest.java from Applet to main program Reviewed-by: psadhukhan, dnguyen ------------- PR: https://git.openjdk.org/jdk/pull/18333 From prr at openjdk.org Wed Mar 20 23:34:20 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:34:20 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: On Thu, 14 Mar 2024 11:02:52 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates This test was written before there was hidpi. So I am sure it is 100% so definitely you should specify that in the test to have any chance. The height of the text doesn't matter, nor spacing inside the cells. I'd say it is "similar enough" with 1.0 scaling. There's not been a bug about this yet. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2010902621 From prr at openjdk.org Wed Mar 20 23:45:31 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:45:31 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v3] In-Reply-To: References: Message-ID: > This seems to have been some previous not very complete conversion of a test from applet to main. > It even still had Applet imported and miscellaneous comments. I've cleaned it up. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328560 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18386/files - new: https://git.openjdk.org/jdk/pull/18386/files/f4f4c335..fd7243e8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18386&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18386&range=01-02 Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18386.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18386/head:pull/18386 PR: https://git.openjdk.org/jdk/pull/18386 From prr at openjdk.org Wed Mar 20 23:45:31 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:45:31 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:57:30 GMT, Alexander Zvegintsev wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328560 > > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 24: > >> 22: */ >> 23: >> 24: import java.awt.AWTException; > > Suggestion: > > > Unused right not needed now > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 34: > >> 32: import java.awt.event.WindowAdapter; >> 33: import java.awt.event.WindowEvent; >> 34: import java.awt.event.WindowEvent; > > Suggestion: > > import java.awt.event.WindowEvent; fixed > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 54: > >> 52: static volatile Frame frame; >> 53: static volatile Robot robot; >> 54: static final ClickDuringKeypress clicker = new ClickDuringKeypress(); > > On the other hand, we can get rid of the instantiation of this class and MouseListener empty methods overrides by simply adding this: > > > frame.addMouseListener(new MouseAdapter() { > @Override > public void mouseClicked(MouseEvent e) { > System.out.println(e.toString()); > clicked = true; > lastClickCount = e.getClickCount(); > } > }); > > > Either way, I'm fine with it. I thought about doing something like this .. but decided to stop the creep of changes. So I'll leave it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1533047651 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1533047213 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1533048464 From prr at openjdk.org Wed Mar 20 23:45:32 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 20 Mar 2024 23:45:32 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:39:56 GMT, Abhishek Kumar wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328560 > > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 45: > >> 43: >> 44: public class ClickDuringKeypress implements MouseListener { >> 45: //Declare things used in the test, like buttons and labels here > > Comments can be removed. I thought about it already, seemed harmless, but I can remove it. > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 67: > >> 65: doTest(); >> 66: } finally { >> 67: if (frame != null) { > > null check should be done on EDT ? Not needed for the null check > test/jdk/java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java line 88: > >> 86: robot.delay(1000); >> 87: if (!ready) { >> 88: System.out.println("Not Activated. Test fails"); > > Looks redundant. good to log, so I think it should stay ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1533047044 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1533046679 PR Review Comment: https://git.openjdk.org/jdk/pull/18386#discussion_r1533048055 From honkar at openjdk.org Thu Mar 21 00:12:45 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 00:12:45 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v3] In-Reply-To: References: Message-ID: > Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. > > This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. > > Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: problemlist updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18335/files - new: https://git.openjdk.org/jdk/pull/18335/files/f586cc64..4a5b234b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18335&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18335&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18335.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18335/head:pull/18335 PR: https://git.openjdk.org/jdk/pull/18335 From honkar at openjdk.org Thu Mar 21 00:19:20 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 00:19:20 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 00:12:45 GMT, Harshitha Onkar wrote: >> Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. >> >> This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. >> >> Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > problemlist updated @prsadhuk > The @requires was added in [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083) to ensure the test pass automatically in non-windows platform much before the problemlist was added so I think it was an oversight and we should remove the problemlist and close 8080185 as NA, in my opinion... I have de-problemlisted this test on non-windows platform as it is not applicable. I have added a note to to close [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185) when this PR is integrated. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18335#issuecomment-2010951880 From honkar at openjdk.org Thu Mar 21 01:13:50 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 01:13:50 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v6] In-Reply-To: References: Message-ID: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: added preciseWheelRotation logic & updated test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/d81df883..6b7591f0 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=04-05 Stats: 31 lines in 1 file changed: 13 ins; 3 del; 15 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Thu Mar 21 01:20:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 01:20:28 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> References: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> Message-ID: On Wed, 20 Mar 2024 16:57:24 GMT, Alexey Ivanov wrote: >> @aivanov-jdk Semi-automated the test, it now passes when 5 or more MouseWheelEvent of type: scrollType=WHEEL_UNIT_SCROLL & wheelRotation != 0 is recorded. Updated the instructions accordingly. > > I think we should update the instructions. > > A high resolution mouse produces events like this: > > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(133,46),absolute(1104,321),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > > > Thus, `wheelRotation=0` while `preciseWheelRotation=0.25`. When it reaches, `preciseWheelRotation=1.0`, the event contains **`wheelRotation=1`**. > > A regular mouse with mouse-wheel notches produces the following events: > > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(90,115),absolute(1061,390),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(176,76),absolute(1147,351),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 > > > As you can see, `scrollType=WHEEL_UNIT_SCROLL` is the same in both cases. The only difference is that high-resolution mouse produces events where **`preciseWheelRotation < 1.0`**. > > This means that you should also track the value of `preciseWheelRotation`. Otherwise, the test will pass when a regular mouse is used. > > You may show a warning to the user if you detect, let's say, 5 events with `wheelRotation=1` but none of the events had `wheelRotation=0` and `preciseWheelRotation < 1.0`. @aivanov-jdk Since preciseWheelRotation amount depends on user's movement of the high-res mouse and there might be a need to look through logs for few events, it is better to convert this test from semi-automated to manual. Does this sound good? Updated the PR with the latest changes. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1533120961 From psadhukhan at openjdk.org Thu Mar 21 03:16:44 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 03:16:44 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v5] In-Reply-To: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: > Few closed manual applet tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Remove getContentPane ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18390/files - new: https://git.openjdk.org/jdk/pull/18390/files/bac1ecb3..89783161 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=03-04 Stats: 8 lines in 1 file changed: 0 ins; 0 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18390.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18390/head:pull/18390 PR: https://git.openjdk.org/jdk/pull/18390 From psadhukhan at openjdk.org Thu Mar 21 03:16:44 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 03:16:44 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> Message-ID: On Wed, 20 Mar 2024 23:05:34 GMT, Phil Race wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> REview update > > test/jdk/javax/swing/JFrame/bug4419914.java line 71: > >> 69: frame.enableInputMethods(false); >> 70: frame.getContentPane().setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); >> 71: frame.getContentPane().setLocale(Locale.ENGLISH); > > The requirement to use getContentPane() has been obsolete since JDK 1.5 ... > here's an external page about it https://coderanch.com/t/345686/java/getContentPane > But I don't generally tell people to delete except here there are 9 calls cluttering up this code. > So not critical, but a suggestion. Thanks for the information, didn't know that..Updated....there is around ~400 occurrence of getContentPane() in swing tests in open still so probably something to be optimised in future... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1533196007 From psadhukhan at openjdk.org Thu Mar 21 03:28:56 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 03:28:56 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v6] In-Reply-To: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: > Few closed manual applet tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Remove getContentPane from other tests ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18390/files - new: https://git.openjdk.org/jdk/pull/18390/files/89783161..06d7407c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18390&range=04-05 Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18390.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18390/head:pull/18390 PR: https://git.openjdk.org/jdk/pull/18390 From psadhukhan at openjdk.org Thu Mar 21 03:48:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 03:48:20 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 00:12:45 GMT, Harshitha Onkar wrote: >> Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. >> >> This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. >> >> Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > problemlist updated Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18335#pullrequestreview-1950706724 From psadhukhan at openjdk.org Thu Mar 21 03:48:53 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 03:48:53 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main Message-ID: Few closed manual applet JViewport tests are converted to main based and opensourced ------------- Commit messages: - 8328570: Convert closed JViewport manual applet tests to main Changes: https://git.openjdk.org/jdk/pull/18418/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328570 Stats: 429 lines in 5 files changed: 429 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18418.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18418/head:pull/18418 PR: https://git.openjdk.org/jdk/pull/18418 From philip.race at oracle.com Thu Mar 21 04:48:03 2024 From: philip.race at oracle.com (Philip Race) Date: Wed, 20 Mar 2024 21:48:03 -0700 Subject: Setting Chromaticity.MONOCHROME print request attribute on macOS In-Reply-To: <78e594fc-e0fb-4d02-ae32-21fe2957c0d0@bell-sw.com> References: <8eb8b503-6202-0bff-a512-24ab45f39d56@bell-sw.com> <78e594fc-e0fb-4d02-ae32-21fe2957c0d0@bell-sw.com> Message-ID: <32801dba-3b5b-4e9f-87ee-c14e0ba1188a@oracle.com> Noted. I don't see a JDK-maintained property file as viable. It would never be complete, never be up to date, of questionable supported status, undocumented as far as end-users are concerned - no chance Oracle would document it. We have history here with fonts so I am as sure of this as I can be. So regardless of the lack of solutions elsewhere, that won't work. To say more I need to look into the code and think about things. It is superficially surprising not to have printers / Apple CUPS support a standard IPP attribute. I'll put this on my to-do list along with lots of other things. If you can get Apple to come up with a better answer that would be good. -phil. On 3/13/24 7:20 AM, Alexander Scherbatiy wrote: > Hello, > > There is a known issue that a PrinterJob does not take > Chromaticity.MONOCHROME print request attribute into account on macOS > (JDK-8315113 [1]) > > The possible ways for solving the issue with black & white printing on > macOS could be: > > 1. Setting black & white printing with macOS API. > > ?? There is the deprecated PMSetColorMode [2] function: > ?? "There is no replacement; this function was included to facilitate > porting legacy applications to macOS, but it serves no useful purpose." > ?? and I was not able to find another one. > > 2. Using a predefined printer.properties file with black & white > key/value pairs for known printers. > ??? It needs to maintain the property file to keep list with black & > white key/value pairs. > ??? Or just leave only one default? ColorModel=Gray key/value in the > property file so users will need to add another ones for their needs. > > 3. Using a PPD API to get the corresponding black & white value for > the given key. > ??? In this way the black & white keys are printer specific and there > should be a way to provide these keys to the program. > ??? Another way is parsing a ppd file to find the black & white > key/value pair in question. It still requires some search criteria to > find the printer specific key. > > 4. Adding a custom PrintRequestAttribute which allows for a user to > add a printer specific key values to PrintRequestAttributeSet. > ???? These key/value pairs are then added to the NSPrintInfo > printSettings on macOS. > > 5. Providing other ways like a jvm option which allows a user to pass > black & white key/value pairs to the program. > > > Are there better solutions for the black & white printing issue on macOS? > What is the best option to start solving the issue with? > > Thanks, > Alexander. > > [1] https://bugs.openjdk.org/browse/JDK-8315113 > > [2] > https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode > > > On 8/28/23 18:00, Alexander Scherbatiy wrote: >> Hello, >> >> I am working on issue "8315113 Print request Chromaticity.MONOCHROME >> attribute does not work on macOS" [1]. >> >> There is PMSetColorMode function in the Apple Developer documentation >> [2] but it is marked as deprecated >> ? "There is no replacement; this function was included to facilitate >> porting legacy applications to macOS, but it serves no useful purpose." >> and really does nothing. >> >> >> Using native print dialog and selecting Black & White box allows to >> print black and white pages on macOS. >> I dumped NSPrintInfo print settings dictionary for two printers when >> the Black & White box is selected and the logs contain >> ColorModel key, Gray value for HP ColorLaserJet MFP >> M178-M181-AirPrint printer and >> HPColorMode key, grayscale value for HP Ink Tank 115. >> It looks like each printer can have each own key/value for Black & >> White settings. >> >> I tried to print key/values for all presets available for NSPrintInfo >> without using the native print dialog: >> ---------- >> ??? PMPrinter pr; >> ??? PMPrintSession printSession = (PMPrintSession)[printInfo >> PMPrintSession]; >> ??? OSStatus status = PMSessionGetCurrentPrinter(printSession, &pr); >> ??? CFArrayRef presetsList = nil; >> ??? status = PMPrinterCopyPresets(pr, &presetsList); >> ??? CFIndex arrayCount = CFArrayGetCount(presetsList); >> >> ??? for (CFIndex index = 0; index < arrayCount; index++) { >> ??????? PMPreset preset = >> (PMPreset)CFArrayGetValueAtIndex(presetsList, index); >> ??????? CFStringRef presetName = nil; >> ??????? if (PMPresetCopyName(preset, &presetName) == noErr && >> CFStringGetLength(presetName) > 0) { >> ??????????? NSLog(@"? presetName: '%@'", presetName); >> ??????????? NSDictionary* dict = nil; >> ??????????? if (PMPresetGetAttributes(preset, >> (CFDictionaryRef*)(&dict)) == noErr) { >> ?????????????????? // print preset dict >> >> ---------- >> The printers which I tested do contain "Black and White" preset but >> they do not include key/values related to black and white printing. >> >> >> What is the right way to use different key/values (ColorModel: Gray, >> HPColorMode: grayscale, ...) in code to set Black & White settings >> for NSPrintInfo? >> Could it be a configuration file which contains all color model >> key/values for all known printers? >> >> Thanks, >> Alexander. >> >> [1] https://bugs.openjdk.org/browse/JDK-8315113 >> >> [2] >> https://developer.apple.com/documentation/applicationservices/core_printing/1805783-pmsetcolormode >> >> From psadhukhan at openjdk.org Thu Mar 21 04:54:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 04:54:20 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 22:16:36 GMT, Damon Nguyen wrote: >> Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Add new line Marked as reviewed by psadhukhan (Reviewer). test/jdk/javax/swing/JCheckBox/bug8032667.java line 87: > 85: } > 86: }; > 87: frame.getContentPane().add(canvas, BorderLayout.CENTER); It seems getContentPane is not needed and is obsoleted since jdk1.5...See this [comment](https://github.com/openjdk/jdk/pull/18390#discussion_r1533017080) ------------- PR Review: https://git.openjdk.org/jdk/pull/18403#pullrequestreview-1950755132 PR Review Comment: https://git.openjdk.org/jdk/pull/18403#discussion_r1533245336 From tr at openjdk.org Thu Mar 21 05:08:46 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 05:08:46 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18260/files - new: https://git.openjdk.org/jdk/pull/18260/files/8c40a81b..66f9e8e7 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18260&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18260&range=01-02 Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18260.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18260/head:pull/18260 PR: https://git.openjdk.org/jdk/pull/18260 From tr at openjdk.org Thu Mar 21 05:08:46 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 05:08:46 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v2] In-Reply-To: References: <_k4T1yzAqADVQLTUScWnfSqbGYg-YZJ9SecWpQB55kM=.ffa6e901-7cee-40b6-954a-528dfb04dc83@github.com> Message-ID: On Wed, 20 Mar 2024 23:32:06 GMT, Phil Race wrote: > This test was written before there was hidpi. So I am sure it is 100% so definitely you should specify that in the test to have any chance. The height of the text doesn't matter, nor spacing inside the cells. I'd say it is "similar enough" with 1.0 scaling. There's not been a bug about this yet. Updated the instructions and scaling set to 1.0. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18260#issuecomment-2011226698 From prr at openjdk.org Thu Mar 21 05:13:20 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 05:13:20 GMT Subject: RFR: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 05:08:46 GMT, Tejesh R wrote: >> Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18260#pullrequestreview-1950771985 From tr at openjdk.org Thu Mar 21 05:14:44 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 05:14:44 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v4] In-Reply-To: References: Message-ID: <4w7MNk7DTNfFWhugo3ZSaQesEIGV00_Lv8JKPK5B_ZA=.c3a1c723-3b8d-4064-8b77-96b9f5b86cf8@github.com> > Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. > Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Review updates ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18336/files - new: https://git.openjdk.org/jdk/pull/18336/files/029be55c..4d9cb87e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18336&range=02-03 Stats: 4 lines in 1 file changed: 1 ins; 2 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18336.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18336/head:pull/18336 PR: https://git.openjdk.org/jdk/pull/18336 From tr at openjdk.org Thu Mar 21 05:14:44 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 05:14:44 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v3] In-Reply-To: <5s8VQMd2rKlq9PjXBcYhjzrvXLuxhkxNF_PWtVznLwU=.7d3efb1f-fa92-4c5b-8ecd-ad48797cb969@github.com> References: <7mXA4yB1IQMruvOFP2-u6IIiYPDX-wW8nnTIScNuqPQ=.75f7794c-27f6-4759-b3a2-ff65fbf367b8@github.com> <5s8VQMd2rKlq9PjXBcYhjzrvXLuxhkxNF_PWtVznLwU=.7d3efb1f-fa92-4c5b-8ecd-ad48797cb969@github.com> Message-ID: On Wed, 20 Mar 2024 23:13:53 GMT, Phil Race wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> Review updates > > test/jdk/javax/swing/border/Test4129681.java line 55: > >> 53: >> 54: UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); >> 55: System.setProperty("sun.java2d.uiScale", "1.0"); > > If you are going to do this in code it needs to be line 1 of main before we call any java.desktop code. > > You can also pass it on the command line of the test > @run main -Dsun.java2d.uiScale=1 Test4129681 Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18336#discussion_r1533256688 From psadhukhan at openjdk.org Thu Mar 21 05:23:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 05:23:21 GMT Subject: RFR: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 17:38:44 GMT, Phil Race wrote: >> A simple fix to the test to skip sampling the leftmost and rightmost ends of the divider >> to avoid possible issues at fractional scales. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328540 Marked as reviewed by psadhukhan (Reviewer). test/jdk/javax/swing/JSplitPane/4885629/bug4885629.java line 109: > 107: for (int i = 1; i < rect.width - 1; i++) { > 108: if (!BGCOLOR.equals(robot.getPixelColor(p.x + i, p.y + rect.height - 1))) { > 109: throw new Error("The divider's area has incorrect color. i=" + i); Should we still use "Error" or use RuntimeException for consistency with other tests? ------------- PR Review: https://git.openjdk.org/jdk/pull/18384#pullrequestreview-1950781009 PR Review Comment: https://git.openjdk.org/jdk/pull/18384#discussion_r1533262146 From tr at openjdk.org Thu Mar 21 05:30:25 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 05:30:25 GMT Subject: Integrated: 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main In-Reply-To: References: Message-ID: On Wed, 13 Mar 2024 06:59:02 GMT, Tejesh R wrote: > Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main based test using PassFailJFrame. This pull request has now been integrated. Changeset: 481473ef Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/481473efce9f51a497e26002c6da52b0ddc9ea8f Stats: 113 lines in 2 files changed: 33 ins; 71 del; 9 mod 8328035: Convert javax/swing/text/html/TableView/7030332/bug7030332.java applet test to main Reviewed-by: abhiscxk, prr ------------- PR: https://git.openjdk.org/jdk/pull/18260 From psadhukhan at openjdk.org Thu Mar 21 05:33:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 05:33:20 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:26:39 GMT, Damon Nguyen wrote: >> Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. > > Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: > > - Modify instructions more > - Modify instructions test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 31: > 29: * @build PassFailJFrame > 30: * @summary Pass if dialogs are modal. > 31: * @run main PrintModalDialog should be main/manual ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1533268931 From tr at openjdk.org Thu Mar 21 06:32:20 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 06:32:20 GMT Subject: RFR: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main [v2] In-Reply-To: References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: On Wed, 20 Mar 2024 04:18:46 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework. >> >> Tested in macOS where it didn't worked for "key press C to change tab layout" else it worked for other "key press (R, B, L, T) to change tab position. So, test is still in problem list. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > minor fix Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18340#pullrequestreview-1950851772 From tr at openjdk.org Thu Mar 21 06:36:20 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 06:36:20 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v2] In-Reply-To: References: Message-ID: <3wOB6ZEeVKSHSi_bckFx89MfmyXPs4cDt-2YGXVrBsA=.eaaec3f7-c5ec-4a41-a237-ff5f06d36c89@github.com> On Wed, 20 Mar 2024 18:02:37 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > spacing Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18369#pullrequestreview-1950856553 From abhiscxk at openjdk.org Thu Mar 21 07:32:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 07:32:20 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v2] In-Reply-To: References: Message-ID: <_BFUDHspPpPwu_ibRDU9WuZarJMMBDgvDVuTSMRC41M=.f409e015-7891-4bd2-bf72-9c7e7bcc7690@github.com> On Thu, 14 Mar 2024 17:05:04 GMT, Harshitha Onkar wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comment fix > > Please remove unused imports @honkar-jdk @TejeshR13 Test is updated. Please take a look. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18233#issuecomment-2011375527 From abhiscxk at openjdk.org Thu Mar 21 07:33:26 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 07:33:26 GMT Subject: Integrated: 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main In-Reply-To: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> References: <4fqxbuw6GwuEAg6v7kvn72AQC3LeXPodKf8OrBDOr1w=.1cffa811-37e8-4294-b469-6487763bdeed@github.com> Message-ID: On Mon, 18 Mar 2024 07:45:42 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework. > > Tested in macOS where it didn't worked for "key press C to change tab layout" else it worked for other "key press (R, B, L, T) to change tab position. So, test is still in problem list. This pull request has now been integrated. Changeset: 65d9f119 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/65d9f119c401c26c9a6436f5c9a513f91bb8c753 Stats: 783 lines in 4 files changed: 168 ins; 614 del; 1 mod 8328328: Convert javax/swing/JTabbedPane/4666224/bug4666224.java applet test to main Reviewed-by: honkar, tr ------------- PR: https://git.openjdk.org/jdk/pull/18340 From abhiscxk at openjdk.org Thu Mar 21 07:41:23 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 07:41:23 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 23:45:31 GMT, Phil Race wrote: >> This seems to have been some previous not very complete conversion of a test from applet to main. >> It even still had Applet imported and miscellaneous comments. I've cleaned it up. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328560 Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18386#pullrequestreview-1950983863 From abhiscxk at openjdk.org Thu Mar 21 07:44:22 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 07:44:22 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v4] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:40:03 GMT, Damon Nguyen wrote: >> Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Remove reundant window constant Marked as reviewed by abhiscxk (Committer). test/jdk/java/awt/im/JTextFieldTest.java line 32: > 30: * work correctly with IM when there is an uneditable peered > 31: * TextField/TextArea in the same parent Frame > 32: * @run main JTextFieldTest should be main/manual ? test/jdk/java/awt/im/JTextFieldTest.java line 42: > 40: > 41: public class JTextFieldTest { > 42: private static JFrame frame; can be moved to local scope in `createAndShowGUI` method. ------------- PR Review: https://git.openjdk.org/jdk/pull/18247#pullrequestreview-1950991412 PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1533367255 PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1533367750 From psadhukhan at openjdk.org Thu Mar 21 08:57:57 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 08:57:57 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v2] In-Reply-To: References: Message-ID: > Few closed manual applet JViewport tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: getCOntentPane removed ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18418/files - new: https://git.openjdk.org/jdk/pull/18418/files/7783bf97..395730f3 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=00-01 Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18418.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18418/head:pull/18418 PR: https://git.openjdk.org/jdk/pull/18418 From psadhukhan at openjdk.org Thu Mar 21 09:08:34 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 09:08:34 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main Message-ID: Couple closed manual applet text/html/CSS tests are converted to main based and opensourced ------------- Commit messages: - 8328673: Convert closed text/html/CSS manual applet test to main Changes: https://git.openjdk.org/jdk/pull/18424/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18424&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328673 Stats: 162 lines in 2 files changed: 162 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18424.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18424/head:pull/18424 PR: https://git.openjdk.org/jdk/pull/18424 From tr at openjdk.org Thu Mar 21 09:29:21 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 09:29:21 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v5] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 08:30:36 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Looks good now. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18233#pullrequestreview-1951408134 From tr at openjdk.org Thu Mar 21 10:07:21 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 10:07:21 GMT Subject: RFR: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main [v3] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 00:12:45 GMT, Harshitha Onkar wrote: >> Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. >> >> This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. >> >> Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > problemlist updated Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18335#pullrequestreview-1951568475 From tr at openjdk.org Thu Mar 21 10:10:21 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 10:10:21 GMT Subject: RFR: 8328194: Add a test to check default rendering engine In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 20:13:58 GMT, Sergey Bylokhov wrote: > This is a request to forward port the test added by the [JDK-8241307](https://bugs.openjdk.org/browse/JDK-8241307) with inverted condition - jdk jdk11 the marlin should be used by default. Marked as reviewed by tr (Committer). test/jdk/sun/java2d/marlin/DefaultRenderingEngine.java line 26: > 24: import sun.java2d.pipe.RenderingEngine; > 25: > 26: /** Minor observation - Additional asterisk not required I guess. ------------- PR Review: https://git.openjdk.org/jdk/pull/18313#pullrequestreview-1951582788 PR Review Comment: https://git.openjdk.org/jdk/pull/18313#discussion_r1533572180 From rkannathpari at openjdk.org Thu Mar 21 10:32:26 2024 From: rkannathpari at openjdk.org (Renjith Kannath Pariyangad) Date: Thu, 21 Mar 2024 10:32:26 GMT Subject: Integrated: JDK-8320675 : PrinterJob/SecurityDialogTest.java hangs In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 11:52:09 GMT, Renjith Kannath Pariyangad wrote: > Hi Reviewers, > > I have updated the test with PassFailJFrame with information panel, earlier this was informed through terminal. > Please review and let me know your suggestions if any. This pull request has now been integrated. Changeset: 9f5ad433 Author: Renjith Kannath Pariyangad Committer: Tejesh R URL: https://git.openjdk.org/jdk/commit/9f5ad43358a4e209b4cd1c91bcc86b997f371548 Stats: 238 lines in 1 file changed: 54 ins; 154 del; 30 mod 8320675: PrinterJob/SecurityDialogTest.java hangs Co-authored-by: Alexey Ivanov Reviewed-by: aivanov, tr ------------- PR: https://git.openjdk.org/jdk/pull/18299 From tr at openjdk.org Thu Mar 21 10:39:23 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 10:39:23 GMT Subject: RFR: 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 03:09:32 GMT, Alexander Zvegintsev wrote: > Test converted to main. > Instructions split to Windows and Linux, with some clarifications. > The test runs successfully on Windows and Linux. Marked as reviewed by tr (Committer). test/jdk/java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java line 25: > 23: > 24: > 25: import jdk.test.lib.Platform; Minor one - Additional line space before imports can be removed. test/jdk/java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java line 39: > 37: * @build PassFailJFrame jdk.test.lib.Platform > 38: * @run main/manual DiacriticsTest > 39: */ Another minor observation - One space before asterisk. Else it looks good to me. ------------- PR Review: https://git.openjdk.org/jdk/pull/18388#pullrequestreview-1951695172 PR Review Comment: https://git.openjdk.org/jdk/pull/18388#discussion_r1533618831 PR Review Comment: https://git.openjdk.org/jdk/pull/18388#discussion_r1533619460 From tr at openjdk.org Thu Mar 21 10:50:23 2024 From: tr at openjdk.org (Tejesh R) Date: Thu, 21 Mar 2024 10:50:23 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:59:47 GMT, Harshitha Onkar wrote: >> Following test is converted from applet to main using PassFailJFrame. >> >> The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** >> I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. >> >> This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instruction line length test/jdk/java/awt/im/bug4490692.java line 81: > 79: > 80: class TestFrame extends JFrame implements KeyListener { > 81: JTextField text; text can be moved inside constructor, any reason why it is here? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1533639696 From abhiscxk at openjdk.org Thu Mar 21 10:50:36 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 10:50:36 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test Message-ID: Few manual closed applet test converted to automated and open sourced. ------------- Commit messages: - Open source manual applet test Changes: https://git.openjdk.org/jdk/pull/18428/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18428&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328670 Stats: 291 lines in 2 files changed: 291 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18428.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18428/head:pull/18428 PR: https://git.openjdk.org/jdk/pull/18428 From aivanov at openjdk.org Thu Mar 21 10:59:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 10:59:21 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> Message-ID: On Thu, 21 Mar 2024 03:13:45 GMT, Prasanta Sadhukhan wrote: >> test/jdk/javax/swing/JFrame/bug4419914.java line 71: >> >>> 69: frame.enableInputMethods(false); >>> 70: frame.getContentPane().setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); >>> 71: frame.getContentPane().setLocale(Locale.ENGLISH); >> >> The requirement to use getContentPane() has been obsolete since JDK 1.5 ... >> here's an external page about it https://coderanch.com/t/345686/java/getContentPane >> But I don't generally tell people to delete except here there are 9 calls cluttering up this code. >> So not critical, but a suggestion. > > Thanks for the information, didn't know that..Updated....there is around ~400 occurrence of getContentPane() in swing tests in open still so probably something to be optimised in future... The tests were probably written before Java 5, even tests written later could still use `getContentPane` so that the test could be run with previous versions of Java. Yet it's irrelevant now. The Java Tutorials have never been updated, [How to Make Frames](https://docs.oracle.com/javase/tutorial/uiswing/components/frame.html) uses `getContentPane` explicitly. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1533657135 From aivanov at openjdk.org Thu Mar 21 11:02:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 11:02:21 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v6] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: On Thu, 21 Mar 2024 03:28:56 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Remove getContentPane from other tests Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18390#pullrequestreview-1951802558 From aivanov at openjdk.org Thu Mar 21 11:06:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 11:06:21 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v4] In-Reply-To: References: <85j81nCQpt1zZUA7YK2kk8s86L1ZqLhs406hVKcWsMw=.51d17fec-616e-4a25-9f79-dfcc449f7896@github.com> Message-ID: On Thu, 21 Mar 2024 01:16:03 GMT, Harshitha Onkar wrote: >> I think we should update the instructions. >> >> A high resolution mouse produces events like this: >> >> java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 >> java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 >> java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(164,90),absolute(1135,365),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=0,preciseWheelRotation=0.25] on panel0 >> java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(133,46),absolute(1104,321),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 >> >> >> Thus, `wheelRotation=0` while `preciseWheelRotation=0.25`. When it reaches, `preciseWheelRotation=1.0`, the event contains **`wheelRotation=1`**. >> >> A regular mouse with mouse-wheel notches produces the following events: >> >> java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(90,115),absolute(1061,390),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 >> java.awt.event.MouseWheelEvent[MOUSE_WHEEL,(176,76),absolute(1147,351),button=0,clickCount=0,scrollType=WHEEL_UNIT_SCROLL,scrollAmount=3,wheelRotation=1,preciseWheelRotation=1.0] on panel0 >> >> >> As you can see, `scrollType=WHEEL_UNIT_SCROLL` is the same in both cases. The only difference is that high-resolution mouse produces events where **`preciseWheelRotation < 1.0`**. >> >> This means that you should also track the value of `preciseWheelRotation`. Otherwise, the test will pass when a regular mouse is used. >> >> You may show a warning to the user if you detect, let's say, 5 events with `wheelRotation=1` but none of the events had `wheelRotation=0` and `preciseWheelRotation < 1.0`. > > @aivanov-jdk Since preciseWheelRotation amount depends on user's movement of the high-res mouse and there might be a need to look through logs for few events, it is better to convert this test from semi-automated to manual. Does this sound good? > Updated the PR with the latest changes. @honkar-jdk I think the test could still remain semi-automatic. Can the test verify the conditions? I see no reason why it can't? yet it requires more code. It can be postponed to a later time, if necessary. I don't think we should make the tester read the log and verify the conditions which can be verified automatically. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1533668635 From abhiscxk at openjdk.org Thu Mar 21 11:07:20 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 11:07:20 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 09:04:19 GMT, Prasanta Sadhukhan wrote: > Couple closed manual applet text/html/CSS tests are converted to main based and opensourced Please update the library path. test/jdk/javax/swing/text/html/CSS/bug4271058.java line 28: > 26: * @bug 4270889 4271058 4285098 > 27: * @summary Tests that ,
and
tags work > 28: * @library /open/test/jdk/java/awt/regtesthelpers Need to remove "/open/test/jdk" here and in other test also. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18424#pullrequestreview-1951812458 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533665496 From abhiscxk at openjdk.org Thu Mar 21 11:14:21 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 11:14:21 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 08:57:57 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet JViewport tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > getCOntentPane removed Minor suggestion test/jdk/javax/swing/JViewport/bug4137282.java line 32: > 30: * @build PassFailJFrame > 31: * @run main/manual bug4137282 > 32: */ Suggestion: */ test/jdk/javax/swing/JViewport/bug4217252.java line 31: > 29: * @build PassFailJFrame > 30: * @run main/manual bug4217252 > 31: */ Suggestion: */ test/jdk/javax/swing/JViewport/bug4243479.java line 31: > 29: * @build PassFailJFrame > 30: @run main/manual bug4243479 > 31: */ Suggestion: */ test/jdk/javax/swing/JViewport/bug4750421.java line 31: > 29: * @build PassFailJFrame > 30: * @run main/manual bug4750421 > 31: */ Suggestion: */ ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18418#pullrequestreview-1951827393 PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1533670823 PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1533672019 PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1533674332 PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1533674808 From aivanov at openjdk.org Thu Mar 21 11:19:20 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 11:19:20 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Wed, 20 Mar 2024 20:25:33 GMT, Alexander Zvegintsev wrote: >>> we need to add next to Pass/Fail a "Pause Timer" button, that >> (a) stops the count down >> (b) changes the Pause Timer to "Resume Timer" >> ~~(c) disables Pass/Fail until the timer is resumed~~ >> the test will not have to pause or be aware - only the PassFailJFrame machinery. >> ~~So the tester can do anything they want except exit the test in the paused mode.~~ >> >> This PR implements everything except the (c). >> I see nothing wrong with completing the test from the paused state, and it does not add an extra click. >> >> >> Example screenshots: >> >> ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) >> ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) > > Alexander Zvegintsev has updated the pull request incrementally with two additional commits since the last revision: > > - TimeoutHandler -> TimeoutHandlerPanel > - review comments Marked as reviewed by aivanov (Reviewer). test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 660: > 658: > 659: label = new JLabel("", JLabel.CENTER); > 660: button = new JButton(TimeoutHandlerPanel.PAUSE_BUTTON_LABEL); Suggestion: button = new JButton(PAUSE_BUTTON_LABEL); I believe it can be used directly as in `pauseToggle`. test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 662: > 660: button = new JButton(TimeoutHandlerPanel.PAUSE_BUTTON_LABEL); > 661: > 662: button.setFocusPainted(false); I wonder if it's the default focus owner? Should we request focus to `Pass` instead? ------------- PR Review: https://git.openjdk.org/jdk/pull/18368#pullrequestreview-1951858944 PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1533684791 PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1533688961 From abhiscxk at openjdk.org Thu Mar 21 11:26:19 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 11:26:19 GMT Subject: RFR: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main In-Reply-To: References: Message-ID: <0lZlSB51hO4GQhliTNmDM6dV2bdDz-cS7Nz4GpiEf-0=.2012aa1a-7fc7-4eff-b652-71be2371931b@github.com> On Wed, 20 Mar 2024 21:33:04 GMT, Phil Race wrote: > Converts java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.html > to a main program. LGTM. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18414#pullrequestreview-1951897660 From psadhukhan at openjdk.org Thu Mar 21 11:29:26 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 11:29:26 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> Message-ID: On Thu, 21 Mar 2024 10:56:52 GMT, Alexey Ivanov wrote: >> Thanks for the information, didn't know that..Updated....there is around ~400 occurrence of getContentPane() in swing tests in open still so probably something to be optimised in future... > > The tests were probably written before Java 5, even tests written later could still use `getContentPane` so that the test could be run with previous versions of Java. Yet it's irrelevant now. > > The Java Tutorials have never been updated, [How to Make Frames](https://docs.oracle.com/javase/tutorial/uiswing/components/frame.html) uses `getContentPane` explicitly. Good point..this backward support still keep us using obsolete things.. Java tutorials also there are few bugs like [6417303](https://bugs.openjdk.org/browse/JDK-6417303) which needs fix in the tutorial..dont know whom to ask or can we do it ourselves.. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1533704146 From psadhukhan at openjdk.org Thu Mar 21 11:29:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 11:29:28 GMT Subject: Integrated: 8328238: Convert few closed manual applet tests to main In-Reply-To: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> Message-ID: On Wed, 20 Mar 2024 05:13:08 GMT, Prasanta Sadhukhan wrote: > Few closed manual applet tests are converted to main based and opensourced This pull request has now been integrated. Changeset: 68170ae2 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/68170ae22233462e8925c75c4737be7f0ba9353d Stats: 395 lines in 4 files changed: 395 ins; 0 del; 0 mod 8328238: Convert few closed manual applet tests to main Reviewed-by: tr, aivanov, prr ------------- PR: https://git.openjdk.org/jdk/pull/18390 From psadhukhan at openjdk.org Thu Mar 21 11:34:39 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 11:34:39 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v2] In-Reply-To: References: Message-ID: > Couple closed manual applet text/html/CSS tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: library path fix ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18424/files - new: https://git.openjdk.org/jdk/pull/18424/files/8ff80bbb..d846e61f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18424&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18424&range=00-01 Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18424.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18424/head:pull/18424 PR: https://git.openjdk.org/jdk/pull/18424 From psadhukhan at openjdk.org Thu Mar 21 11:34:39 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 11:34:39 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 11:01:55 GMT, Abhishek Kumar wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> library path fix > > test/jdk/javax/swing/text/html/CSS/bug4271058.java line 28: > >> 26: * @bug 4270889 4271058 4285098 >> 27: * @summary Tests that ,
and wrote: >> Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: >> >> minor spacing > > test/jdk/java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java line 25: > >> 23: >> 24: >> 25: import jdk.test.lib.Platform; > > Minor one - Additional line space before imports can be removed. Removed ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18388#discussion_r1533772890 From azvegint at openjdk.org Thu Mar 21 12:48:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 12:48:21 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:59:47 GMT, Harshitha Onkar wrote: >> Following test is converted from applet to main using PassFailJFrame. >> >> The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** >> I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. >> >> This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > instruction line length test/jdk/java/awt/im/bug4490692.java line 74: > 72: .rows((int) INSTRUCTIONS.lines().count() + 2) > 73: .columns(40) > 74: .testUI(() -> new TestFrame("Test Accented Chars")) Looks like a good candidate to use `splitUIRight/Bottom` (up to you). test/jdk/java/awt/im/bug4490692.java line 95: > 93: @Override > 94: public void keyPressed(KeyEvent e) { > 95: if (e.getKeyCode() == 23 || e.getKeyCode() == 60) { > CASE 2: This step is automated and applicable for both keyboards - LINUX & SOLARIS SPARC. When Tab key is pressed it should generate a-acute (?) character, this test automatically passes if the correct character is generated on keypress else fails. Unfortunately this check doesn't work for me: `java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='?',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=23,primaryLevelUnicode=225,scancode=0,extendedKeyCode=0x10000e1] on javax.swing.JTextField...` The `keycode` is 0, `rawCode` is desired `23`, but we can't get it it unless parsing the output of `e.toString()` The `e.getKeyChar() == 0x00e1` check is still valid thought. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1533782803 PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1533787428 From azvegint at openjdk.org Thu Mar 21 13:06:29 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 13:06:29 GMT Subject: RFR: 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization Message-ID: Two tests may fail intermittently on Wayland, the standard `waitForIdle` and `delay` fixes the issue. Manual and CI testing looks good. ------------- Commit messages: - initial Changes: https://git.openjdk.org/jdk/pull/18431/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18431&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328697 Stats: 6 lines in 2 files changed: 4 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18431.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18431/head:pull/18431 PR: https://git.openjdk.org/jdk/pull/18431 From azvegint at openjdk.org Thu Mar 21 13:09:24 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 13:09:24 GMT Subject: Integrated: 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 23:46:34 GMT, Alexander Zvegintsev wrote: > The test converted to automated, CI and manual testing looks good on all platforms. This pull request has now been integrated. Changeset: 700d2b91 Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/700d2b91defd421a2818f53830c24f70d11ba4f6 Stats: 244 lines in 2 files changed: 18 ins; 176 del; 50 mod 8328401: Convert java/awt/Frame/InitialMaximizedTest/InitialMaximizedTest.html applet test to automated Reviewed-by: abhiscxk, prr ------------- PR: https://git.openjdk.org/jdk/pull/18367 From azvegint at openjdk.org Thu Mar 21 13:19:20 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 13:19:20 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Thu, 21 Mar 2024 11:56:46 GMT, Alexey Ivanov wrote: >>> I wonder if it's the default focus owner? >> >> It is(e.g. with `setFocusPainted(true)`): >> ![image](https://github.com/openjdk/jdk/assets/77687766/b47e9011-c47d-437d-b9b0-0e4ac88a5c6f) >> >>> Should we request focus to Pass instead? >> >> Probably not, to avoid accidentally passing the test, while hitting the pause is harmless. > > Not so sure? Pause is not the main control. I guess the focus was in the instructions previously, we could preserve it. It may be not worth it though. It's not clear why we need a focus on the field with instructions. The focus on the pause button makes sense: Suppose someone is running many, many tests and decides to take a tea break, he just presses the space bar without moving the mouse. (if he knows that the focus is on the pause button, `setFocusPainted(false)` :-) ) Anyway, if this bothers anyone we can come back to it later. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1533887869 From azvegint at openjdk.org Thu Mar 21 13:22:23 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 13:22:23 GMT Subject: Integrated: 8328631: Convert java/awt/InputMethods/InputMethodsTest/InputMethodsTest.java applet test to manual In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 21:02:02 GMT, Alexander Zvegintsev wrote: > Test converted to main. Tested on Linux with Japanese ibus-anthy input method. This pull request has now been integrated. Changeset: 43080173 Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/43080173e88c8f53cd54c9096c79f3144007fd97 Stats: 109 lines in 2 files changed: 20 ins; 53 del; 36 mod 8328631: Convert java/awt/InputMethods/InputMethodsTest/InputMethodsTest.java applet test to manual Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18412 From azvegint at openjdk.org Thu Mar 21 13:54:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 13:54:21 GMT Subject: RFR: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 21:33:04 GMT, Phil Race wrote: > Converts java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.html > to a main program. Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.java line 31: > 29: @library /java/awt/regtesthelpers > 30: @run main/manual MouseDraggedOutCauseScrollingTest > 31: */ We usually move this and instructions block closer to a class declaration, for better readability. ------------- PR Review: https://git.openjdk.org/jdk/pull/18414#pullrequestreview-1952287386 PR Review Comment: https://git.openjdk.org/jdk/pull/18414#discussion_r1533954114 From azvegint at openjdk.org Thu Mar 21 14:03:21 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 14:03:21 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v2] In-Reply-To: References: Message-ID: <5A204R9Q4Xm8u41OcYVqOZi2XwrooEeYV8vupQ8W9gc=.741ff049-a0bf-488a-be29-1d8b5f04a24b@github.com> On Wed, 20 Mar 2024 18:02:37 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > spacing test/jdk/javax/swing/JColorChooser/Test6977726.java line 43: > 41: .title("Test6977726") > 42: .instructions("Check that there is an empty panel " + > 43: "titled \"Preview\" in the JColorChooser.") >there is an empty panel This doesn't seem to be right, originally it was `If you don't see the preview panel, then test failed, otherwise it passed.` The preview panel is not empty, it has barely visible white text. ![image](https://github.com/openjdk/jdk/assets/77687766/4d8706f6-1d7f-4229-9a20-bcaf85bb7737) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1533969729 From aivanov at openjdk.org Thu Mar 21 14:06:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 14:06:22 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 11:34:39 GMT, Prasanta Sadhukhan wrote: >> Couple closed manual applet text/html/CSS tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > library path fix Changes requested by aivanov (Reviewer). test/jdk/javax/swing/text/html/CSS/bug4271058.java line 55: > 53: public static void main(String[] args) throws Exception { > 54: PassFailJFrame.builder() > 55: .title("CSS tag Instructions") A more specific title? test/jdk/javax/swing/text/html/CSS/bug4271058.java line 60: > 58: .columns(30) > 59: .testUI(bug4271058::createTestUI) > 60: .build() I guess the test will benefit from a screenshot feature to capture how the table is rendered. Suggestion: .testUI(bug4271058::createTestUI) .screenCapture() .build() The feature to take a screenshot automatically, when Fail button is pressed, hasn't been implemented yet. It's tracked under [JDK-8317114](https://bugs.openjdk.org/browse/JDK-8317114). test/jdk/javax/swing/text/html/CSS/bug4286458.java line 57: > 55: > 56: String text = > 57: "
tags work >> 28: * @library /open/test/jdk/java/awt/regtesthelpers > > Need to remove "/open/test/jdk" here and in other test also. Good catch...forgot to modify while copying... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533713929 From aivanov at openjdk.org Thu Mar 21 11:35:31 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 11:35:31 GMT Subject: RFR: 8328238: Convert few closed manual applet tests to main [v4] In-Reply-To: References: <9uKHIdC_4RNWN6ecB8Es2dtAjhmMgTvQIrDMWmPJzfs=.39bb9943-81f5-4cae-8644-a1eaf45d82d6@github.com> <0-d5jlP4-aMbgEE1MS9GuMonUlQ09R9SOy_efIHLSsA=.754d7aac-e39d-4da7-9e26-7a1f8d081325@github.com> Message-ID: <4p2hv5J1NgOM2j1f_j7-JoMqKyYBPYcBSjQTP47BKcU=.1b7c6d70-8d4c-4844-b395-fc8736e97502@github.com> On Thu, 21 Mar 2024 11:24:45 GMT, Prasanta Sadhukhan wrote: >> The tests were probably written before Java 5, even tests written later could still use `getContentPane` so that the test could be run with previous versions of Java. Yet it's irrelevant now. >> >> The Java Tutorials have never been updated, [How to Make Frames](https://docs.oracle.com/javase/tutorial/uiswing/components/frame.html) uses `getContentPane` explicitly. > > Good point..this backward support still keep us using obsolete things.. > Java tutorials also there are few bugs like [6417303](https://bugs.openjdk.org/browse/JDK-6417303) which needs fix in the tutorial..dont know whom to ask or can we do it ourselves.. You're right. Cleaning up the code makes it easier to read. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18390#discussion_r1533716560 From psadhukhan at openjdk.org Thu Mar 21 11:37:01 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 11:37:01 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v3] In-Reply-To: References: Message-ID: > Few closed manual applet JViewport tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: formatting ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18418/files - new: https://git.openjdk.org/jdk/pull/18418/files/395730f3..8e177faa Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=01-02 Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18418.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18418/head:pull/18418 PR: https://git.openjdk.org/jdk/pull/18418 From azvegint at openjdk.org Thu Mar 21 11:37:36 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 11:37:36 GMT Subject: RFR: 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main [v2] In-Reply-To: References: Message-ID: > Test converted to main. > Instructions split to Windows and Linux, with some clarifications. > The test runs successfully on Windows and Linux. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: minor spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18388/files - new: https://git.openjdk.org/jdk/pull/18388/files/73d2d47d..6a6e11ab Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18388&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18388&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18388.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18388/head:pull/18388 PR: https://git.openjdk.org/jdk/pull/18388 From abhiscxk at openjdk.org Thu Mar 21 11:50:19 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 11:50:19 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 22:48:46 GMT, Alisen Chung wrote: > Removing applet usage from manual JFileChooser tests This test can be converted to automated. Similar issue was resolved for GTK LAF. You can refer https://github.com/openjdk/jdk/pull/11291. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18415#issuecomment-2012056680 From azvegint at openjdk.org Thu Mar 21 11:51:43 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 11:51:43 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v3] In-Reply-To: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: >> we need to add next to Pass/Fail a "Pause Timer" button, that > (a) stops the count down > (b) changes the Pause Timer to "Resume Timer" > ~~(c) disables Pass/Fail until the timer is resumed~~ > the test will not have to pause or be aware - only the PassFailJFrame machinery. > ~~So the tester can do anything they want except exit the test in the paused mode.~~ > > This PR implements everything except the (c). > I see nothing wrong with completing the test from the paused state, and it does not add an extra click. > > > Example screenshots: > > ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) > ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: TimeoutHandlerPanel.PAUSE_BUTTON_LABEL -> PAUSE_BUTTON_LABEL ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18368/files - new: https://git.openjdk.org/jdk/pull/18368/files/10f4580e..3005ee64 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18368&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18368&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18368.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18368/head:pull/18368 PR: https://git.openjdk.org/jdk/pull/18368 From azvegint at openjdk.org Thu Mar 21 11:51:44 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 11:51:44 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Thu, 21 Mar 2024 11:16:29 GMT, Alexey Ivanov wrote: > I wonder if it's the default focus owner? It is(e.g. with `setFocusPainted(true)`): ![image](https://github.com/openjdk/jdk/assets/77687766/b47e9011-c47d-437d-b9b0-0e4ac88a5c6f) > Should we request focus to Pass instead? Probably not, to avoid accidentally passing the test, while hitting the pause is harmless. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1533741754 From aivanov at openjdk.org Thu Mar 21 11:56:20 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 11:56:20 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 22:16:36 GMT, Damon Nguyen wrote: >> Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Add new line test/jdk/javax/swing/JCheckBox/bug8032667.java line 78: > 76: final Image image1 = getImage(getCheckBox("Deselected", false)); > 77: final Image image2 = getImage(getCheckBox("Selected", true)); > 78: Canvas canvas = new Canvas() { I recommend using `JPanel` instead of `Canvas`. The former is a Swing lightweight component, whereas the latter is an AWT heavyweight component. It's still better not to mix them. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18403#discussion_r1533748612 From aivanov at openjdk.org Thu Mar 21 12:00:26 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 12:00:26 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v3] In-Reply-To: References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Thu, 21 Mar 2024 11:51:43 GMT, Alexander Zvegintsev wrote: >>> we need to add next to Pass/Fail a "Pause Timer" button, that >> (a) stops the count down >> (b) changes the Pause Timer to "Resume Timer" >> ~~(c) disables Pass/Fail until the timer is resumed~~ >> the test will not have to pause or be aware - only the PassFailJFrame machinery. >> ~~So the tester can do anything they want except exit the test in the paused mode.~~ >> >> This PR implements everything except the (c). >> I see nothing wrong with completing the test from the paused state, and it does not add an extra click. >> >> >> Example screenshots: >> >> ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) >> ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > TimeoutHandlerPanel.PAUSE_BUTTON_LABEL -> PAUSE_BUTTON_LABEL Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18368#pullrequestreview-1951984347 From azvegint at openjdk.org Thu Mar 21 12:00:26 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 12:00:26 GMT Subject: RFR: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 23:45:31 GMT, Phil Race wrote: >> This seems to have been some previous not very complete conversion of a test from applet to main. >> It even still had Applet imported and miscellaneous comments. I've cleaned it up. > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328560 Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18386#pullrequestreview-1951984862 From aivanov at openjdk.org Thu Mar 21 12:00:27 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 12:00:27 GMT Subject: RFR: 8328402: Implement pausing functionality for the PassFailJFrame [v2] In-Reply-To: References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: On Thu, 21 Mar 2024 11:48:28 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 662: >> >>> 660: button = new JButton(TimeoutHandlerPanel.PAUSE_BUTTON_LABEL); >>> 661: >>> 662: button.setFocusPainted(false); >> >> I wonder if it's the default focus owner? Should we request focus to `Pass` instead? > >> I wonder if it's the default focus owner? > > It is(e.g. with `setFocusPainted(true)`): > ![image](https://github.com/openjdk/jdk/assets/77687766/b47e9011-c47d-437d-b9b0-0e4ac88a5c6f) > >> Should we request focus to Pass instead? > > Probably not, to avoid accidentally passing the test, while hitting the pause is harmless. Not so sure? Pause is not the main control. I guess the focus was in the instructions previously, we could preserve it. It may be not worth it though. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18368#discussion_r1533756608 From duke at openjdk.org Thu Mar 21 12:02:22 2024 From: duke at openjdk.org (Joel Uckelman) Date: Thu, 21 Mar 2024 12:02:22 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> Message-ID: On Thu, 14 Mar 2024 16:56:03 GMT, Alexey Ivanov wrote: >> It is well described in a [JBS comment](https://bugs.openjdk.org/browse/JDK-8305072?focusedId=14610400&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14610400) by the submitter. >> >> Let's consider the failing case where: >> >> a = C:\Users\Documents(true) >> b = C:\Users(false) >> c = C:\Users\Documents(false) >> >> The value in parentheses is `isSpecial()` flag. >> >> When `a` and `c` are compared, `special1 = true` and `special2 = false`, therefore the code flow enters this `if`-block. Because the `equals` method doesn't take into account the `isSpecial` flag, both `i1` and `i2` are 0. >> >> https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L534-L535 >> >> Thus, `a` and `c` are considered equal, which breaks the general contract of [`Comparable.compareTo`](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Comparable.html#compareTo(T)). >> >> If you look below this `if`-statement: >> >> https://github.com/openjdk/jdk/blob/7bccc847fe9e8c5e640d8fa9c93ce32563a0ccfa/src/java.desktop/windows/classes/sun/awt/shell/Win32ShellFolderManager2.java#L545-L550 >> >> The comment and the code say that any special folder sorts above any regular folder. Therefore the code shouldn't enter that `if`-block above if *only one* of the folders is *special* ? the order is already well-defined for such case. >> >> The purpose of the `if`-block is to make some of the special folders even more special. In other words, it ensures the following special folders?`getPersonal`, `getDesktop`, `getDrives`, `getNetwork`?are at the top of the list, above any other special folders. > > So, changing the condition in the `if`-block from `special1 || special2` to `special1 && special2` makes the sorting order consistent because the relation is now *transitive*: > > > a < b & b < c therefore a < c Hi, I'm the submitter of the original bug report. I can confirm that you got the reason for the change exactly right. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1526422961 From aivanov at openjdk.org Thu Mar 21 12:02:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 12:02:23 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> Message-ID: On Fri, 15 Mar 2024 15:00:40 GMT, Joel Uckelman wrote: >> So, changing the condition in the `if`-block from `special1 || special2` to `special1 && special2` makes the sorting order consistent because the relation is now *transitive*: >> >> >> a < b & b < c therefore a < c > > Hi, I'm the submitter of the original bug report. I can confirm that you got the reason for the change exactly right. Thank you, @uckelman, for the detailed analysis. Greatly appreciated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1533761341 From aivanov at openjdk.org Thu Mar 21 12:05:20 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 12:05:20 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> Message-ID: <2LG0ERi-9ETplOC0EdSozMQ4WTJDgx2lw3Z1J6IVrrY=.03443566-afd3-4d7e-8caa-46fa10c55a5e@github.com> On Fri, 15 Mar 2024 15:00:40 GMT, Joel Uckelman wrote: >> So, changing the condition in the `if`-block from `special1 || special2` to `special1 && special2` makes the sorting order consistent because the relation is now *transitive*: >> >> >> a < b & b < c therefore a < c > > Hi, I'm the submitter of the original bug report. I can confirm that you got the reason for the change exactly right. @uckelman Is there a way to reproduce the original bug in the user's environment? I think there's a bug in JDK which leads to two _Documents_ folders in the list. If the bug is still reproducible, collecting more data will help us identify the problem and fix it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1533767996 From azvegint at openjdk.org Thu Mar 21 12:08:23 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 12:08:23 GMT Subject: RFR: 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 10:35:19 GMT, Tejesh R
" + Suggestion: "
" + It should start with an opening tag. test/jdk/javax/swing/text/html/CSS/bug4286458.java line 65: > 63: jep.setEditorKit(new HTMLEditorKit()); > 64: jep.setEditable(false); > 65: jep.setText(text); Suggestion: JEditorPane jep = new JEditorPane("text/html", text); jep.setEditable(false); Could be reduced to. ------------- PR Review: https://git.openjdk.org/jdk/pull/18424#pullrequestreview-1952302358 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533964173 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533970805 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533976459 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1533974967 From azvegint at openjdk.org Thu Mar 21 14:27:24 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 14:27:24 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main In-Reply-To: References: Message-ID: <2AcXge8T2E_dFxknLKDqwHoHTLrpY7ff9dOWDqVMQsQ=.75e27ab5-d806-4fe7-8470-98b014c86cc6@github.com> On Mon, 18 Mar 2024 17:31:07 GMT, Damon Nguyen wrote: > Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 33: > 31: * on HiDPI + non-HiDPI display pair. > 32: * @run main MultiDisplayTest > 33: */ We usually move this block just before a class declaration, for better readability. test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 58: > 56: """ > 57: This test is for OS X or Windows only. > 58: For other OSes please simply push "Pass". `please simply push "Pass"` usually means that it can be replaced with `PassFailJFrame.forcePass()`, but in this case the `@requires (os.family...` can be used to avoid running the test on unwanted platforms. test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 93: > 91: generateImage(1, Color.BLACK), generateImage(2, Color.BLUE)}); > 92: > 93: public static void main(String[] args) throws Exception { While the `@requires (os.family...` should be enough, we can add something like if (!checkOS()) { throw new SkippedException("..."); //jtreg.SkippedException } test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 109: > 107: frame.setLayout(new BorderLayout()); > 108: Button b = new Button("Start"); > 109: b.setEnabled(checkOS()); With the changes mentioned above, this will become obsolete. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1533996928 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1533994910 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534013542 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534012450 From kizune at openjdk.org Thu Mar 21 14:28:19 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 21 Mar 2024 14:28:19 GMT Subject: RFR: 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 13:02:29 GMT, Alexander Zvegintsev wrote: > Two tests may fail intermittently on Wayland, the standard `waitForIdle` and `delay` fixes the issue. > > Manual and CI testing looks good. Marked as reviewed by kizune (Reviewer). Since you are editing these files you can also drop the @author tag from the test metadata. Otherwise looks good. ------------- PR Review: https://git.openjdk.org/jdk/pull/18431#pullrequestreview-1952390195 PR Comment: https://git.openjdk.org/jdk/pull/18431#issuecomment-2012439701 From kizune at openjdk.org Thu Mar 21 14:34:25 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 21 Mar 2024 14:34:25 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v3] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 11:37:01 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet JViewport tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > formatting test/jdk/javax/swing/JViewport/bug4243479.java line 30: > 28: * @library /java/awt/regtesthelpers > 29: * @build PassFailJFrame > 30: @run main/manual bug4243479 Suggestion: * @run main/manual bug4243479 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1534036819 From psadhukhan at openjdk.org Thu Mar 21 14:41:50 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 14:41:50 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v3] In-Reply-To: References: Message-ID: <1LvnyESoMkYiVpr_0I1UjxgNkFqab-Y024iYJtX0dn4=.0c0bfc48-61ad-4bb0-a18e-844227efb9cf@github.com> > Couple closed manual applet text/html/CSS tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Review comment update ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18424/files - new: https://git.openjdk.org/jdk/pull/18424/files/d846e61f..fbc0b821 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18424&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18424&range=01-02 Stats: 6 lines in 2 files changed: 1 ins; 2 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18424.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18424/head:pull/18424 PR: https://git.openjdk.org/jdk/pull/18424 From psadhukhan at openjdk.org Thu Mar 21 14:41:52 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 14:41:52 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v2] In-Reply-To: References: Message-ID: <-UIAo0K0r32VVlslJcRISMB3U9fDyalqe6cpEUieFfs=.346c20eb-69f8-4e56-b2c8-c1d7959d732d@github.com> On Thu, 21 Mar 2024 14:00:17 GMT, Alexey Ivanov wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> library path fix > > test/jdk/javax/swing/text/html/CSS/bug4271058.java line 60: > >> 58: .columns(30) >> 59: .testUI(bug4271058::createTestUI) >> 60: .build() > > I guess the test will benefit from a screenshot feature to capture how the table is rendered. > Suggestion: > > .testUI(bug4271058::createTestUI) > .screenCapture() > .build() > > > The feature to take a screenshot automatically, when Fail button is pressed, hasn't been implemented yet. It's tracked under [JDK-8317114](https://bugs.openjdk.org/browse/JDK-8317114). ok > test/jdk/javax/swing/text/html/CSS/bug4286458.java line 57: > >> 55: >> 56: String text = >> 57: "
" + > > Suggestion: > > "
" + > > It should start with an opening tag. yes > test/jdk/javax/swing/text/html/CSS/bug4286458.java line 65: > >> 63: jep.setEditorKit(new HTMLEditorKit()); >> 64: jep.setEditable(false); >> 65: jep.setText(text); > > Suggestion: > > JEditorPane jep = new JEditorPane("text/html", text); > jep.setEditable(false); > > Could be reduced to. ok ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1534048754 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1534049280 PR Review Comment: https://git.openjdk.org/jdk/pull/18424#discussion_r1534048927 From kizune at openjdk.org Thu Mar 21 14:45:57 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 21 Mar 2024 14:45:57 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v3] In-Reply-To: References: Message-ID: <0xB-04oG1w8ijVOwVLFAWpK37Ki22lEncQ8w_lx9F_s=.f37a1fc1-7d76-42f6-a603-e2cd1c8b6e28@github.com> On Thu, 21 Mar 2024 11:37:01 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet JViewport tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > formatting test/jdk/javax/swing/JViewport/bug4137282.java line 86: > 84: } > 85: > 86: static void setPaneSize(int w, int h) { Do we even need this method? It is used twice and if we just do setSize and setPreferredSize in these two places we could drop this method and make panel variable local. That will make it more compact and in my opinion more readable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1534053126 From psadhukhan at openjdk.org Thu Mar 21 14:45:57 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 14:45:57 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v4] In-Reply-To: References: Message-ID: > Few closed manual applet JViewport tests are converted to main based and opensourced Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: formatting ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18418/files - new: https://git.openjdk.org/jdk/pull/18418/files/8e177faa..d588adcc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18418&range=02-03 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18418.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18418/head:pull/18418 PR: https://git.openjdk.org/jdk/pull/18418 From kizune at openjdk.org Thu Mar 21 14:45:57 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 21 Mar 2024 14:45:57 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v4] In-Reply-To: References: Message-ID: <_Y6M3OpAoXffiOpQyd_jEG24ShOUqeEprgPJ68gDf0w=.1ffe25b9-ab61-4d76-b7d8-1fcab60cdf31@github.com> On Thu, 21 Mar 2024 14:42:49 GMT, Prasanta Sadhukhan wrote: >> Few closed manual applet JViewport tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > formatting Marked as reviewed by kizune (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18418#pullrequestreview-1952441418 From psadhukhan at openjdk.org Thu Mar 21 14:45:57 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 14:45:57 GMT Subject: RFR: 8328570: Convert closed JViewport manual applet tests to main [v3] In-Reply-To: <0xB-04oG1w8ijVOwVLFAWpK37Ki22lEncQ8w_lx9F_s=.f37a1fc1-7d76-42f6-a603-e2cd1c8b6e28@github.com> References: <0xB-04oG1w8ijVOwVLFAWpK37Ki22lEncQ8w_lx9F_s=.f37a1fc1-7d76-42f6-a603-e2cd1c8b6e28@github.com> Message-ID: On Thu, 21 Mar 2024 14:40:30 GMT, Alexander Zuev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: >> >> formatting > > test/jdk/javax/swing/JViewport/bug4137282.java line 86: > >> 84: } >> 85: >> 86: static void setPaneSize(int w, int h) { > > Do we even need this method? It is used twice and if we just do setSize and setPreferredSize in these two places we could drop this method and make panel variable local. That will make it more compact and in my opinion more readable. Yes, I considered that but it has 2 lines and used in 2 places...if it had been 1 line I would have done it but since it was more than 1 line I kept it and I dont think its affecting readability so much, is it? > test/jdk/javax/swing/JViewport/bug4243479.java line 30: > >> 28: * @library /java/awt/regtesthelpers >> 29: * @build PassFailJFrame >> 30: @run main/manual bug4243479 > > Suggestion: > > * @run main/manual bug4243479 ok ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1534057018 PR Review Comment: https://git.openjdk.org/jdk/pull/18418#discussion_r1534053111 From psadhukhan at openjdk.org Thu Mar 21 14:49:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 14:49:28 GMT Subject: Integrated: 8328570: Convert closed JViewport manual applet tests to main In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 03:44:01 GMT, Prasanta Sadhukhan wrote: > Few closed manual applet JViewport tests are converted to main based and opensourced This pull request has now been integrated. Changeset: 725d87bb Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/725d87bbc2abae2ca856d91668f0a494f93fca1c Stats: 428 lines in 5 files changed: 428 ins; 0 del; 0 mod 8328570: Convert closed JViewport manual applet tests to main Reviewed-by: abhiscxk, kizune ------------- PR: https://git.openjdk.org/jdk/pull/18418 From aivanov at openjdk.org Thu Mar 21 14:50:25 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 14:50:25 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v6] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 01:13:50 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > added preciseWheelRotation logic & updated test Changes requested by aivanov (Reviewer). test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 58: > 56: When preciseWheelRotation adds up to 1,wheelRotation becomes 1.
> 57: You should see a few events where preciseWheelRotation < 1 & wheelRotation = 0 > 58: followed by a event where preciseWheelRotation = 1 & wheelRotation = 1.

Suggestion: preciseWheelRotation < 1.
When preciseWheelRotation adds up to 1, wheelRotation becomes 1.
You should see a few events where preciseWheelRotation < 1 & wheelRotation = 0 followed by a event where preciseWheelRotation = 1 & wheelRotation = 1.

test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 64: > 62: > 63:
> 64: PS: If you don't see events with preciseWheelRotation < 1, Suggestion: PS: If you don't see events with preciseWheelRotation < 1, test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 91: > 89: panel.addMouseWheelListener(e -> { > 90: if (e.getScrollType() == MouseWheelEvent.WHEEL_UNIT_SCROLL) { > 91: PassFailJFrame.log("WheelEvent#"+ ++wheelEventCount Suggestion: PassFailJFrame.log("WheelEvent#" + (++wheelEventCount) Use parentheses to avoid confusion. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 101: > 99: PassFailJFrame.log("WARNING !!! You might not be using a high-res mouse."); > 100: } > 101: } This logging style is easier to parse, thanks. You have nearly all the data to make the test semi-automatic. What's missing is `wheelRotationCount`. [This diff](https://github.com/aivanov-jdk/jdk/commit/04c80c519d1c116663ab10a177bff1c4b6924091) implements this feature. For convenience, I'll paste the diff inline too: diff --git a/test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java b/test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java index 1097d1dcb04..f3dd8294e8b 100644 --- a/test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java +++ b/test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java @@ -39,7 +39,9 @@ public class AWTPanelSmoothWheel { private static int wheelEventCount = 0; + private static int wheelRotationCount = 0; private static int hiResWheelCount = 0; + private static final String INSTRUCTIONS = """ @@ -92,12 +94,21 @@ private static Frame createUI() { + " --- Wheel Rotation: " + e.getWheelRotation() + " --- Precise Wheel Rotation: " + String.format("%.2f", e.getPreciseWheelRotation())); + if (e.getWheelRotation() >= 1) { + wheelRotationCount += e.getWheelRotation(); + } if (e.getPreciseWheelRotation() < 1) { hiResWheelCount++; } if (wheelEventCount >= 5 && hiResWheelCount == 0) { PassFailJFrame.log("WARNING !!! You might not be using a high-res mouse."); } + if (wheelRotationCount > 5 + && (hiResWheelCount / 2 >= wheelRotationCount)) { + PassFailJFrame.log("The test passes: hiResWheelCount = " + hiResWheelCount + + " wheelRotationCount = " + wheelRotationCount); + PassFailJFrame.forcePass(); + } } }); frame.setSize (400, 200); test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 103: > 101: } > 102: }); > 103: frame.setSize (400, 200); Suggestion: frame.setSize(400, 200); ------------- PR Review: https://git.openjdk.org/jdk/pull/18312#pullrequestreview-1952352489 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1533996638 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534001700 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534003172 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534065861 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534004288 From aivanov at openjdk.org Thu Mar 21 15:03:21 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 15:03:21 GMT Subject: RFR: 8328673: Convert closed text/html/CSS manual applet test to main [v3] In-Reply-To: <1LvnyESoMkYiVpr_0I1UjxgNkFqab-Y024iYJtX0dn4=.0c0bfc48-61ad-4bb0-a18e-844227efb9cf@github.com> References: <1LvnyESoMkYiVpr_0I1UjxgNkFqab-Y024iYJtX0dn4=.0c0bfc48-61ad-4bb0-a18e-844227efb9cf@github.com> Message-ID: <9EwViaS3VcGlNJHheA2leAnEN2UzAcq3hrVodZFfUkU=.305c5f5f-013a-4c9c-a77f-20dfb634ec74@github.com> On Thu, 21 Mar 2024 14:41:50 GMT, Prasanta Sadhukhan wrote: >> Couple closed manual applet text/html/CSS tests are converted to main based and opensourced > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18424#pullrequestreview-1952498525 From aivanov at openjdk.org Thu Mar 21 15:07:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 15:07:23 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v6] In-Reply-To: References: Message-ID: <_nnWF0LSxuojYz7WdCE2yqHGEL1TCJKGOdoDWHdf4kU=.f773e15f-9c10-4733-baef-5e1e1da3b5a5@github.com> On Thu, 21 Mar 2024 01:13:50 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > added preciseWheelRotation logic & updated test test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 99: > 97: } > 98: if (wheelEventCount >= 5 && hiResWheelCount == 0) { > 99: PassFailJFrame.log("WARNING !!! You might not be using a high-res mouse."); [`JOptionPane.showMessageDialog`](https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/JOptionPane.html#showMessageDialog(java.awt.Component,java.lang.Object,java.lang.String,int)) could be a better option to attract the tester's attention. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534100269 From azvegint at openjdk.org Thu Mar 21 15:07:41 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 15:07:41 GMT Subject: RFR: 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization [v2] In-Reply-To: References: Message-ID: <0iWphT04yjJ7Y8W58Sv4MMIizoIDnyny-I3KdCYETLM=.a4f5f93a-7b3a-4f53-aace-2f05c01f65be@github.com> > Two tests may fail intermittently on Wayland, the standard `waitForIdle` and `delay` fixes the issue. > > Manual and CI testing looks good. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: author removed, ../../../regtesthelpers -> /java/awt/regtesthelpers, moved whole block closer to class declaration ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18431/files - new: https://git.openjdk.org/jdk/pull/18431/files/ef599122..3c18826e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18431&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18431&range=00-01 Stats: 51 lines in 2 files changed: 24 ins; 27 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18431.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18431/head:pull/18431 PR: https://git.openjdk.org/jdk/pull/18431 From azvegint at openjdk.org Thu Mar 21 15:07:41 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 15:07:41 GMT Subject: RFR: 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization In-Reply-To: References: Message-ID: <4mjfWsaTAZii2sM-98j9Xg3b5bKHyaNMB5jv6GtnwU0=.56f3e7d0-a713-4830-91c7-ac38876fb4d1@github.com> On Thu, 21 Mar 2024 14:25:36 GMT, Alexander Zuev wrote: > Since you are editing these files you can also drop the @author tag from the test metadata. Otherwise looks good. Sure, author removed ../../../regtesthelpers -> /java/awt/regtesthelpers, moved whole block closer to class declaration ------------- PR Comment: https://git.openjdk.org/jdk/pull/18431#issuecomment-2012545559 From kizune at openjdk.org Thu Mar 21 15:17:20 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 21 Mar 2024 15:17:20 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 22:48:46 GMT, Alisen Chung wrote: > Removing applet usage from manual JFileChooser tests test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 111: > 109: } finally { > 110: if (!res) { > 111: throw new RuntimeException("BackSpace keyboard button does not lead to parent directory"); Since we are using PassFailJFrame anyways we can also use static method PassFailJFrame.forceFail(String reason) for connsistency. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1534118180 From aivanov at openjdk.org Thu Mar 21 15:23:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 15:23:23 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 18:57:37 GMT, Phil Race wrote: >> Convert this applet based test to a main program > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328301 test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 110: > 108: } catch (UnsupportedFlavorException | IOException e) { > 109: e.printStackTrace(); > 110: } Should exception make the test fail? test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 123: > 121: the browser to other applications because of, > 122: the protected mode restrictions., > 123: On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor, Suggestion: IMPORTANT NOTE: the page should be stored locally. Otherwise, for instance iexplore, can prohibit drag and drop from the browser to other applications because of the protected mode restrictions. On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor. The commas in the end of each line seem to come from the commas separating items in an array of Strings. I'm for removing those commas to avoid any confusion when reading the instructions. test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 126: > 124: 3) Check the data in the output area of this window, > 125: 5) The output should not contain information that any of, > 126: flavors is not present in the system clipboard, I believe this condition can be verified automatically. If any missing data flavour should result in test failure, the test could be failed with `PassFailJFrame.forceFail`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1534117514 PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1534123447 PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1534128423 From honkar at openjdk.org Thu Mar 21 15:33:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 15:33:28 GMT Subject: Integrated: JDK-8328299 : Convert DnDFileGroupDescriptor.html applet test to main In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 22:54:23 GMT, Harshitha Onkar wrote: > Following test java/awt/dnd/DnDFileGroupDescriptor/DnDFileGroupDescriptor.html is converted to main using PassFailJFrame. > > This test is currently problem-listed on macOS and linux, but as per the previous JBS bugs [[JDK-6242241](https://bugs.openjdk.org/browse/JDK-6242241), [JDK-8080185](https://bugs.openjdk.org/browse/JDK-8080185), [JDK-7147083](https://bugs.openjdk.org/browse/JDK-7147083)] this test was original created for testing DnD of MS Outlook attachments on Windows system. > > Based on the test history and JBS details, I believe this should be windows-only test and should NOT be problemlisted on macOS and linux as it is **not applicable**. This pull request has now been integrated. Changeset: 75195aab Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/75195aab497a2d23548128e03f6887283dcaa7e1 Stats: 258 lines in 3 files changed: 36 ins; 188 del; 34 mod 8328299: Convert DnDFileGroupDescriptor.html applet test to main Reviewed-by: psadhukhan, tr ------------- PR: https://git.openjdk.org/jdk/pull/18335 From azvegint at openjdk.org Thu Mar 21 15:34:26 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 15:34:26 GMT Subject: Integrated: 8328402: Implement pausing functionality for the PassFailJFrame In-Reply-To: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> References: <_G5oabZhLzV7Ld3agI-uiRKWhJL5_8i8LVWA7JSBhOM=.c025ce82-16ed-4b8d-8e2b-1a8bc849639c@github.com> Message-ID: <8zT3P8X5cRZ6g8WKgwYSzmZ1rZJC_iYSxkzvqJspI4k=.c76e499d-b864-425c-a962-0067d03804e3@github.com> On Tue, 19 Mar 2024 01:14:29 GMT, Alexander Zvegintsev wrote: >> we need to add next to Pass/Fail a "Pause Timer" button, that > (a) stops the count down > (b) changes the Pause Timer to "Resume Timer" > ~~(c) disables Pass/Fail until the timer is resumed~~ > the test will not have to pause or be aware - only the PassFailJFrame machinery. > ~~So the tester can do anything they want except exit the test in the paused mode.~~ > > This PR implements everything except the (c). > I see nothing wrong with completing the test from the paused state, and it does not add an extra click. > > > Example screenshots: > > ![image](https://github.com/openjdk/jdk/assets/77687766/65d34bf8-1e46-4e68-b39e-a77f257ec3c0) > ![image](https://github.com/openjdk/jdk/assets/77687766/3a43e059-2d48-46f3-9d1b-c2ab84fcce37) This pull request has now been integrated. Changeset: 581b1e29 Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/581b1e29aebd425bade14d2ee46704a16187df5b Stats: 47 lines in 1 file changed: 35 ins; 2 del; 10 mod 8328402: Implement pausing functionality for the PassFailJFrame Reviewed-by: aivanov, prr ------------- PR: https://git.openjdk.org/jdk/pull/18368 From aivanov at openjdk.org Thu Mar 21 16:05:28 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 16:05:28 GMT Subject: Integrated: 8327924: Simplify TrayIconScalingTest.java In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 08:33:41 GMT, Alexey Ivanov wrote: > This is to simplify `TrayIconScalingTest.java`. > > 1. Rename `createAndShowGUI` to `createAndShowTrayIcon` which is more specific. > 2. Move creating tray icon to the top. > 3. Streamline PassFailJFrame with the chained calls, including `awaitAndCheck`. > 4. Ensure tray is not null before removing the icon. > 5. Pass AWTException as the cause in the wrapped exception. > > Previously, before the builder pattern was introduced, `PassFailJFrame.positionTestWindow` had had to be called to show the instructions UI. It's not required any more. Additionally, it has the effect of moving the instruction frame to the left, which doesn't look good and sometimes results in positioning the instructions outside of the screen bounds if the screen resolution is low. > > With the builder pattern, the call to the `build` method shows all the registered windows on the screen, including the instruction frame. Since there's no secondary UI, the instructions remain in the centre of the screen. This pull request has now been integrated. Changeset: 1496b5de Author: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/1496b5de9004c6a9e43ead5f6e9e88362028a7cc Stats: 27 lines in 1 file changed: 10 ins; 11 del; 6 mod 8327924: Simplify TrayIconScalingTest.java Reviewed-by: honkar, prr ------------- PR: https://git.openjdk.org/jdk/pull/18224 From aivanov at openjdk.org Thu Mar 21 16:06:26 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 16:06:26 GMT Subject: Integrated: 8325179: Race in BasicDirectoryModel.validateFileCache In-Reply-To: References: Message-ID: 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 these two operations, another thread or even several threads can see the `null` value and create new `FilesLoader` threads. > > The same way, `BasicDirectoryModel.invalidateFileCache` needs to be synchornized to interrupt the current `filesLoader` and assign `null`. > > This bug allows reproducing `ConcurrentModificationException` seen in [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091) using the test in PR #18109. This pull request has now been integrated. Changeset: e66788c1 Author: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/e66788c16563d343f6cccd2807a251ccc6f9b64a Stats: 69 lines in 1 file changed: 17 ins; 21 del; 31 mod 8325179: Race in BasicDirectoryModel.validateFileCache 8238169: BasicDirectoryModel getDirectories and DoChangeContents.run can deadlock Reviewed-by: prr, tr, aturbanov, serb ------------- PR: https://git.openjdk.org/jdk/pull/18111 From dnguyen at openjdk.org Thu Mar 21 16:08:48 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:08:48 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Replace canvas with jpanel ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18403/files - new: https://git.openjdk.org/jdk/pull/18403/files/2416a1c1..839a7db9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=01-02 Stats: 4 lines in 1 file changed: 1 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18403.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18403/head:pull/18403 PR: https://git.openjdk.org/jdk/pull/18403 From dnguyen at openjdk.org Thu Mar 21 16:08:49 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:08:49 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 11:52:28 GMT, Alexey Ivanov wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Add new line > > test/jdk/javax/swing/JCheckBox/bug8032667.java line 78: > >> 76: final Image image1 = getImage(getCheckBox("Deselected", false)); >> 77: final Image image2 = getImage(getCheckBox("Selected", true)); >> 78: Canvas canvas = new Canvas() { > > I recommend using `JPanel` instead of `Canvas`. The former is a Swing lightweight component, whereas the latter is an AWT heavyweight component. It's still better not to mix them. Replaced `Canvas` with `JPanel`. Thanks ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18403#discussion_r1534211977 From dnguyen at openjdk.org Thu Mar 21 16:11:35 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:11:35 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v5] In-Reply-To: References: Message-ID: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18247/files - new: https://git.openjdk.org/jdk/pull/18247/files/c27b6139..3aa7b0f2 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18247&range=03-04 Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18247.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18247/head:pull/18247 PR: https://git.openjdk.org/jdk/pull/18247 From dnguyen at openjdk.org Thu Mar 21 16:11:35 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:11:35 GMT Subject: RFR: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 07:41:15 GMT, Abhishek Kumar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove reundant window constant > > test/jdk/java/awt/im/JTextFieldTest.java line 32: > >> 30: * work correctly with IM when there is an uneditable peered >> 31: * TextField/TextArea in the same parent Frame >> 32: * @run main JTextFieldTest > > should be main/manual ? Fixed. > test/jdk/java/awt/im/JTextFieldTest.java line 42: > >> 40: >> 41: public class JTextFieldTest { >> 42: private static JFrame frame; > > can be moved to local scope in `createAndShowGUI` method. Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1534215303 PR Review Comment: https://git.openjdk.org/jdk/pull/18247#discussion_r1534215460 From dnguyen at openjdk.org Thu Mar 21 16:11:44 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:11:44 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Fix main/manual ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18362/files - new: https://git.openjdk.org/jdk/pull/18362/files/5db0a4af..38eb00eb Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18362.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18362/head:pull/18362 PR: https://git.openjdk.org/jdk/pull/18362 From dnguyen at openjdk.org Thu Mar 21 16:11:44 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:11:44 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v3] In-Reply-To: References: Message-ID: <1d1yz5yLW82IKmVN6FPWkFaLrjIfncdyevZG80zbXjg=.c99bb932-76e9-4400-bfa0-fd6db4f8df61@github.com> On Thu, 21 Mar 2024 05:30:58 GMT, Prasanta Sadhukhan wrote: >> Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: >> >> - Modify instructions more >> - Modify instructions > > test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 31: > >> 29: * @build PassFailJFrame >> 30: * @summary Pass if dialogs are modal. >> 31: * @run main PrintModalDialog > > should be main/manual Fixed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1534218410 From dnguyen at openjdk.org Thu Mar 21 16:15:40 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:15:40 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Remove contentPane ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18403/files - new: https://git.openjdk.org/jdk/pull/18403/files/839a7db9..f9f02662 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18403&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18403.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18403/head:pull/18403 PR: https://git.openjdk.org/jdk/pull/18403 From aivanov at openjdk.org Thu Mar 21 16:15:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 16:15:41 GMT Subject: RFR: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main [v3] In-Reply-To: References: Message-ID: <55eDqQ7iCzzs_m7cYhVTyO6kxOhggZ_otrl7h8Vg9hA=.b94a11c3-0ed8-4206-80b7-879b1e25ebc5@github.com> On Thu, 21 Mar 2024 16:08:48 GMT, Damon Nguyen wrote: >> Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Replace canvas with jpanel Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18403#pullrequestreview-1952713007 From dnguyen at openjdk.org Thu Mar 21 16:15:41 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:15:41 GMT Subject: Integrated: 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:46:40 GMT, Damon Nguyen wrote: > Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main using PassFailJFrame This pull request has now been integrated. Changeset: ef2bd572 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/ef2bd5721316f208a458fecfffa02ec2c0ea7fe0 Stats: 351 lines in 4 files changed: 108 ins; 243 del; 0 mod 8328558: Convert javax/swing/JCheckBox/8032667/bug8032667.java applet test to main Reviewed-by: abhiscxk, psadhukhan, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18403 From psadhukhan at openjdk.org Thu Mar 21 16:21:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 16:21:21 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v2] In-Reply-To: <_ytFO979o9K4RS7fFO_JTQKBda1f-S-at-TBIiWeLhs=.f9467d54-2198-4f3d-a3bc-c90e3a36c2e4@github.com> References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> <_ytFO979o9K4RS7fFO_JTQKBda1f-S-at-TBIiWeLhs=.f9467d54-2198-4f3d-a3bc-c90e3a36c2e4@github.com> Message-ID: On Tue, 19 Mar 2024 14:10:52 GMT, Alexander Zuev wrote: >> Convert test to a main based; >> Move test to an appropriate folder; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Adding library and build clauses test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 59: > 57: frame.add(textScrollPane, BorderLayout.CENTER); > 58: > 59: fd = new FileDialog(new Frame(), "Open"); is there any need to mix Swing and AWT components in the test? I guess you can use the JFrame already created test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 60: > 58: > 59: fd = new FileDialog(new Frame(), "Open"); > 60: fd.setDirectory(APPLICATIONS_FOLDER); guess APPLICATION_FOLDER can be made local test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 91: > 89: .rows((int) instructions.lines().count() + 1) > 90: .columns(40) > 91: .testUI(FileDialogForPackages::initialize) It seems the filedialog is obscuring the instruction and test window...I guess it will be good if you can use position(PassFailJFrame.Position.TOP_LEFT_CORNER) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1534230960 PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1534230082 PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1534232128 From dnguyen at openjdk.org Thu Mar 21 16:35:43 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:35:43 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main Message-ID: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. ------------- Commit messages: - Lambda replacement - Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18436/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18436&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328717 Stats: 85 lines in 3 files changed: 26 ins; 46 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18436.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18436/head:pull/18436 PR: https://git.openjdk.org/jdk/pull/18436 From dnguyen at openjdk.org Thu Mar 21 16:36:24 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:36:24 GMT Subject: Integrated: 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main In-Reply-To: References: Message-ID: On Tue, 12 Mar 2024 18:50:58 GMT, Damon Nguyen wrote: > Convert java/awt/im/JTextFieldTest.java applet test to main using PassFailJFrame. This pull request has now been integrated. Changeset: cc5cda55 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/cc5cda558736ffeae2a4611d87dfe280b9a4eac3 Stats: 68 lines in 2 files changed: 11 ins; 32 del; 25 mod 8328005: Convert java/awt/im/JTextFieldTest.java applet test to main Reviewed-by: prr, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18247 From azvegint at openjdk.org Thu Mar 21 16:38:22 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 16:38:22 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main [v4] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 15:48:41 GMT, Alexander Zuev wrote: >> Convert test to main manual; >> Move test to appropriate folder; >> Delete old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Moving test metadata closer to the class definition for better readability; > Making test automatically skip execution on unsuported toolkit; > Eliminated the separate frame, moving button inside the PassFailJFrame; > Corrected test instructions accordingly; Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/FileDialog/FileDialogOpenDirTest.java line 49: > 47: JButton open = new JButton("Open File Dialog"); > 48: open.addActionListener(e -> { > 49: new FileDialog((Frame) null).show(); Suggestion: new FileDialog((Frame) null).setVisible(true); show is deprecated test/jdk/java/awt/FileDialog/FileDialogOpenDirTest.java line 68: > 66: if (!toolkit.equals("sun.awt.X11.XToolkit")) { > 67: throw new SkippedException("Test is not designed for toolkit " + toolkit); > 68: } Cay be moved to the beginning of the main, to bail out early. ------------- PR Review: https://git.openjdk.org/jdk/pull/18361#pullrequestreview-1952775158 PR Review Comment: https://git.openjdk.org/jdk/pull/18361#discussion_r1534257573 PR Review Comment: https://git.openjdk.org/jdk/pull/18361#discussion_r1534258864 From psadhukhan at openjdk.org Thu Mar 21 16:49:22 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 16:49:22 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test In-Reply-To: References: Message-ID: <9lWyWMS85BTpJDCxcUVhXvL8vvPMvcs-GkzBSKnrdJk=.b7f9c4c5-4bd0-4f85-8a48-a4f60b10c4d1@github.com> On Thu, 21 Mar 2024 10:46:41 GMT, Abhishek Kumar wrote: > Few manual closed applet test converted to automated and open sourced. Marked as reviewed by psadhukhan (Reviewer). test/jdk/javax/swing/JInternalFrame/Ctrli.java line 126: > 124: keyecho.addMouseListener(mouseListener); > 125: frame.setLayout(new BorderLayout()); > 126: frame.getContentPane().add(keyecho); getContentPane is obsolete since jdk1.5 so can be removed as per this [comment](https://github.com/openjdk/jdk/pull/18390#discussion_r1533017080) test/jdk/javax/swing/JMenuItem/JActionCommandTest.java line 135: > 133: mb.add(m); > 134: f.setJMenuBar(mb); > 135: f.getContentPane().add("South", tf); same as above.. ------------- PR Review: https://git.openjdk.org/jdk/pull/18428#pullrequestreview-1952802096 PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1534273918 PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1534274838 From dnguyen at openjdk.org Thu Mar 21 16:51:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:51:36 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18354/files - new: https://git.openjdk.org/jdk/pull/18354/files/836e9e0c..64f49ff7 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=00-01 Stats: 33 lines in 1 file changed: 16 ins; 16 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18354.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18354/head:pull/18354 PR: https://git.openjdk.org/jdk/pull/18354 From dnguyen at openjdk.org Thu Mar 21 16:51:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:51:36 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: <2AcXge8T2E_dFxknLKDqwHoHTLrpY7ff9dOWDqVMQsQ=.75e27ab5-d806-4fe7-8470-98b014c86cc6@github.com> References: <2AcXge8T2E_dFxknLKDqwHoHTLrpY7ff9dOWDqVMQsQ=.75e27ab5-d806-4fe7-8470-98b014c86cc6@github.com> Message-ID: On Thu, 21 Mar 2024 14:14:17 GMT, Alexander Zvegintsev wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comments > > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 33: > >> 31: * on HiDPI + non-HiDPI display pair. >> 32: * @run main MultiDisplayTest >> 33: */ > > We usually move this block just before a class declaration, for better readability. Moved. > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 58: > >> 56: """ >> 57: This test is for OS X or Windows only. >> 58: For other OSes please simply push "Pass". > > `please simply push "Pass"` usually means that it can be replaced with `PassFailJFrame.forcePass()`, but in this case the `@requires (os.family...` can be used to avoid running the test on unwanted platforms. Added jtreg `@requires` tag. > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 93: > >> 91: generateImage(1, Color.BLACK), generateImage(2, Color.BLUE)}); >> 92: >> 93: public static void main(String[] args) throws Exception { > > While the `@requires (os.family...` should be enough, we can add something like > > if (!checkOS()) { > throw new SkippedException("..."); //jtreg.SkippedException > } Added. Thanks. Thought about not needing this at all, but it doesn't hurt to add. > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 109: > >> 107: frame.setLayout(new BorderLayout()); >> 108: Button b = new Button("Start"); >> 109: b.setEnabled(checkOS()); > > With the changes mentioned above, this will become obsolete. Removed the `checkOS()` call. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534277257 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534277092 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534276882 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534277948 From dnguyen at openjdk.org Thu Mar 21 16:52:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 16:52:21 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 16:11:44 GMT, Damon Nguyen wrote: >> Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Fix main/manual @prsadhuk @prrace Can I get a re-review on this? Thanks! ------------- PR Comment: https://git.openjdk.org/jdk/pull/18362#issuecomment-2012981058 From duke at openjdk.org Thu Mar 21 17:04:21 2024 From: duke at openjdk.org (Joel Uckelman) Date: Thu, 21 Mar 2024 17:04:21 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <2LG0ERi-9ETplOC0EdSozMQ4WTJDgx2lw3Z1J6IVrrY=.03443566-afd3-4d7e-8caa-46fa10c55a5e@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> <2LG0ERi-9ETplOC0EdSozMQ4WTJDgx2lw3Z1J6IVrrY=.03443566-afd3-4d7e-8caa-46fa10c55a5e@github.com> Message-ID: On Thu, 21 Mar 2024 12:02:52 GMT, Alexey Ivanov wrote: >> Hi, I'm the submitter of the original bug report. I can confirm that you got the reason for the change exactly right. > > @uckelman Is there a way to reproduce the original bug in the user's environment? > > I think there's a bug in JDK which leads to two _Documents_ folders in the list. If the bug is still reproducible, collecting more data will help us identify the problem and fix it. If I can get in contact with the user, I expect he'd still be able to trigger the bug with my test case, yeah. I'll try to get his attention. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1534298705 From azvegint at openjdk.org Thu Mar 21 17:07:22 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 17:07:22 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 16:51:36 GMT, Damon Nguyen wrote: >> Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review comments Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 109: > 107: frame = new JFrame("MultiDisplayTest"); > 108: frame.setLayout(new BorderLayout()); > 109: Button b = new Button("Start"); Just noticed that the `frame` is not used in test itself, so I guess we can get rid of it, and make this method return the "Start" `JButton`, and use it with `splitUIBottom`/`splitUIRight` instead of `testUI` ------------- PR Review: https://git.openjdk.org/jdk/pull/18354#pullrequestreview-1952846634 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534301518 From psadhukhan at openjdk.org Thu Mar 21 17:08:20 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Thu, 21 Mar 2024 17:08:20 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 16:11:44 GMT, Damon Nguyen wrote: >> Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Fix main/manual Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18362#pullrequestreview-1952852373 From dnguyen at openjdk.org Thu Mar 21 17:23:35 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:23:35 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v3] In-Reply-To: References: Message-ID: > Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Remove frame. Use JButton ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18354/files - new: https://git.openjdk.org/jdk/pull/18354/files/64f49ff7..1ae72e39 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=01-02 Stats: 12 lines in 1 file changed: 0 ins; 7 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/18354.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18354/head:pull/18354 PR: https://git.openjdk.org/jdk/pull/18354 From dnguyen at openjdk.org Thu Mar 21 17:23:35 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:23:35 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: <4nZ3SWCg8TtAeZZ2j7Z0yVpMvRqpEy72vBDNA84DhQI=.dd2a5e2e-7e66-404f-8b6d-0e742ab6cc36@github.com> On Thu, 21 Mar 2024 17:03:41 GMT, Alexander Zvegintsev wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comments > > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 109: > >> 107: frame = new JFrame("MultiDisplayTest"); >> 108: frame.setLayout(new BorderLayout()); >> 109: Button b = new Button("Start"); > > Just noticed that the `frame` is not used in test itself, so I guess we can get rid of it, and make this method return the "Start" `JButton`, and use it with `splitUIBottom`/`splitUIRight` instead of `testUI` Good point. I Removed the `frame`. Changed `button` to `JButton`. Did everything else accordingly. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534331937 From aivanov at openjdk.org Thu Mar 21 17:29:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 17:29:22 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 16:51:36 GMT, Damon Nguyen wrote: >> Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review comments Changes requested by aivanov (Reviewer). test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 62: > 60: - 2nd display is non-HiDPI. > 61: > 62: In other cases please simply push "Pass". These conditions can be detected. On the other hand, since it's a manual test, the tester could enable or connect a second monitor, so it makes sense to preserve the instructions. test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 68: > 66: Then drag parent / child to different displays and check > 67: that the proper image is shown for every window > 68: (must be "black 1x" for non-HiDPI and "blue 2x" for HiDPI). What if the scale is not 200%? It's possible on Windows and it's not uncommon. test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 79: > 77: and Mission Control behavior. > 78: > 79: Close the windows. Won't it fail the test? test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 84: > 82: """; > 83: > 84: private static final int W = 200, H = 200; Suggestion: private static final int W = 200; private static final int H = 200; Java Coding Guidelines do not recommend having several declarations on the same line. test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 141: > 139: public ParentFrame() { > 140: EventQueue.invokeLater(this::CreateUI); > 141: } This looks weird? As far as I can see, the frame is created when Start button is clicked, which implies this operation is running on EDT. There's no reason to use `invokeLater`, all the code from `CreateUI` method could be placed into the constructor. test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 165: > 163: super(f); > 164: EventQueue.invokeLater(this::CreateUI); > 165: } The same comment, `invokeLater` seems redundant. ------------- PR Review: https://git.openjdk.org/jdk/pull/18354#pullrequestreview-1952880721 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534322342 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534330435 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534327277 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534328684 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534338034 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534338996 From aivanov at openjdk.org Thu Mar 21 17:29:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 17:29:23 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:13:34 GMT, Alexey Ivanov wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comments > > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 62: > >> 60: - 2nd display is non-HiDPI. >> 61: >> 62: In other cases please simply push "Pass". > > These conditions can be detected. On the other hand, since it's a manual test, the tester could enable or connect a second monitor, so it makes sense to preserve the instructions. Do we need an occasional _Skip_ button? Yet adding such a button to throw `jtreg.SkippedException` will introduce a transitive dependency on the library which contains the `SkippedException`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534325241 From honkar at openjdk.org Thu Mar 21 17:33:36 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 17:33:36 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v3] In-Reply-To: References: Message-ID: <4MHbh9VAhMibyyb3zTWZyhMUfO3_Aqf3BBdxRjIFISs=.35ce75ab-a95f-4b57-862d-901bd2753506@github.com> > Following test is converted from applet to main using PassFailJFrame. > > The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** > I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. > > This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: rawCode check added ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18402/files - new: https://git.openjdk.org/jdk/pull/18402/files/3dcb944c..9252b4fe Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=01-02 Stats: 50 lines in 1 file changed: 14 ins; 11 del; 25 mod Patch: https://git.openjdk.org/jdk/pull/18402.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18402/head:pull/18402 PR: https://git.openjdk.org/jdk/pull/18402 From honkar at openjdk.org Thu Mar 21 17:36:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 17:36:22 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 12:11:43 GMT, Alexander Zvegintsev wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instruction line length > > test/jdk/java/awt/im/bug4490692.java line 74: > >> 72: .rows((int) INSTRUCTIONS.lines().count() + 2) >> 73: .columns(40) >> 74: .testUI(() -> new TestFrame("Test Accented Chars")) > > Looks like a good candidate to use `splitUIRight/Bottom` (up to you). Agreed. Updated UI. > test/jdk/java/awt/im/bug4490692.java line 95: > >> 93: @Override >> 94: public void keyPressed(KeyEvent e) { >> 95: if (e.getKeyCode() == 23 || e.getKeyCode() == 60) { > >> CASE 2: This step is automated and applicable for both > keyboards - LINUX & SOLARIS SPARC. > When Tab key is pressed it should generate a-acute (?) > character, this test automatically passes if the correct character > is generated on keypress else fails. > > Unfortunately this check doesn't work for me: > `java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='?',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=23,primaryLevelUnicode=225,scancode=0,extendedKeyCode=0x10000e1] on javax.swing.JTextField...` > > The `keycode` is 0, `rawCode` is desired `23`, but we can't get it it unless parsing the output of `e.toString()` > > The `e.getKeyChar() == 0x00e1` check is still valid thought. @azvegint Thanks for checking it. Update the code & added the rawCode check now. Can you please re-review it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534350109 PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534349827 From honkar at openjdk.org Thu Mar 21 17:36:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 17:36:22 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 10:47:24 GMT, Tejesh R
wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> instruction line length > > test/jdk/java/awt/im/bug4490692.java line 81: > >> 79: >> 80: class TestFrame extends JFrame implements KeyListener { >> 81: JTextField text; > > text can be moved inside constructor, any reason why it is here? Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534350327 From abhiscxk at openjdk.org Thu Mar 21 17:36:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 17:36:40 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: References: Message-ID: > Few manual closed applet test converted to automated and open sourced. Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: Remove getContentPane usage ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18428/files - new: https://git.openjdk.org/jdk/pull/18428/files/3c8a8093..d0392ee2 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18428&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18428&range=00-01 Stats: 3 lines in 2 files changed: 0 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18428.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18428/head:pull/18428 PR: https://git.openjdk.org/jdk/pull/18428 From abhiscxk at openjdk.org Thu Mar 21 17:36:40 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 21 Mar 2024 17:36:40 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: <9lWyWMS85BTpJDCxcUVhXvL8vvPMvcs-GkzBSKnrdJk=.b7f9c4c5-4bd0-4f85-8a48-a4f60b10c4d1@github.com> References: <9lWyWMS85BTpJDCxcUVhXvL8vvPMvcs-GkzBSKnrdJk=.b7f9c4c5-4bd0-4f85-8a48-a4f60b10c4d1@github.com> Message-ID: On Thu, 21 Mar 2024 16:45:40 GMT, Prasanta Sadhukhan wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove getContentPane usage > > test/jdk/javax/swing/JInternalFrame/Ctrli.java line 126: > >> 124: keyecho.addMouseListener(mouseListener); >> 125: frame.setLayout(new BorderLayout()); >> 126: frame.getContentPane().add(keyecho); > > getContentPane is obsolete since jdk1.5 so can be removed as per this [comment](https://github.com/openjdk/jdk/pull/18390#discussion_r1533017080) Ok... Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1534348867 From dnguyen at openjdk.org Thu Mar 21 17:43:46 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:43:46 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v4] In-Reply-To: References: Message-ID: > Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Review comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18354/files - new: https://git.openjdk.org/jdk/pull/18354/files/1ae72e39..4ccc1c05 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18354&range=02-03 Stats: 13 lines in 1 file changed: 1 ins; 9 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18354.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18354/head:pull/18354 PR: https://git.openjdk.org/jdk/pull/18354 From dnguyen at openjdk.org Thu Mar 21 17:43:46 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:43:46 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: <83ylGFN6Q-tFKgXXGRSUt9JdvFjWhyS57vCDsWiMjCg=.9f41fd19-763b-4630-9687-eaa20709541e@github.com> On Thu, 21 Mar 2024 17:15:31 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 62: >> >>> 60: - 2nd display is non-HiDPI. >>> 61: >>> 62: In other cases please simply push "Pass". >> >> These conditions can be detected. On the other hand, since it's a manual test, the tester could enable or connect a second monitor, so it makes sense to preserve the instructions. > > Do we need an occasional _Skip_ button? Yet adding such a button to throw `jtreg.SkippedException` will introduce a transitive dependency on the library which contains the `SkippedException`. I'm OK with either direction. To me, passing the test seems fine for cases we'd skip, but adding a `Skip` button may seem more logical. I was OK with this approach enough to stick with the original instructions. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534353748 From dnguyen at openjdk.org Thu Mar 21 17:43:46 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:43:46 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:17:10 GMT, Alexey Ivanov wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comments > > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 79: > >> 77: and Mission Control behavior. >> 78: >> 79: Close the windows. > > Won't it fail the test? This was a part of the original instructions. I modified it to clarify that we need to close the Parent and Child windows, not the PassFailJFrame as well. Thanks > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 84: > >> 82: """; >> 83: >> 84: private static final int W = 200, H = 200; > > Suggestion: > > private static final int W = 200; > private static final int H = 200; > > Java Coding Guidelines do not recommend having several declarations on the same line. Fixed. Thanks > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 141: > >> 139: public ParentFrame() { >> 140: EventQueue.invokeLater(this::CreateUI); >> 141: } > > This looks weird? > > As far as I can see, the frame is created when Start button is clicked, which implies this operation is running on EDT. There's no reason to use `invokeLater`, all the code from `CreateUI` method could be placed into the constructor. Agreed. I modified it as you suggested. Likewise for the child frame. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534351092 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534351797 PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534351579 From aivanov at openjdk.org Thu Mar 21 17:43:47 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 17:43:47 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:34:19 GMT, Damon Nguyen wrote: >> test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 79: >> >>> 77: and Mission Control behavior. >>> 78: >>> 79: Close the windows. >> >> Won't it fail the test? > > This was a part of the original instructions. I modified it to clarify that we need to close the Parent and Child windows, not the PassFailJFrame as well. Thanks It won't as those windows aren't tracked by `PassFailJFrame`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534351815 From aivanov at openjdk.org Thu Mar 21 17:43:46 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 17:43:46 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:40:55 GMT, Damon Nguyen wrote: >> Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Review comments Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18354#pullrequestreview-1952972156 From aivanov at openjdk.org Thu Mar 21 17:43:46 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 17:43:46 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: <83ylGFN6Q-tFKgXXGRSUt9JdvFjWhyS57vCDsWiMjCg=.9f41fd19-763b-4630-9687-eaa20709541e@github.com> References: <83ylGFN6Q-tFKgXXGRSUt9JdvFjWhyS57vCDsWiMjCg=.9f41fd19-763b-4630-9687-eaa20709541e@github.com> Message-ID: On Thu, 21 Mar 2024 17:36:24 GMT, Damon Nguyen wrote: >> Do we need an occasional _Skip_ button? Yet adding such a button to throw `jtreg.SkippedException` will introduce a transitive dependency on the library which contains the `SkippedException`. > > I'm OK with either direction. To me, passing the test seems fine for cases we'd skip, but adding a `Skip` button may seem more logical. I was OK with this approach enough to stick with the original instructions. I'm not suggesting modifying the instructions, I'm bringing up it for a discussion. Essentially, `SkippedException` is also like passing the test, it's indistinguishable in the report. Only the log of the test run will contain the information that the test was skipped. >From this point of view, it's wiser not to introduce an additional dependency which will affect all the manual tests. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534359360 From dnguyen at openjdk.org Thu Mar 21 17:49:23 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:49:23 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: <83ylGFN6Q-tFKgXXGRSUt9JdvFjWhyS57vCDsWiMjCg=.9f41fd19-763b-4630-9687-eaa20709541e@github.com> Message-ID: On Thu, 21 Mar 2024 17:40:55 GMT, Alexey Ivanov wrote: >> I'm OK with either direction. To me, passing the test seems fine for cases we'd skip, but adding a `Skip` button may seem more logical. I was OK with this approach enough to stick with the original instructions. > > I'm not suggesting modifying the instructions, I'm bringing up it for a discussion. > > Essentially, `SkippedException` is also like passing the test, it's indistinguishable in the report. Only the log of the test run will contain the information that the test was skipped. > > From this point of view, it's wiser not to introduce an additional dependency which will affect all the manual tests. Makes sense, thanks. The feature would definitely be nice for circumstances like this. This seems to be the first test this sprint for me that the `Skip` button would apply to. So, not sure how often it would come up. Taking into account your point of having an additional dependency on all of these manual tests, maybe better to not have it for now unless similar circumstances pop up more frequently. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534366700 From prr at openjdk.org Thu Mar 21 17:50:29 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 17:50:29 GMT Subject: Integrated: 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet In-Reply-To: References: Message-ID: <96h5WkGQmTxnfnQpvvvk8T-jSp2FKgXKuhdmEBFyeZk=.43174e7e-3f90-4dbe-8f7d-fbf6c3496f9e@github.com> On Tue, 19 Mar 2024 23:30:39 GMT, Phil Race wrote: > This seems to have been some previous not very complete conversion of a test from applet to main. > It even still had Applet imported and miscellaneous comments. I've cleaned it up. This pull request has now been integrated. Changeset: e81374e0 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/e81374e0501a8201dac701824d2e29f2cedfcdff Stats: 112 lines in 1 file changed: 24 ins; 56 del; 32 mod 8328560: java/awt/event/MouseEvent/ClickDuringKeypress/ClickDuringKeypress.java imports Applet Reviewed-by: azvegint, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/18386 From prr at openjdk.org Thu Mar 21 17:51:26 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 17:51:26 GMT Subject: Integrated: 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 18:20:06 GMT, Phil Race wrote: > A simple fix to the test to skip sampling the leftmost and rightmost ends of the divider > to avoid possible issues at fractional scales. This pull request has now been integrated. Changeset: fa823bd2 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/fa823bd21c6676c67c42275efb59868200409b38 Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod 8328540: test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi Reviewed-by: abhiscxk, psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18384 From honkar at openjdk.org Thu Mar 21 17:52:34 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 17:52:34 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v4] In-Reply-To: References: Message-ID: > Following test is converted from applet to main using PassFailJFrame. > > The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** > I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. > > This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: minor jtreg tag change ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18402/files - new: https://git.openjdk.org/jdk/pull/18402/files/9252b4fe..03cc8e41 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18402.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18402/head:pull/18402 PR: https://git.openjdk.org/jdk/pull/18402 From dnguyen at openjdk.org Thu Mar 21 17:58:29 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 21 Mar 2024 17:58:29 GMT Subject: Integrated: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 17:31:07 GMT, Damon Nguyen wrote: > Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main using PassFailJFrame This pull request has now been integrated. Changeset: ba05c6d0 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/ba05c6d0b6955a0c5110b75e709e2206961f9fec Stats: 376 lines in 3 files changed: 169 ins; 207 del; 0 mod 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main Reviewed-by: azvegint, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18354 From prr at openjdk.org Thu Mar 21 17:59:21 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 17:59:21 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 15:14:26 GMT, Alexey Ivanov wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328301 > > test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 110: > >> 108: } catch (UnsupportedFlavorException | IOException e) { >> 109: e.printStackTrace(); >> 110: } > > Should exception make the test fail? The author of the test didn't think so, this doesn't seem related to converting to a main program so I don't want to touch it. > test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 123: > >> 121: the browser to other applications because of, >> 122: the protected mode restrictions., >> 123: On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor, > > Suggestion: > > IMPORTANT NOTE: the page should be stored locally. > Otherwise, for instance iexplore, can prohibit drag and drop from > the browser to other applications because of > the protected mode restrictions. > On Mac OS X do NOT use Safari, it does not provide the needed DataFlavor. > > The commas in the end of each line seem to come from the commas separating items in an array of Strings. I'm for removing those commas to avoid any confusion when reading the instructions. yes, they are. I will fix this and tidy up the text a little bit more. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1534383187 PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1534378391 From prr at openjdk.org Thu Mar 21 18:05:32 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 18:05:32 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v3] In-Reply-To: References: Message-ID: > Convert this applet based test to a main program Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328301 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18334/files - new: https://git.openjdk.org/jdk/pull/18334/files/38292f15..7998de2d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18334&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18334&range=01-02 Stats: 20 lines in 1 file changed: 0 ins; 1 del; 19 mod Patch: https://git.openjdk.org/jdk/pull/18334.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18334/head:pull/18334 PR: https://git.openjdk.org/jdk/pull/18334 From prr at openjdk.org Thu Mar 21 18:05:32 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 18:05:32 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 15:20:16 GMT, Alexey Ivanov wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328301 > > test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 126: > >> 124: 3) Check the data in the output area of this window, >> 125: 5) The output should not contain information that any of, >> 126: flavors is not present in the system clipboard, > > I believe this condition can be verified automatically. If any missing data flavour should result in test failure, the test could be failed with `PassFailJFrame.forceFail`. I experimented with the user experience of that. You drag something, drop it and and the test just vanishes. I don't like the user experience and so I'd have to write a popup which first explains it to the user. I think it better to keep things as they are. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1534393927 From aivanov at openjdk.org Thu Mar 21 18:08:25 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 21 Mar 2024 18:08:25 GMT Subject: RFR: 8328368: Convert java/awt/image/multiresolution/MultiDisplayTest/MultiDisplayTest.java applet test to main [v2] In-Reply-To: References: Message-ID: <-RCSa10UMtjYNIx_6VVk6NRs7C6mtrTz9PlIJTO-YVw=.e86ca738-81f3-4c98-9c94-c5992d1c618a@github.com> On Thu, 21 Mar 2024 17:19:25 GMT, Alexey Ivanov wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Review comments > > test/jdk/java/awt/image/multiresolution/MultiDisplayTest.java line 68: > >> 66: Then drag parent / child to different displays and check >> 67: that the proper image is shown for every window >> 68: (must be "black 1x" for non-HiDPI and "blue 2x" for HiDPI). > > What if the scale is not 200%? It's possible on Windows and it's not uncommon. On a monitor with 150% scale, the blue 2x image is displayed, which makes sense. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18354#discussion_r1534401458 From achung at openjdk.org Thu Mar 21 18:16:21 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 21 Mar 2024 18:16:21 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:52:34 GMT, Harshitha Onkar wrote: >> Following test is converted from applet to main using PassFailJFrame. >> >> The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** >> I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. >> >> This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > minor jtreg tag change Changes requested by achung (Committer). test/jdk/java/awt/im/bug4490692.java line 115: > 113: return panel; > 114: } > 115: } extra newline ------------- PR Review: https://git.openjdk.org/jdk/pull/18402#pullrequestreview-1953060038 PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534414016 From achung at openjdk.org Thu Mar 21 18:18:21 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 21 Mar 2024 18:18:21 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v4] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 18:37:45 GMT, Alexander Zuev wrote: >> Convert test to a main method based; >> Move test to an apropriate location; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Remove .html from the @test clause Changes requested by achung (Committer). test/jdk/java/awt/FileDialog/FileDialogReturnTest.java line 142: > 140: .awaitAndCheck(); > 141: } > 142: } extra newline ------------- PR Review: https://git.openjdk.org/jdk/pull/18363#pullrequestreview-1953063205 PR Review Comment: https://git.openjdk.org/jdk/pull/18363#discussion_r1534416751 From honkar at openjdk.org Thu Mar 21 18:50:35 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 18:50:35 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v7] In-Reply-To: References: Message-ID: <7HVyWYGAP-Ot6aGs4ExTqsC7lyfoLwcdVn4eJkCFLDg=.8e7e742a-d30d-44b6-8c85-7b8956dc9381@github.com> > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: converted to semi-automatic, use of JOptionPane for warning msg ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/6b7591f0..6901a65c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=06 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=05-06 Stats: 40 lines in 1 file changed: 27 ins; 0 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From prr at openjdk.org Thu Mar 21 19:14:44 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 19:14:44 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java Message-ID: This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). ------------- Commit messages: - 8328555 Changes: https://git.openjdk.org/jdk/pull/18439/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18439&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328555 Stats: 150 lines in 2 files changed: 149 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18439.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18439/head:pull/18439 PR: https://git.openjdk.org/jdk/pull/18439 From aturbanov at openjdk.org Thu Mar 21 19:43:21 2024 From: aturbanov at openjdk.org (Andrey Turbanov) Date: Thu, 21 Mar 2024 19:43:21 GMT Subject: RFR: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main In-Reply-To: References: Message-ID: <8OHyzKpslRylhpHE7-RwZG_-uqbnLtyBW2IVKmKbU60=.be266219-df7e-421f-9c99-eac9ea0ff9c7@github.com> On Wed, 20 Mar 2024 21:33:04 GMT, Phil Race wrote: > Converts java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.html > to a main program. test/jdk/java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.java line 65: > 63: frame.add(singleList); > 64: frame.add(multipleList); > 65: frame.setSize(400,100); Suggestion: frame.setSize(400, 100); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18414#discussion_r1534561152 From honkar at openjdk.org Thu Mar 21 19:53:48 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 19:53:48 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v8] In-Reply-To: References: Message-ID: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: changed the forcePass logic, updated instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/6901a65c..ec673142 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=07 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=06-07 Stats: 21 lines in 1 file changed: 3 ins; 6 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Thu Mar 21 19:53:49 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 19:53:49 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v6] In-Reply-To: <_nnWF0LSxuojYz7WdCE2yqHGEL1TCJKGOdoDWHdf4kU=.f773e15f-9c10-4733-baef-5e1e1da3b5a5@github.com> References: <_nnWF0LSxuojYz7WdCE2yqHGEL1TCJKGOdoDWHdf4kU=.f773e15f-9c10-4733-baef-5e1e1da3b5a5@github.com> Message-ID: On Thu, 21 Mar 2024 15:04:18 GMT, Alexey Ivanov wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> added preciseWheelRotation logic & updated test > > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 99: > >> 97: } >> 98: if (wheelEventCount >= 5 && hiResWheelCount == 0) { >> 99: PassFailJFrame.log("WARNING !!! You might not be using a high-res mouse."); > > [`JOptionPane.showMessageDialog`](https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/JOptionPane.html#showMessageDialog(java.awt.Component,java.lang.Object,java.lang.String,int)) could be a better option to attract the tester's attention. Thanks for the suggestion. Added it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534577098 From azvegint at openjdk.org Thu Mar 21 19:55:20 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 19:55:20 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:52:34 GMT, Harshitha Onkar wrote: >> Following test is converted from applet to main using PassFailJFrame. >> >> The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** >> I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. >> >> This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > minor jtreg tag change Marked as reviewed by azvegint (Reviewer). test/jdk/java/awt/im/bug4490692.java line 87: > 85: panel.add(new JLabel("Text field:")); > 86: > 87: textField.addKeyListener(new KeyListener() { you can use `KeyAdapter` to avoid overriding unused methods (`keyTyped`, `keyReleased`). ------------- PR Review: https://git.openjdk.org/jdk/pull/18402#pullrequestreview-1953247310 PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534565486 From azvegint at openjdk.org Thu Mar 21 19:55:22 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 19:55:22 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:33:22 GMT, Harshitha Onkar wrote: >> test/jdk/java/awt/im/bug4490692.java line 95: >> >>> 93: @Override >>> 94: public void keyPressed(KeyEvent e) { >>> 95: if (e.getKeyCode() == 23 || e.getKeyCode() == 60) { >> >>> CASE 2: This step is automated and applicable for both >> keyboards - LINUX & SOLARIS SPARC. >> When Tab key is pressed it should generate a-acute (?) >> character, this test automatically passes if the correct character >> is generated on keypress else fails. >> >> Unfortunately this check doesn't work for me: >> `java.awt.event.KeyEvent[KEY_PRESSED,keyCode=0,keyText=Unknown keyCode: 0x0,keyChar='?',keyLocation=KEY_LOCATION_UNKNOWN,rawCode=23,primaryLevelUnicode=225,scancode=0,extendedKeyCode=0x10000e1] on javax.swing.JTextField...` >> >> The `keycode` is 0, `rawCode` is desired `23`, but we can't get it it unless parsing the output of `e.toString()` >> >> The `e.getKeyChar() == 0x00e1` check is still valid thought. > > @azvegint Thanks for checking it. Update the code & added the rawCode check now. Can you please re-review it. Now it works for the tab case, thank you. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534579209 From azvegint at openjdk.org Thu Mar 21 20:00:26 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 20:00:26 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 18:13:41 GMT, Alisen Chung wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor jtreg tag change > > test/jdk/java/awt/im/bug4490692.java line 115: > >> 113: return panel; >> 114: } >> 115: } > > extra newline It is a common practice: https://stackoverflow.com/a/4700756 ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534585340 From honkar at openjdk.org Thu Mar 21 20:00:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 20:00:26 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v6] In-Reply-To: References: Message-ID: <0-Nn3syDmIIEjkI3vKRJw2TZZfDVJuPoxCxpS1db3Fs=.475b7415-04ad-4767-a34a-1c8ad412f89d@github.com> On Thu, 21 Mar 2024 14:47:52 GMT, Alexey Ivanov wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> added preciseWheelRotation logic & updated test > > Changes requested by aivanov (Reviewer). @aivanov-jdk I have changed the logic for MouseWheelEvents as below: - wheelRotationCount was no longer required, hence removed it . - checking for Math.abs(e.getPreciseWheelRotation()) value since it can be negative when mouse is scrolled down. - `(e.getWheelRotation() != 0 && hiResWheelCount > 0)` this condition looks to be sufficient to forcePass the test as we need only one complete non-zero wheelRotation value. - added JOptionPane for the warning message as suggested. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18312#issuecomment-2013565144 From prr at openjdk.org Thu Mar 21 20:04:27 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 20:04:27 GMT Subject: RFR: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used Message-ID: I don't know why this file is checked in. It has no @test tag and doesn't do anything. I am deleting it. ------------- Commit messages: - 8328561 Changes: https://git.openjdk.org/jdk/pull/18440/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18440&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328561 Stats: 328 lines in 1 file changed: 0 ins; 328 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18440.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18440/head:pull/18440 PR: https://git.openjdk.org/jdk/pull/18440 From honkar at openjdk.org Thu Mar 21 20:10:35 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 20:10:35 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v5] In-Reply-To: References: Message-ID: > Following test is converted from applet to main using PassFailJFrame. > > The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** > I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. > > This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: KeyAdapter changes ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18402/files - new: https://git.openjdk.org/jdk/pull/18402/files/03cc8e41..de73fa42 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=03-04 Stats: 12 lines in 1 file changed: 1 ins; 10 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18402.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18402/head:pull/18402 PR: https://git.openjdk.org/jdk/pull/18402 From prr at openjdk.org Thu Mar 21 20:10:42 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 20:10:42 GMT Subject: RFR: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main [v2] In-Reply-To: References: Message-ID: <5AoaJH0Y9Qofx5WHxQrZhztQLefnZbfT2Qt67iFeSd4=.a65de28b-baaa-4948-8801-e977b624d68c@github.com> > Converts java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.html > to a main program. Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328642 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18414/files - new: https://git.openjdk.org/jdk/pull/18414/files/979e4857..5f863c9d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18414&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18414&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18414.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18414/head:pull/18414 PR: https://git.openjdk.org/jdk/pull/18414 From prr at openjdk.org Thu Mar 21 20:10:42 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 20:10:42 GMT Subject: RFR: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 13:51:16 GMT, Alexander Zvegintsev wrote: >> Phil Race has updated the pull request incrementally with one additional commit since the last revision: >> >> 8328642 > > test/jdk/java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.java line 31: > >> 29: @library /java/awt/regtesthelpers >> 30: @run main/manual MouseDraggedOutCauseScrollingTest >> 31: */ > > We usually move this and instructions block closer to a class declaration, for better readability. So people have been saying this, and I've even done it when asked, but I'm not sure I agree. Although it has to go below the legal stuff, after that I like to see the test tag right at the top of the file, not below a random number of imports. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18414#discussion_r1534605049 From prr at openjdk.org Thu Mar 21 20:10:43 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 20:10:43 GMT Subject: Integrated: 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main In-Reply-To: References: Message-ID: <_YZHAL2oL7RWIBw9P-YoRBVQsiPRp5EpkwFQPZgXXQs=.d8ea91f9-103c-4718-a45b-37185347c67b@github.com> On Wed, 20 Mar 2024 21:33:04 GMT, Phil Race wrote: > Converts java/awt/List/MouseDraggedOutCauseScrollingTest/MouseDraggedOutCauseScrollingTest.html > to a main program. This pull request has now been integrated. Changeset: ab183e43 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/ab183e437c18b445e9c022a4d74de818d4ccecbe Stats: 286 lines in 2 files changed: 48 ins; 211 del; 27 mod 8328642: Convert applet test MouseDraggedOutCauseScrollingTest.html to main Reviewed-by: abhiscxk, azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18414 From honkar at openjdk.org Thu Mar 21 20:17:46 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 20:17:46 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v6] In-Reply-To: References: Message-ID: > Following test is converted from applet to main using PassFailJFrame. > > The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** > I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. > > This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: re-added @requires tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18402/files - new: https://git.openjdk.org/jdk/pull/18402/files/de73fa42..f86f3d07 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18402&range=04-05 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18402.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18402/head:pull/18402 PR: https://git.openjdk.org/jdk/pull/18402 From honkar at openjdk.org Thu Mar 21 20:17:46 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 20:17:46 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:44:52 GMT, Alexander Zvegintsev wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> minor jtreg tag change > > test/jdk/java/awt/im/bug4490692.java line 87: > >> 85: panel.add(new JLabel("Text field:")); >> 86: >> 87: textField.addKeyListener(new KeyListener() { > > you can use `KeyAdapter` to avoid overriding unused methods (`keyTyped`, `keyReleased`). Thanks! Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18402#discussion_r1534618391 From azvegint at openjdk.org Thu Mar 21 20:25:22 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Thu, 21 Mar 2024 20:25:22 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v2] In-Reply-To: References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> <_ytFO979o9K4RS7fFO_JTQKBda1f-S-at-TBIiWeLhs=.f9467d54-2198-4f3d-a3bc-c90e3a36c2e4@github.com> Message-ID: On Thu, 21 Mar 2024 16:17:33 GMT, Prasanta Sadhukhan wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Adding library and build clauses > > test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 59: > >> 57: frame.add(textScrollPane, BorderLayout.CENTER); >> 58: >> 59: fd = new FileDialog(new Frame(), "Open"); > > is there any need to mix Swing and AWT components in the test? I guess you can use the JFrame already created Actually you don't need the textOutput, with recent changes you can add `.logArea()` to the PassFailJFrame builder https://github.com/openjdk/jdk/blob/master/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java#L1200 and just use `PassFailJFrame.log()` wherever you need it. So this method can be changed to return the a `JButton`, and use it with `splitUIBottom`/`splitUIRight` instead of testUI ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1534625825 From achung at openjdk.org Thu Mar 21 21:10:22 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 21 Mar 2024 21:10:22 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v4] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 18:37:45 GMT, Alexander Zuev wrote: >> Convert test to a main method based; >> Move test to an apropriate location; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Remove .html from the @test clause Marked as reviewed by achung (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18363#pullrequestreview-1953428533 From achung at openjdk.org Thu Mar 21 21:10:23 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 21 Mar 2024 21:10:23 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 18:15:23 GMT, Alisen Chung wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove .html from the @test clause > > test/jdk/java/awt/FileDialog/FileDialogReturnTest.java line 142: > >> 140: .awaitAndCheck(); >> 141: } >> 142: } > > extra newline oops, got confused with github formatting, everything else looks good ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18363#discussion_r1534684467 From achung at openjdk.org Thu Mar 21 21:11:22 2024 From: achung at openjdk.org (Alisen Chung) Date: Thu, 21 Mar 2024 21:11:22 GMT Subject: RFR: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main [v6] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 20:17:46 GMT, Harshitha Onkar wrote: >> Following test is converted from applet to main using PassFailJFrame. >> >> The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** >> I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. >> >> This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > re-added @requires tag Marked as reviewed by achung (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18402#pullrequestreview-1953428980 From prr at openjdk.org Thu Mar 21 22:48:25 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 22:48:25 GMT Subject: RFR: 8327840: Automate javax/swing/border/Test4129681.java [v4] In-Reply-To: <4w7MNk7DTNfFWhugo3ZSaQesEIGV00_Lv8JKPK5B_ZA=.c3a1c723-3b8d-4064-8b77-96b9f5b86cf8@github.com> References: <4w7MNk7DTNfFWhugo3ZSaQesEIGV00_Lv8JKPK5B_ZA=.c3a1c723-3b8d-4064-8b77-96b9f5b86cf8@github.com> Message-ID: On Thu, 21 Mar 2024 05:14:44 GMT, Tejesh R wrote: >> Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. >> Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Review updates Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18336#pullrequestreview-1953568643 From prr at openjdk.org Thu Mar 21 22:50:38 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 22:50:38 GMT Subject: Integrated: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 22:32:12 GMT, Phil Race wrote: > Convert this applet based test to a main program This pull request has now been integrated. Changeset: f7f291c5 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/f7f291c5d4d2d01dab3ccda7518ebc13f6bd58f6 Stats: 260 lines in 2 files changed: 15 ins; 189 del; 56 mod 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program Reviewed-by: honkar ------------- PR: https://git.openjdk.org/jdk/pull/18334 From prr at openjdk.org Thu Mar 21 22:51:22 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 21 Mar 2024 22:51:22 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v3] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 18:01:51 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > text block instructions test/jdk/javax/swing/JColorChooser/Test4887836.java line 60: > 58: > 59: // NON-NLS: property and font names > 60: UIManager.put("Label.font", new Font("Perpetua", 0, 36)); Sorry, not related to the applet conversion but Perpetua ?? Pointless. Won't exist. Change it to Font.DIALOG. I think you should also remove the comment line. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1534780051 From honkar at openjdk.org Thu Mar 21 23:09:27 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 21 Mar 2024 23:09:27 GMT Subject: Integrated: JDK-8328398 : Convert java/awt/im/4490692/bug4490692.html applet test to main In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 16:38:25 GMT, Harshitha Onkar wrote: > Following test is converted from applet to main using PassFailJFrame. > > The original test had ignore tag - **The fix for this problem was backed out for 5057184. Remove this "ignore" tag when it is fixed again.** > I believe this was fixed and the test works correctly on Linux platforms, hence ignore tag has been removed. > > This is a semi-automated test, the first check is manual and the 2nd one is automated. Details in the test instructions. This pull request has now been integrated. Changeset: 0efd9dc0 Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/0efd9dc09b969846f79fb8ca16ddf565117d52b6 Stats: 238 lines in 3 files changed: 107 ins; 131 del; 0 mod 8328398: Convert java/awt/im/4490692/bug4490692.html applet test to main Reviewed-by: achung, azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18402 From kizune at openjdk.org Thu Mar 21 23:40:46 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Thu, 21 Mar 2024 23:40:46 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests Message-ID: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Clean up and opensource five tests. ------------- Commit messages: - 8316324: Opensource five miscellaneous Swing tests Changes: https://git.openjdk.org/jdk/pull/18443/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18443&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8316324 Stats: 565 lines in 6 files changed: 565 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18443.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18443/head:pull/18443 PR: https://git.openjdk.org/jdk/pull/18443 From honkar at openjdk.org Fri Mar 22 00:35:30 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 00:35:30 GMT Subject: RFR: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main [v5] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 08:30:36 GMT, Abhishek Kumar wrote: >> Conversion of manual applet test to main based using PassFailJFrame manual framework > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Review comment update Updated changes look good. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18233#pullrequestreview-1953726069 From honkar at openjdk.org Fri Mar 22 01:26:24 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 01:26:24 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 16:31:04 GMT, Damon Nguyen wrote: > Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. @DamonGuy Tested on macOS, JColorChooser DnD doesn't seem to work on it. test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 37: > 35: > 36: public static void main(String[] args) { > 37: SwingUtilities.invokeLater(() -> { Copyright year needs to be updated for this file ------------- PR Review: https://git.openjdk.org/jdk/pull/18436#pullrequestreview-1953766551 PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1534921979 From honkar at openjdk.org Fri Mar 22 01:34:25 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 01:34:25 GMT Subject: RFR: 8328380: Remove applet usage from JColorChooser tests Test6348456 In-Reply-To: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> References: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> Message-ID: On Mon, 18 Mar 2024 20:07:50 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests Marked as reviewed by honkar (Reviewer). test/jdk/javax/swing/JColorChooser/Test6348456.java line 45: > 43: > 44: private static final DefaultColorSelectionModel WHITE = new DefaultColorSelectionModel(Color.WHITE); > 45: private static final DefaultColorSelectionModel BLACK = new DefaultColorSelectionModel(Color.BLACK); Please fix line-lengths. test/jdk/javax/swing/JColorChooser/Test6348456.java line 66: > 64: > 65: public static JFrame test() { > 66: JFrame frame = new JFrame("temp"); @alisenchung JFrame title can be changed to more appropriate name. ------------- PR Review: https://git.openjdk.org/jdk/pull/18359#pullrequestreview-1953779270 PR Review Comment: https://git.openjdk.org/jdk/pull/18359#discussion_r1534930688 PR Review Comment: https://git.openjdk.org/jdk/pull/18359#discussion_r1534931780 From honkar at openjdk.org Fri Mar 22 01:52:25 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 01:52:25 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race wrote: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). Problemlist on macOS no longer required due to the updated test changes. @prrace This test passes on macOS 14.2. Earlier the test was problemlisted on mac because the mouse click was not being triggered on the edge of Frame or buttons. Since you have changed the button click location for hidpi problems, as a side-effect it to passes on macOS. So problemlisting is not required on macOS. Test log on macOS 14.2 Action Performed Before First Modal handler is started Running Before Hiding 1 Before Synchronized After First Modal In Synchronized After Notify Stop Running Show Something STATUS:Passed. ------------- PR Review: https://git.openjdk.org/jdk/pull/18439#pullrequestreview-1953791542 PR Comment: https://git.openjdk.org/jdk/pull/18439#issuecomment-2014167250 From tr at openjdk.org Fri Mar 22 03:24:32 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 03:24:32 GMT Subject: Integrated: 8327840: Automate javax/swing/border/Test4129681.java In-Reply-To: References: Message-ID: <-iusdBmfbEnwGjR2wiEUtkkY2dBh4Y6m-9YAE6Inu3M=.faa85a35-1df1-4114-83ed-06b3636b2ccb@github.com> On Sat, 16 Mar 2024 07:43:18 GMT, Tejesh R wrote: > Automated the Test `javax/swing/border/Test4129681.java` from manual as suggested in JBS description. > Verified in CI system and its Green. The test has been verified for Metal L&F and the same is set explicitly.. This pull request has now been integrated. Changeset: 177b8a24 Author: Tejesh R URL: https://git.openjdk.org/jdk/commit/177b8a241c11782b302607c0068b15b38112e67c Stats: 48 lines in 1 file changed: 15 ins; 5 del; 28 mod 8327840: Automate javax/swing/border/Test4129681.java Reviewed-by: abhiscxk, prr ------------- PR: https://git.openjdk.org/jdk/pull/18336 From abhiscxk at openjdk.org Fri Mar 22 03:43:28 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 03:43:28 GMT Subject: Integrated: 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main In-Reply-To: References: Message-ID: <_NZgQZU5TdBrssTV0vYVmPaozOkkw5MTljyNUGp05K0=.c1ec28f7-ae7b-4ab2-b89c-96a9b2ebeff3@github.com> On Tue, 12 Mar 2024 12:49:06 GMT, Abhishek Kumar wrote: > Conversion of manual applet test to main based using PassFailJFrame manual framework This pull request has now been integrated. Changeset: 256d48b1 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/256d48b19694e86bb26d67ed56de8ac94a31f4ff Stats: 333 lines in 3 files changed: 149 ins; 184 del; 0 mod 8327980: Convert javax/swing/JToggleButton/4128979/bug4128979.java applet test to main Reviewed-by: honkar, tr ------------- PR: https://git.openjdk.org/jdk/pull/18233 From jwaters at openjdk.org Fri Mar 22 04:09:43 2024 From: jwaters at openjdk.org (Julian Waters) Date: Fri, 22 Mar 2024 04:09:43 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v49] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Sun, 21 Jan 2024 19:50:16 GMT, Phil Race wrote: >> Fixed the formatting (at least in the marked cases), but am unsure what you mean by set directly? > >> Fixed the formatting (at least in the marked cases), but am unsure what you mean by set directly? > > See my comment > "like in my recoded case above, we no longer need the "pData" var which was there only because that name > is magically known to the macro." > > so skip (and get rid of) the pData var and just set the target var directly @prrace Sorry for the page, but as I mentioned above I don't see much of an advantage to removing pData, since it appears we still have to do the null check anyway even without it. I'm also not sure what the incorrect code you mentioned above is ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2014317099 From kizune at openjdk.org Fri Mar 22 05:15:38 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 05:15:38 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v3] In-Reply-To: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> Message-ID: > Convert test to a main based; > Move test to an appropriate folder; > Remove old files; Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Got rid of the test window, using OassFailJFrame instead; Made all variables local; Minor changes based on review comments; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18360/files - new: https://git.openjdk.org/jdk/pull/18360/files/3e84d47a..4a000aee Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18360&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18360&range=01-02 Stats: 26 lines in 1 file changed: 1 ins; 17 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18360.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18360/head:pull/18360 PR: https://git.openjdk.org/jdk/pull/18360 From kizune at openjdk.org Fri Mar 22 05:15:38 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 05:15:38 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v2] In-Reply-To: References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> <_ytFO979o9K4RS7fFO_JTQKBda1f-S-at-TBIiWeLhs=.f9467d54-2198-4f3d-a3bc-c90e3a36c2e4@github.com> Message-ID: On Thu, 21 Mar 2024 20:22:18 GMT, Alexander Zvegintsev wrote: >> test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 59: >> >>> 57: frame.add(textScrollPane, BorderLayout.CENTER); >>> 58: >>> 59: fd = new FileDialog(new Frame(), "Open"); >> >> is there any need to mix Swing and AWT components in the test? I guess you can use the JFrame already created > > Actually you don't need the textOutput, with recent changes you can add `.logArea()` to the PassFailJFrame builder > > https://github.com/openjdk/jdk/blob/master/test/jdk/java/awt/regtesthelpers/PassFailJFrame.java#L1200 > > and just use `PassFailJFrame.log()` wherever you need it. > > So this method can be changed to return the a `JButton`, and use it with `splitUIBottom`/`splitUIRight` instead of testUI Ok, using the PassFailJFrame logger. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1535060230 From kizune at openjdk.org Fri Mar 22 05:15:38 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 05:15:38 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v2] In-Reply-To: References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> <_ytFO979o9K4RS7fFO_JTQKBda1f-S-at-TBIiWeLhs=.f9467d54-2198-4f3d-a3bc-c90e3a36c2e4@github.com> Message-ID: On Thu, 21 Mar 2024 16:16:55 GMT, Prasanta Sadhukhan wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Adding library and build clauses > > test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 60: > >> 58: >> 59: fd = new FileDialog(new Frame(), "Open"); >> 60: fd.setDirectory(APPLICATIONS_FOLDER); > > guess APPLICATION_FOLDER can be made local With Alexander's suggestion all variables could be made local. Fixing that. > test/jdk/java/awt/FileDialog/FileDialogForPackages.java line 91: > >> 89: .rows((int) instructions.lines().count() + 1) >> 90: .columns(40) >> 91: .testUI(FileDialogForPackages::initialize) > > It seems the filedialog is obscuring the instruction and test window...I guess it will be good if you can use > position(PassFailJFrame.Position.TOP_LEFT_CORNER) Unfortunately i can not reposition the test instructions dialog and i got rid of the test window so newly created filedialog will block the instructions. Not sure i can find a reliable way to avoid that. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1535059877 PR Review Comment: https://git.openjdk.org/jdk/pull/18360#discussion_r1535061055 From psadhukhan at openjdk.org Fri Mar 22 06:18:22 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 22 Mar 2024 06:18:22 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v3] In-Reply-To: References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> Message-ID: On Fri, 22 Mar 2024 05:15:38 GMT, Alexander Zuev wrote: >> Convert test to a main based; >> Move test to an appropriate folder; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Got rid of the test window, using OassFailJFrame instead; > Made all variables local; > Minor changes based on review comments; Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18360#pullrequestreview-1954019349 From psadhukhan at openjdk.org Fri Mar 22 07:16:22 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 22 Mar 2024 07:16:22 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> On Thu, 21 Mar 2024 23:35:58 GMT, Alexander Zuev wrote: > Clean up and opensource five tests. test/jdk/javax/swing/InputVerifier/bug4774166.java line 44: > 42: * @summary InputVerifier should be called after a window loses and then regains focus > 43: * @library /javax/swing/regtesthelpers > 44: * @build JRobot I guess JRobot library dependancy is not needed unnecessarliy, could be achieved by normal Robot in this test.. test/jdk/javax/swing/JButton/4385611/bug4385611.java line 42: > 40: public class bug4385611 { > 41: static JButton bt1, bt2; > 42: static final ImageIcon icon32x32 = new ImageIcon(bug4385611.class.getResource("red.gif")); did you verify if we are allowed to keep this red.gif in open source as per the image license? Can we not create the Imageicon from a yellow32x32 bufferedimage? test/jdk/javax/swing/plaf/motif/bug4150591.java line 40: > 38: public class bug4150591 { > 39: public static void main(String[] args) { > 40: MotifInternalFrameTitlePane mtp = new MotifInternalFrameTitlePane(new JInternalFrame()); Is this test required to be added now with motif being deprecated? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1535128580 PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1535132200 PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1535140010 From tr at openjdk.org Fri Mar 22 08:44:23 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 08:44:23 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:36:40 GMT, Abhishek Kumar wrote: >> Few manual closed applet test converted to automated and open sourced. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Remove getContentPane usage test/jdk/javax/swing/JInternalFrame/Ctrli.java line 75: > 73: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); > 74: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); > 75: robot.waitForIdle(); Only `robot.waitForIdle();` is sufficient ? Delay isn't required? test/jdk/javax/swing/JInternalFrame/Ctrli.java line 86: > 84: if (!iPressed) { > 85: throw new RuntimeException("Test failed: CTRL+I not pressed."); > 86: } Console print mentioning "Test Passed" would bring some clarity about the test status I guess. test/jdk/javax/swing/JInternalFrame/Ctrli.java line 129: > 127: frame.setSize(200, 200); > 128: frame.setLocationRelativeTo(null); > 129: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); `frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);` is not required I guess. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535143315 PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535145084 PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535145669 From dnguyen at openjdk.org Fri Mar 22 08:48:35 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 08:48:35 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 01:23:40 GMT, Harshitha Onkar wrote: > @DamonGuy Tested on macOS, JColorChooser DnD doesn't seem to work on it. Same for me. Looks like it's not an issue with the test and rather a bug that hasn't been fixed yet. I found [JDK-8065647](https://bugs.openjdk.org/browse/JDK-8065647) which I think is related to this. Seems to be filed after the bugID for THIS test was resolved. > test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 37: > >> 35: >> 36: public static void main(String[] args) { >> 37: SwingUtilities.invokeLater(() -> { > > Copyright year needs to be updated for this file Updated. Thanks. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18436#issuecomment-2014625683 PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1535240116 From dnguyen at openjdk.org Fri Mar 22 08:48:35 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 08:48:35 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: > Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Update copyright year ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18436/files - new: https://git.openjdk.org/jdk/pull/18436/files/a4ab31de..15c55986 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18436&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18436&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18436.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18436/head:pull/18436 PR: https://git.openjdk.org/jdk/pull/18436 From abhiscxk at openjdk.org Fri Mar 22 09:00:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 09:00:24 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 07:17:00 GMT, Tejesh R wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> Remove getContentPane usage > > test/jdk/javax/swing/JInternalFrame/Ctrli.java line 75: > >> 73: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); >> 74: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); >> 75: robot.waitForIdle(); > > Only `robot.waitForIdle();` is sufficient ? Delay isn't required? No. > test/jdk/javax/swing/JInternalFrame/Ctrli.java line 86: > >> 84: if (!iPressed) { >> 85: throw new RuntimeException("Test failed: CTRL+I not pressed."); >> 86: } > > Console print mentioning "Test Passed" would bring some clarity about the test status I guess. Don't think so. Test is all about CTRL+I pressed, if it fails that means event is not triggered. > test/jdk/javax/swing/JInternalFrame/Ctrli.java line 129: > >> 127: frame.setSize(200, 200); >> 128: frame.setLocationRelativeTo(null); >> 129: frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > > `frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);` is not required I guess. Since it is an automatic test, I guess it is required. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535251059 PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535252345 PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535253676 From abhiscxk at openjdk.org Fri Mar 22 09:01:38 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 09:01:38 GMT Subject: RFR: 8328484: Convert and Opensource few JFileChooser applet test to main Message-ID: Few closed manual applet JFileChooser tests convereted to PassFailJFrame based manual test. ------------- Commit messages: - Applet test conerted to main manual and open sourced Changes: https://git.openjdk.org/jdk/pull/18447/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18447&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328484 Stats: 442 lines in 3 files changed: 442 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18447.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18447/head:pull/18447 PR: https://git.openjdk.org/jdk/pull/18447 From tr at openjdk.org Fri Mar 22 09:15:21 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 09:15:21 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:56:49 GMT, Abhishek Kumar wrote: >> test/jdk/javax/swing/JInternalFrame/Ctrli.java line 86: >> >>> 84: if (!iPressed) { >>> 85: throw new RuntimeException("Test failed: CTRL+I not pressed."); >>> 86: } >> >> Console print mentioning "Test Passed" would bring some clarity about the test status I guess. > > Don't think so. Test is all about CTRL+I pressed, if it fails that means event is not triggered. Not for failure case, I meant for Pass case. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535271317 From abhiscxk at openjdk.org Fri Mar 22 09:28:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 09:28:24 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: References: Message-ID: <6aokRH3GizRcfPlqUUNo53uPT7FSSMWS0Z-xIXUp09E=.5ef2fb37-5b47-423e-8c24-ac9de44d5a47@github.com> On Fri, 22 Mar 2024 09:12:27 GMT, Tejesh R wrote: >> Don't think so. Test is all about CTRL+I pressed, if it fails that means event is not triggered. > > Not for failure case, I meant for Pass case. Anyways, Test passed will be recorded in jtr file. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18428#discussion_r1535287245 From tr at openjdk.org Fri Mar 22 09:39:23 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 09:39:23 GMT Subject: RFR: 8328670: Automate and open source few closed manual applet test [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:36:40 GMT, Abhishek Kumar wrote: >> Few manual closed applet test converted to automated and open sourced. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > Remove getContentPane usage Looks fine for me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18428#pullrequestreview-1954354134 From abhiscxk at openjdk.org Fri Mar 22 09:48:28 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 09:48:28 GMT Subject: Integrated: 8328670: Automate and open source few closed manual applet test In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 10:46:41 GMT, Abhishek Kumar wrote: > Few manual closed applet test converted to automated and open sourced. This pull request has now been integrated. Changeset: 38e3cda4 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/38e3cda4420ef921cc6e43cb18338ec18c12011f Stats: 291 lines in 2 files changed: 291 ins; 0 del; 0 mod 8328670: Automate and open source few closed manual applet test Reviewed-by: psadhukhan, tr ------------- PR: https://git.openjdk.org/jdk/pull/18428 From tr at openjdk.org Fri Mar 22 09:52:58 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 09:52:58 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based Message-ID: Convert and open source these manual applet test to main based: java/awt/Frame/MegaIconTest/MegaIconTest.html java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html ------------- Commit messages: - Open source few Frame test Changes: https://git.openjdk.org/jdk/pull/18448/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328482 Stats: 501 lines in 7 files changed: 501 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18448.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18448/head:pull/18448 PR: https://git.openjdk.org/jdk/pull/18448 From psadhukhan at openjdk.org Fri Mar 22 10:00:30 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 22 Mar 2024 10:00:30 GMT Subject: RFR: 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only Message-ID: Test is now passing in mac..Several iterations of the test passed in CI system..link in JBS...deproblemlisted... ------------- Commit messages: - 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only Changes: https://git.openjdk.org/jdk/pull/18449/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18449&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8079786 Stats: 21 lines in 2 files changed: 18 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18449.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18449/head:pull/18449 PR: https://git.openjdk.org/jdk/pull/18449 From tr at openjdk.org Fri Mar 22 10:02:49 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 10:02:49 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v2] In-Reply-To: References: Message-ID: > Convert and open source these manual applet test to main based: > java/awt/Frame/MegaIconTest/MegaIconTest.html > java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html > java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html > java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Updated regtesthelpers path ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18448/files - new: https://git.openjdk.org/jdk/pull/18448/files/f2a21554..433086cb Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=00-01 Stats: 4 lines in 4 files changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18448.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18448/head:pull/18448 PR: https://git.openjdk.org/jdk/pull/18448 From psadhukhan at openjdk.org Fri Mar 22 10:08:21 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 22 Mar 2024 10:08:21 GMT Subject: RFR: 8328484: Convert and Opensource few JFileChooser applet test to main In-Reply-To: References: Message-ID: <0KBjwTucUSTG31qZyIKVuZnBg1DpQeWpaOym5IQ4qLc=.b721ca9e-8fbd-43f1-8e28-c8b3ca42fce8@github.com> On Fri, 22 Mar 2024 08:55:26 GMT, Abhishek Kumar wrote: > Few closed manual applet JFileChooser tests convereted to PassFailJFrame based manual test. Marked as reviewed by psadhukhan (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18447#pullrequestreview-1954414137 From abhiscxk at openjdk.org Fri Mar 22 10:22:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 10:22:24 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 10:02:49 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Updated regtesthelpers path test/jdk/java/awt/Frame/FrameMaximizedTest.java line 30: > 28: * @test > 29: * @bug 4106068 > 30: * @key headful `@key headful` is redundant since manual test needs someone to verify. You can remove here and in other tests as well. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1535356393 From psadhukhan at openjdk.org Fri Mar 22 10:28:28 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 22 Mar 2024 10:28:28 GMT Subject: Integrated: 8328673: Convert closed text/html/CSS manual applet test to main In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 09:04:19 GMT, Prasanta Sadhukhan wrote: > Couple closed manual applet text/html/CSS tests are converted to main based and opensourced This pull request has now been integrated. Changeset: cd534f81 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/cd534f8197341fbe3b3811f5be43c88090e16366 Stats: 161 lines in 2 files changed: 161 ins; 0 del; 0 mod 8328673: Convert closed text/html/CSS manual applet test to main Reviewed-by: abhiscxk, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18424 From abhiscxk at openjdk.org Fri Mar 22 10:47:23 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 10:47:23 GMT Subject: RFR: 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 09:55:46 GMT, Prasanta Sadhukhan wrote: > Test is now passing in mac..Several iterations of the test passed in CI system..link in JBS...deproblemlisted... test/jdk/java/awt/Frame/DisposeParentGC/DisposeParentGC.java line 1: > 1: /* Since these lines are unchanged, I couldn't add comments there. So, few suggestions: 1. @author tag can be removed. 2. You may fix spacing issues as well like TextArea textArea = new TextArea(5,5); Checkbox radioButton = new Checkbox("Hello" ,true, checkboxGroup); and other placess too. 3. Column limit exceeding. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18449#discussion_r1535388838 From jwaters at openjdk.org Fri Mar 22 10:51:46 2024 From: jwaters at openjdk.org (Julian Waters) Date: Fri, 22 Mar 2024 10:51:46 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v50] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Mon, 18 Mar 2024 15:55:15 GMT, Magnus Ihse Bursie wrote: >> Julian Waters has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 84 commits: >> >> - Merge branch 'openjdk:master' into patch-10 >> - awt_Window.cpp >> - awt_Frame.cpp >> - awt_Component.cpp >> - awt_Canvas.cpp >> - Merge branch 'openjdk:master' into patch-10 >> - Merge branch 'openjdk:master' into patch-10 >> - Fix awt_Window.cpp >> - Fix awt_PrintJob.cpp >> - -Zc:stringStrings no longer needed with -permissive- flags-cflags.m4 >> - ... and 74 more: https://git.openjdk.org/jdk/compare/a474b372...0f34608b > > bot-keep-alive > > @TheShermanTanker Did you understand the remaining changes that Phil has requested? Do you think you'll be able to fix this? @magicus Phil doesn't seem to be responding to my queries, I'm not too sure what to do at this point ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2014826062 From tr at openjdk.org Fri Mar 22 11:05:21 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 11:05:21 GMT Subject: RFR: 8328484: Convert and Opensource few JFileChooser applet test to main In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:55:26 GMT, Abhishek Kumar wrote: > Few closed manual applet JFileChooser tests convereted to PassFailJFrame based manual test. Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/18447#pullrequestreview-1954522722 From abhiscxk at openjdk.org Fri Mar 22 11:13:30 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 22 Mar 2024 11:13:30 GMT Subject: Integrated: 8328484: Convert and Opensource few JFileChooser applet test to main In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:55:26 GMT, Abhishek Kumar wrote: > Few closed manual applet JFileChooser tests convereted to PassFailJFrame based manual test. This pull request has now been integrated. Changeset: 528efe20 Author: Abhishek Kumar URL: https://git.openjdk.org/jdk/commit/528efe206d5ee3775b01f3b90600ca3cab6c96f0 Stats: 442 lines in 3 files changed: 442 ins; 0 del; 0 mod 8328484: Convert and Opensource few JFileChooser applet test to main Reviewed-by: psadhukhan, tr ------------- PR: https://git.openjdk.org/jdk/pull/18447 From tr at openjdk.org Fri Mar 22 11:17:23 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 11:17:23 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: On Thu, 21 Mar 2024 23:35:58 GMT, Alexander Zuev wrote: > Clean up and opensource five tests. test/jdk/javax/swing/InputVerifier/bug4774166.java line 144: > 142: public void performTest() throws InterruptedException, InvocationTargetException { > 143: robot.setAutoDelay(100); > 144: robot.delay(2000); After setting auto delay, I don't think delay is required here? test/jdk/javax/swing/InputVerifier/bug4774166.java line 165: > 163: robot.hitKey(KeyEvent.VK_M); > 164: robot.hitKey(KeyEvent.VK_N); > 165: robot.hitKey(KeyEvent.VK_O); WaitForIdle might be used in between a set of key events....... test/jdk/javax/swing/InputVerifier/bug4774166.java line 229: > 227: public void cleanupGUI() { > 228: if (testframe != null) { > 229: testframe.setVisible(false); `testframe.setVisible(false);` is required here? Any advantage for setting the visibility to false ? anyhow its been disposed..... ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1535257899 PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1535261674 PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1535249268 From tr at openjdk.org Fri Mar 22 11:28:21 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 22 Mar 2024 11:28:21 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:48:35 GMT, Damon Nguyen wrote: >> Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Update copyright year test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 47: > 45: frame.setContentPane(panel); > 46: frame.pack(); > 47: frame.setVisible(true); frame dispose is not required? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1535429569 From ihse at openjdk.org Fri Mar 22 12:31:46 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 22 Mar 2024 12:31:46 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> Message-ID: <6_80radA3v1Fq_kuf_4GZ74gfwc8hgMPOyBczHItlKc=.9a2463ef-c106-42c4-b0a8-12f94568ea96@github.com> On Wed, 20 Mar 2024 06:38:59 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request incrementally with two additional commits since the last revision: > > - Revert Formatting in awt_Component.cpp > - Revert Formatting in awt_Window.cpp src/java.desktop/windows/native/libawt/windows/awt_DnDDS.cpp line 44: > 42: #include > 43: > 44: // Don't want to pull in the redefined allocation functions Maybe this needs to be clarified a bit: Suggestion: // These files must be included before awt.h, since the latter redefines malloc // to Do_Not_Use_Malloc, etc, and that will break these files. Also, please mark conversations as resolved in the GitHub UI once you think they are addressed. That makes it much easier for reviewers to understand what parts of the reviews that have not been addressed. src/java.desktop/windows/native/libawt/windows/awt_DnDDT.cpp line 31: > 29: > 30: // Don't want to pull in the redefined allocation functions > 31: #include "awt_ole.h" Suggestion: // awt_ole.h must be included before awt.h, since the latter redefines malloc // to Do_Not_Use_Malloc, etc, and that will break awt_ole.h. #include "awt_ole.h" src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 544: > 542: and for all other dialogs AwtToolkit's HWND is used. > 543: */ > 544: else if (awtParent != NULL) { Suggestion: else if (awtParent != NULL) { src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 546: > 544: else if (awtParent != NULL) { > 545: setup.hwndOwner = AwtToolkit::GetInstance().GetHWnd(); > 546: } else { Suggestion: } else { src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 779: > 777: } > 778: > 779: Suggestion: src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 1230: > 1228: jdouble imgY = (jdouble) ((yPixelOrg * 72)/(jdouble) yPixelRes); > 1229: jdouble imgWid = (jdouble) ((imgPixelWid * 72)/(jdouble) xPixelRes); > 1230: jdouble imgHgt = (jdouble) ((imgPixelHgt * 72)/(jdouble) yPixelRes); Suggestion: jdouble imgX = (jdouble)((xPixelOrg * 72)/(jdouble)xPixelRes); jdouble imgY = (jdouble)((yPixelOrg * 72)/(jdouble)yPixelRes); jdouble imgWid = (jdouble)((imgPixelWid * 72)/(jdouble)xPixelRes); jdouble imgHgt = (jdouble)((imgPixelHgt * 72)/(jdouble)yPixelRes);``` src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 1316: > 1314: env->CallVoidMethod(newPaper, setImageableID, ix, iy, iw, ih); > 1315: > 1316: Suggestion: src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 3153: > 3151: } > 3152: > 3153: window = (AwtWindow *) pData; Suggestion: window = (AwtWindow *)pData; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535490288 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535491034 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535493157 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535493362 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535493818 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535494973 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535495291 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535496714 From ihse at openjdk.org Fri Mar 22 12:31:48 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 22 Mar 2024 12:31:48 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v46] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <5WJnl6Z9RyYzZrDStf9p74gus07Stz6S6NHwVpGQO3M=.0a04a120-77b5-48c3-9ae8-7d37c9646463@github.com> Message-ID: On Sat, 20 Jan 2024 00:32:19 GMT, Phil Race wrote: >> Julian Waters has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 79 commits: >> >> - Merge branch 'openjdk:master' into patch-10 >> - Merge branch 'openjdk:master' into patch-10 >> - Fix awt_Window.cpp >> - Fix awt_PrintJob.cpp >> - -Zc:stringStrings no longer needed with -permissive- flags-cflags.m4 >> - Fix awt_Window.cpp >> - awt_Window.cpp >> - awt_PrintJob.cpp >> - awt_Frame.cpp >> - Whitespace awt_Component.cpp >> - ... and 69 more: https://git.openjdk.org/jdk/compare/35e96627...cbfbaee6 > > src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp line 1365: > >> 1363: f = (AwtFrame *) pData; >> 1364: HWND hwnd = f->GetHWnd(); >> 1365: if (::IsWindow(hwnd)) { > > more formatting to revert Suggestion: if (::IsWindow(hwnd)) { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535491578 From ihse at openjdk.org Fri Mar 22 12:31:48 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 22 Mar 2024 12:31:48 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v2] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: <4tTHUFo358_lNx_ovlvlPYhQ9UU8N1Nw1dUSCLjJknE=.a8156c5d-bd97-42ca-99e1-f9f4badf0478@github.com> On Sun, 3 Dec 2023 15:37:47 GMT, Julian Waters wrote: >> src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp line 1641: >> >>> 1639: } >>> 1640: } >>> 1641: >> >> A possible improvement later (and for a future RFE) would be to use RAII for deletion and then get rid of the labels. awt is one of the few places that uses C++ for native code, so why not. > > Phil unfortunately rejected that approach, so we're on to a more manual way of deleting things here The comment seems answered. Please resolve this discussion. >> src/java.desktop/windows/native/libawt/windows/awt_TextComponent.cpp line 59: >> >>> 57: AwtTextComponent::OleCallback AwtTextComponent::sm_oleCallback; >>> 58: WNDPROC AwtTextComponent::sm_pDefWindowProc = NULL; >>> 59: >> >> Did the compiler complain here? I'm fine with the change, just wanted to know the reason. > > the latter two are inside an extern "C" block, meaning their initial C++ linkage (by virtue of them being static class members) conflicts with the now C linkage, also the comment there states the AwtComponent fields are supposed to be set here, and I have no idea why this was not done, so I moved them all to be under that comment The question seem answered. Please resolve the discussion. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535492864 PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535495754 From ihse at openjdk.org Fri Mar 22 12:31:48 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 22 Mar 2024 12:31:48 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v14] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: <28cne7OXCM06eTFCSpVUdzAltFk2jI79xqI-vJPsNhg=.a6aa7530-d119-4fcb-8f4d-049e9b9e6283@github.com> On Fri, 3 Nov 2023 02:39:26 GMT, Julian Waters wrote: >> src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 61: >> >>> 59: >>> 60: jfieldID AwtPrintDialog::pageID; >>> 61: >> >> where and why did this come from ? > > This came from below, all I did was move it up and out of the extern "C" block. This cannot be inside extern "C" because it is a static class member and has permanent C++ name mangling The question seems answered. Please resolve this discussion. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535492715 From aivanov at openjdk.org Fri Mar 22 12:35:28 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 12:35:28 GMT Subject: RFR: 8328301: Convert Applet test ManualHTMLDataFlavorTest.java to main program [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 17:56:14 GMT, Phil Race wrote: >> test/jdk/java/awt/datatransfer/HTMLDataFlavors/ManualHTMLDataFlavorTest.java line 110: >> >>> 108: } catch (UnsupportedFlavorException | IOException e) { >>> 109: e.printStackTrace(); >>> 110: } >> >> Should exception make the test fail? > > The author of the test didn't think so, this doesn't seem related to converting to a main program > so I don't want to touch it. I feel as if it were a common practice in the olden days? It's commonly seen in manual tests. It's worth questioning whether the test should fail if an exception occurs? Likely it should unless the exception *is* expected. Yeah, this adds up? However, coming back to it later will require even more time if it ever happens again especially if no issue to track it is submitted. Submitting an issue also requires time. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18334#discussion_r1535500404 From ihse at openjdk.org Fri Mar 22 12:35:48 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 22 Mar 2024 12:35:48 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v46] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <5WJnl6Z9RyYzZrDStf9p74gus07Stz6S6NHwVpGQO3M=.0a04a120-77b5-48c3-9ae8-7d37c9646463@github.com> Message-ID: On Sat, 20 Jan 2024 00:40:40 GMT, Phil Race wrote: >> Julian Waters has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 79 commits: >> >> - Merge branch 'openjdk:master' into patch-10 >> - Merge branch 'openjdk:master' into patch-10 >> - Fix awt_Window.cpp >> - Fix awt_PrintJob.cpp >> - -Zc:stringStrings no longer needed with -permissive- flags-cflags.m4 >> - Fix awt_Window.cpp >> - awt_Window.cpp >> - awt_PrintJob.cpp >> - awt_Frame.cpp >> - Whitespace awt_Component.cpp >> - ... and 69 more: https://git.openjdk.org/jdk/compare/35e96627...cbfbaee6 > > src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 3308: > >> 3306: return; >> 3307: } else { >> 3308: pData = JNI_GET_PDATA(self); > > set directly @TheShermanTanker What this means is that you need to replace the line: PDATA pData; above with: AwtWindow *window; and remove AwtWindow *window = (AwtWindow *)pData; below, and then change all references to `pData` in this block to `window`. The same changes needs to be done in all places where pData is references. This was a temporary variable that is no longer needed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1535500631 From ihse at openjdk.org Fri Mar 22 12:39:44 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Fri, 22 Mar 2024 12:39:44 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v50] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Fri, 22 Mar 2024 10:49:13 GMT, Julian Waters wrote: >> bot-keep-alive >> >> @TheShermanTanker Did you understand the remaining changes that Phil has requested? Do you think you'll be able to fix this? > > @magicus Phil doesn't seem to be responding to my queries, I'm not too sure what to do at this point @TheShermanTanker Phil is a busy man. I've helped you out (hopefully!) by being more concrete about what you need to fix, and reminded you on fixes that you seemed to have missed. Also, please use the functionality to resolve conversations, it really helps to see what remains to be fixed. (In OpenJDK, the Github project is configured so only the owner of a PR can resolve conversations.) Also, you can double check the PR yourself to see if you have introduced any changes in formatting that is not required by the change. Phil has made clear that he does not want any such changes in this PR, and you need to respect that. Finally, Phil has left a few comments more that I have not touched upon, so this is not all that needs to be fixed. (I left them out because I too had a hard time understanding exactly what he meant.) But if you start with these, it will be easier to see what remains. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2015000697 From azvegint at openjdk.org Fri Mar 22 12:40:23 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 22 Mar 2024 12:40:23 GMT Subject: RFR: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main [v3] In-Reply-To: References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> Message-ID: On Fri, 22 Mar 2024 05:15:38 GMT, Alexander Zuev wrote: >> Convert test to a main based; >> Move test to an appropriate folder; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Got rid of the test window, using OassFailJFrame instead; > Made all variables local; > Minor changes based on review comments; Marked as reviewed by azvegint (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18360#pullrequestreview-1954685310 From azvegint at openjdk.org Fri Mar 22 13:12:45 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 22 Mar 2024 13:12:45 GMT Subject: RFR: 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization [v3] In-Reply-To: References: Message-ID: > Two tests may fail intermittently on Wayland, the standard `waitForIdle` and `delay` fixes the issue. > > Manual and CI testing looks good. Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: Add @requires (os.family != "windows") to SwallowKeyEvents ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18431/files - new: https://git.openjdk.org/jdk/pull/18431/files/3c18826e..d8aa6b1d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18431&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18431&range=01-02 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18431.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18431/head:pull/18431 PR: https://git.openjdk.org/jdk/pull/18431 From azvegint at openjdk.org Fri Mar 22 13:16:26 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Fri, 22 Mar 2024 13:16:26 GMT Subject: Integrated: 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization In-Reply-To: References: Message-ID: <9GWVRE7I2PrpNeAQMMoL1bZQa9_zeKFbH54jgsqalyU=.1bc553b7-b463-48be-b699-b81ac564c959@github.com> On Thu, 21 Mar 2024 13:02:29 GMT, Alexander Zvegintsev wrote: > Two tests may fail intermittently on Wayland, the standard `waitForIdle` and `delay` fixes the issue. > > Manual and CI testing looks good. This pull request has now been integrated. Changeset: 638708ca Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/638708cad8228f62caf633015973403164675560 Stats: 58 lines in 2 files changed: 29 ins; 27 del; 2 mod 8328697: SubMenuShowTest and SwallowKeyEvents tests stabilization Reviewed-by: kizune ------------- PR: https://git.openjdk.org/jdk/pull/18431 From aivanov at openjdk.org Fri Mar 22 15:22:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 15:22:23 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v8] In-Reply-To: References: Message-ID: <1Db3FojRF05GPHaoTnNQVhE1x33SAuQ5hr1QNseTbU0=.8a53c004-04d4-472f-8672-eb5e7cc0851c@github.com> On Thu, 21 Mar 2024 19:53:48 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > changed the forcePass logic, updated instructions I somewhat dislike that the test completes too quickly when I use my mouse. Yes, you warn the tester the test is semi-automatic, yet I'd prefer giving the tester more time. Technically, one event with `e.getWheelRotation() != 0` is enough, that's right. It just doesn't feel right? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18312#issuecomment-2015329423 From aivanov at openjdk.org Fri Mar 22 15:35:25 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 15:35:25 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v8] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:53:48 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > changed the forcePass logic, updated instructions It looks good to me. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 52: > 50: > 51: This test is relevant on platforms with high-resolution mouse wheel, > 52: please press PASS if this is not the case.

It may be worth mentioning that trackpad will suit too. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 68: > 66: an event where wheelRotation != 0 in the logs.

> 67: > 68: Check if the test works OK when the mouse wheel is rotated very slow.

Suggestion: Check if the test works OK when the mouse wheel is rotated very slowly.

test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 69: > 67: > 68: Check if the test works OK when the mouse wheel is rotated very slow.

> 69: This is a semi-automated test, if you are using a hi-res mouse and I would move this paragraph above. At this moment, it's more important to say that the test will pass automatically than that the tester needs to look through the log of events. So, the sentence above could be removed altogether. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 74: > 72: > 73:
> 74: PLEASE NOTE: Suggestion: Note: You have formatting options, bold text will stand out and it's usually easier to read than uppercase text. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 84: > 82: and they are negative when scrolled down. > 83: > 84:
Suggestion: May be removed. test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 118: > 116: PassFailJFrame.log(WARNING_MSG); > 117: JOptionPane.showMessageDialog(frame, WARNING_MSG, > 118: "WARNING", WARNING_MESSAGE); Suggestion: "WARNING", JOptionPane.WARNING_MESSAGE); I suggest using `JOptionPane.WARNING_MESSAGE` explicitly: there's no confusion between `WARNING_MSG` and `WARNING_MESSAGE` then. I'd use ?Warning? in its title case as opposed to uppercase, taking into account the message itself contains upper case warning. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18312#pullrequestreview-1955102847 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535779263 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535766207 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535769619 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535770843 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535773725 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535777940 From kizune at openjdk.org Fri Mar 22 15:43:42 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 15:43:42 GMT Subject: RFR: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main [v5] In-Reply-To: References: Message-ID: > Convert test to main manual; > Move test to appropriate folder; > Delete old files; Alexander Zuev has updated the pull request incrementally with two additional commits since the last revision: - Moving toolkit checkto the beginning of the main method. - Update test/jdk/java/awt/FileDialog/FileDialogOpenDirTest.java Co-authored-by: Aleksandr Zvegintsev <77687766+azvegint at users.noreply.github.com> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18361/files - new: https://git.openjdk.org/jdk/pull/18361/files/6dd4e7f9..849ae794 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18361&range=03-04 Stats: 11 lines in 1 file changed: 5 ins; 5 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18361.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18361/head:pull/18361 PR: https://git.openjdk.org/jdk/pull/18361 From kizune at openjdk.org Fri Mar 22 15:43:43 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 15:43:43 GMT Subject: Integrated: 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:45:03 GMT, Alexander Zuev wrote: > Convert test to main manual; > Move test to appropriate folder; > Delete old files; This pull request has now been integrated. Changeset: 739957ca Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/739957ca1e3b9ac9131a68990178e92691744157 Stats: 361 lines in 3 files changed: 79 ins; 282 del; 0 mod 8328384: Convert java/awt/FileDialog/FileDialogOpenDirTest test to main Reviewed-by: azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18361 From aivanov at openjdk.org Fri Mar 22 15:44:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 15:44:22 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race wrote: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). Looks good to me. I agree with @honkar-jdk, the test passes on macOS 14.3.1 for me. The original test couldn't click the button, now that the mouse cursor is position at the centre of the button, robot clicks it and the test passes. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18439#pullrequestreview-1955147526 From achung at openjdk.org Fri Mar 22 15:44:35 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 22 Mar 2024 15:44:35 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 Message-ID: Removing applet usage from manual JFileChooser tests The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame ------------- Commit messages: - init commit Changes: https://git.openjdk.org/jdk/pull/18456/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18456&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328819 Stats: 70 lines in 2 files changed: 22 ins; 39 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/18456.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18456/head:pull/18456 PR: https://git.openjdk.org/jdk/pull/18456 From aivanov at openjdk.org Fri Mar 22 15:50:28 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 15:50:28 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race wrote: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). test/jdk/java/awt/Dialog/JaWSTest.java line 69: > 67: buttonLocation.y + button.getHeight()/2); > 68: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); > 69: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); I guess the click with Robot can be replaced with a programmatic click (wrapped into `invokeLater`). Yet `awt.Button` does not have a way to simulate a click, `JButton` has `doClick()` method. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18439#discussion_r1535801245 From aivanov at openjdk.org Fri Mar 22 15:53:26 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 15:53:26 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race wrote: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). test/jdk/java/awt/Dialog/JaWSTest.java line 70: > 68: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); > 69: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); > 70: if (!worker.dialogFinished.await(5, TimeUnit.SECONDS)) { Suggestion: if (!dialogFinished.await(5, TimeUnit.SECONDS)) { Since `dialogFinished` is static, it can be accessed directly, without the `worker` object. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18439#discussion_r1535805618 From kizune at openjdk.org Fri Mar 22 15:55:29 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 15:55:29 GMT Subject: Integrated: 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main In-Reply-To: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> References: <9gStC1mcEgWDsQsLiOUD0PHZ1mgIEgaM3f_EAQokmv0=.7f9ce16a-2180-4dea-96af-bcbcf955eec7@github.com> Message-ID: On Mon, 18 Mar 2024 20:36:53 GMT, Alexander Zuev wrote: > Convert test to a main based; > Move test to an appropriate folder; > Remove old files; This pull request has now been integrated. Changeset: b7a51dd0 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/b7a51dd0e8d56a9673b2c802d69019c23d43cb76 Stats: 210 lines in 3 files changed: 79 ins; 131 del; 0 mod 8328382: Convert java/awt/FileDialog/FileDialogForPackages test to main Reviewed-by: psadhukhan, azvegint ------------- PR: https://git.openjdk.org/jdk/pull/18360 From psadhukhan at openjdk.org Fri Mar 22 16:07:36 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 22 Mar 2024 16:07:36 GMT Subject: RFR: 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only [v2] In-Reply-To: References: Message-ID: > Test is now passing in mac..Several iterations of the test passed in CI system..link in JBS...deproblemlisted... Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18449/files - new: https://git.openjdk.org/jdk/pull/18449/files/565915f4..429fded4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18449&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18449&range=00-01 Stats: 13 lines in 1 file changed: 4 ins; 1 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18449.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18449/head:pull/18449 PR: https://git.openjdk.org/jdk/pull/18449 From honkar at openjdk.org Fri Mar 22 16:54:49 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 16:54:49 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v9] In-Reply-To: References: Message-ID: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: Instructions updated ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18312/files - new: https://git.openjdk.org/jdk/pull/18312/files/ec673142..701e90a8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=08 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18312&range=07-08 Stats: 23 lines in 1 file changed: 7 ins; 8 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18312.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18312/head:pull/18312 PR: https://git.openjdk.org/jdk/pull/18312 From honkar at openjdk.org Fri Mar 22 16:54:49 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 16:54:49 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v8] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 15:31:48 GMT, Alexey Ivanov wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> changed the forcePass logic, updated instructions > > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 52: > >> 50: >> 51: This test is relevant on platforms with high-resolution mouse wheel, >> 52: please press PASS if this is not the case.

> > It may be worth mentioning that trackpad will suit too. Updated. > test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 69: > >> 67: >> 68: Check if the test works OK when the mouse wheel is rotated very slow.

>> 69: This is a semi-automated test, if you are using a hi-res mouse and > > I would move this paragraph above. At this moment, it's more important to say that the test will pass automatically than that the tester needs to look through the log of events. So, the sentence above could be removed altogether. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535891353 PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1535890462 From prr at openjdk.org Fri Mar 22 17:20:41 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 22 Mar 2024 17:20:41 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java [v2] In-Reply-To: References: Message-ID: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). Phil Race has updated the pull request incrementally with one additional commit since the last revision: 8328555 ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18439/files - new: https://git.openjdk.org/jdk/pull/18439/files/5aaef6f8..434ea601 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18439&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18439&range=00-01 Stats: 3 lines in 2 files changed: 0 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18439.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18439/head:pull/18439 PR: https://git.openjdk.org/jdk/pull/18439 From aivanov at openjdk.org Fri Mar 22 17:20:41 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 17:20:41 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 17:17:17 GMT, Phil Race wrote: >> This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. >> It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). > > Phil Race has updated the pull request incrementally with one additional commit since the last revision: > > 8328555 Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18439#pullrequestreview-1955350029 From prr at openjdk.org Fri Mar 22 17:20:41 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 22 Mar 2024 17:20:41 GMT Subject: RFR: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java In-Reply-To: References: Message-ID: <279nUhbGQdQ5mohXuZdDPSluJws8b9PvIsgFJkhA_VU=.a448555c-0462-4305-9794-5d926e99e3ac@github.com> On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race wrote: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). OK, I've removed the problem listing. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18439#issuecomment-2015543141 From prr at openjdk.org Fri Mar 22 17:20:42 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 22 Mar 2024 17:20:42 GMT Subject: Integrated: 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 19:10:40 GMT, Phil Race wrote: > This previously closed test is cleaned up, opened and fixed to work on hidpi at fractional scales. > It has unrelated problems on macOS 14 and is problem listed there (as it was when it was a closed test). This pull request has now been integrated. Changeset: 23ebd9c3 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/23ebd9c3c69d09e6afe672d00b43da2ccc493480 Stats: 148 lines in 1 file changed: 148 ins; 0 del; 0 mod 8328555: hidpi problems for test java/awt/Dialog/DialogAnotherThread/JaWSTest.java Reviewed-by: aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18439 From dnguyen at openjdk.org Fri Mar 22 17:24:30 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 17:24:30 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main Message-ID: Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame ------------- Commit messages: - Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18458/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18458&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328730 Stats: 217 lines in 2 files changed: 32 ins; 152 del; 33 mod Patch: https://git.openjdk.org/jdk/pull/18458.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18458/head:pull/18458 PR: https://git.openjdk.org/jdk/pull/18458 From aivanov at openjdk.org Fri Mar 22 17:28:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 17:28:23 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v9] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 16:54:49 GMT, Harshitha Onkar wrote: >> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. >> >> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > Instructions updated Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18312#pullrequestreview-1955372505 From dnguyen at openjdk.org Fri Mar 22 17:30:22 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 17:30:22 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 11:25:10 GMT, Tejesh R
wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Update copyright year > > test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 47: > >> 45: frame.setContentPane(panel); >> 46: frame.pack(); >> 47: frame.setVisible(true); > > frame dispose is not required? This is a manual test. If I add dispose, it would close the application on startup. The `JFrame.EXIT_ON_CLOSE` call should handle this I believe. There's `DISPOSE_ON_CLOSE`, but I don't think this is right here. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1535947253 From aivanov at openjdk.org Fri Mar 22 17:35:26 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 17:35:26 GMT Subject: RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v8] In-Reply-To: <1Db3FojRF05GPHaoTnNQVhE1x33SAuQ5hr1QNseTbU0=.8a53c004-04d4-472f-8672-eb5e7cc0851c@github.com> References: <1Db3FojRF05GPHaoTnNQVhE1x33SAuQ5hr1QNseTbU0=.8a53c004-04d4-472f-8672-eb5e7cc0851c@github.com> Message-ID: <24ZDsfq6idpRqGctxjbVTBEAXMsnvgChdMyyledWl88=.4a5315c4-7a57-4005-8146-5d8eaaed1d58@github.com> On Fri, 22 Mar 2024 15:20:02 GMT, Alexey Ivanov wrote: > I somewhat dislike that the test completes too quickly when I use my mouse. Yes, you warn the tester the test is semi-automatic, yet I'd prefer giving the tester more time. > > Technically, one event with `e.getWheelRotation() != 0` is enough, that's right. It just doesn't feel right? I run the test it with trackpad on my Windows laptop. Indeed, waiting for `e.getWheelRotation() != 0` takes too long if `e.getPreciseWheelRotation()` is very small, it is 0.01 on Harshitha's laptop and on mine too. When the value of `e.getPreciseWheelRotation() > 0.10`, it feels the test completes too fast. We can change the sensitivity of the test. Is it worth the effort? Perhaps, it isn't. Does anyone else have any comments? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18312#issuecomment-2015570497 From honkar at openjdk.org Fri Mar 22 17:35:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 17:35:28 GMT Subject: Integrated: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main In-Reply-To: References: Message-ID: <8462vuz1gqNqXmSYBKPpV-FE69Z0_gEvuyw9kpeFxgY=.b5e70ddd-09b2-418b-8e94-e0edbabe3e6f@github.com> On Thu, 14 Mar 2024 19:50:18 GMT, Harshitha Onkar wrote: > This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows. > > The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319 This pull request has now been integrated. Changeset: c7bbf849 Author: Harshitha Onkar URL: https://git.openjdk.org/jdk/commit/c7bbf849290b39b8e89290234d70d8333df24710 Stats: 425 lines in 3 files changed: 131 ins; 294 del; 0 mod 8328190: Convert AWTPanelSmoothWheel.html applet test to main Reviewed-by: azvegint, abhiscxk, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18312 From dnguyen at openjdk.org Fri Mar 22 17:38:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 17:38:36 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v2] In-Reply-To: References: Message-ID: > Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Move test out of extra dir ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18458/files - new: https://git.openjdk.org/jdk/pull/18458/files/26320f83..72fe9b13 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18458&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18458&range=00-01 Stats: 0 lines in 1 file changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18458.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18458/head:pull/18458 PR: https://git.openjdk.org/jdk/pull/18458 From honkar at openjdk.org Fri Mar 22 17:42:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 17:42:22 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:45:15 GMT, Damon Nguyen wrote: > Same for me. Looks like it's not an issue with the test and rather a bug that hasn't been fixed yet. I found [JDK-8065647](https://bugs.openjdk.org/browse/JDK-8065647) which I think is related to this. Seems to be filed after the bugID for THIS test was resolved. I missed that it is already problemlisted on macOS. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18436#issuecomment-2015585738 From honkar at openjdk.org Fri Mar 22 17:47:27 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 17:47:27 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:48:35 GMT, Damon Nguyen wrote: >> Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Update copyright year LGTM ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18436#pullrequestreview-1955412463 From honkar at openjdk.org Fri Mar 22 17:47:28 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 17:47:28 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: <99yeOl8-cMWUnCd3AmcruBqHTYGmkpEh7uyz-_mgsn4=.94da11b4-bd27-43d2-9867-1a18f3bfc5bd@github.com> On Fri, 22 Mar 2024 17:28:10 GMT, Damon Nguyen wrote: >> test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 47: >> >>> 45: frame.setContentPane(panel); >>> 46: frame.pack(); >>> 47: frame.setVisible(true); >> >> frame dispose is not required? > > This is a manual test. If I add dispose, it would close the application on startup. The `JFrame.EXIT_ON_CLOSE` call should handle this I believe. There's `DISPOSE_ON_CLOSE`, but I don't think this is right here. I agree, `JFrame.EXIT_ON_CLOSE` should be sufficient in this case. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1535968998 From dnguyen at openjdk.org Fri Mar 22 18:11:33 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 18:11:33 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main Message-ID: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame ------------- Commit messages: - 8328827 Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18461/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328827 Stats: 400 lines in 3 files changed: 95 ins; 305 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18461.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18461/head:pull/18461 PR: https://git.openjdk.org/jdk/pull/18461 From dnguyen at openjdk.org Fri Mar 22 18:59:30 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 18:59:30 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main Message-ID: Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. ------------- Commit messages: - 8328719 Initial test conversion Changes: https://git.openjdk.org/jdk/pull/18462/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18462&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328719 Stats: 133 lines in 2 files changed: 52 ins; 68 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/18462.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18462/head:pull/18462 PR: https://git.openjdk.org/jdk/pull/18462 From achung at openjdk.org Fri Mar 22 20:04:23 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 22 Mar 2024 20:04:23 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v4] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 16:11:44 GMT, Damon Nguyen wrote: >> Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Fix main/manual Changes requested by achung (Committer). test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 43: > 41: > 42: import javax.swing.JButton; > 43: i think the order should be imports then jtreg tags ------------- PR Review: https://git.openjdk.org/jdk/pull/18362#pullrequestreview-1955695843 PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1536136404 From achung at openjdk.org Fri Mar 22 20:06:23 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 22 Mar 2024 20:06:23 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:48:35 GMT, Damon Nguyen wrote: >> Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Update copyright year Changes requested by achung (Committer). test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 34: > 32: * between two JVM instances > 33: */ > 34: public class JColorChooserDnDTest { Missing @test and @run tags? ------------- PR Review: https://git.openjdk.org/jdk/pull/18436#pullrequestreview-1955698065 PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1536138393 From dnguyen at openjdk.org Fri Mar 22 20:11:22 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 20:11:22 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 20:03:17 GMT, Alisen Chung wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Update copyright year > > test/jdk/javax/swing/JColorChooser/8065098/JColorChooserDnDTest.java line 34: > >> 32: * between two JVM instances >> 33: */ >> 34: public class JColorChooserDnDTest { > > Missing @test and @run tags? This part of the test doesn't run on jtreg so I don't think this is applicable. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18436#discussion_r1536145596 From duke at openjdk.org Fri Mar 22 20:50:52 2024 From: duke at openjdk.org (Larry Cable) Date: Fri, 22 Mar 2024 20:50:52 GMT Subject: RFR: 8321428: Depreciate java.beans.beancontext.* Message-ID: <5CF4Y37gyrFEcymJvgj50A4L25_fDlH2N8-cTBhVF2M=.cc55299c-b3e2-436e-b380-6a6d74e84c70@github.com> [https://bugs.openjdk.org/browse/JDK-8321428](url) ------------- Commit messages: - 83020930: added @Deprecated and @SuppressWarnings to depreciate java.beans.beancontext Changes: https://git.openjdk.org/jdk/pull/18413/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18413&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8321428 Stats: 48 lines in 20 files changed: 45 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18413.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18413/head:pull/18413 PR: https://git.openjdk.org/jdk/pull/18413 From prr at openjdk.org Fri Mar 22 20:59:21 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 22 Mar 2024 20:59:21 GMT Subject: RFR: 8321428: Depreciate java.beans.beancontext.* In-Reply-To: <5CF4Y37gyrFEcymJvgj50A4L25_fDlH2N8-cTBhVF2M=.cc55299c-b3e2-436e-b380-6a6d74e84c70@github.com> References: <5CF4Y37gyrFEcymJvgj50A4L25_fDlH2N8-cTBhVF2M=.cc55299c-b3e2-436e-b380-6a6d74e84c70@github.com> Message-ID: On Wed, 20 Mar 2024 21:30:53 GMT, Larry Cable wrote: > [https://bugs.openjdk.org/browse/JDK-8321428](url) looks good except for (1) that blank line (2) skara would like you to rename the PR to match the bug + approved CSR. src/java.desktop/share/classes/java/beans/beancontext/package-info.java line 36: > 34: * @since 1.2 > 35: */ > 36: ?? Were you intending to add something here ? If not revert the blank line. ------------- PR Review: https://git.openjdk.org/jdk/pull/18413#pullrequestreview-1955787213 PR Review Comment: https://git.openjdk.org/jdk/pull/18413#discussion_r1536214806 From honkar at openjdk.org Fri Mar 22 21:02:21 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 21:02:21 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 15:40:39 GMT, Alisen Chung wrote: > The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame @alisenchung The original test works on Windows. Is it on macOS that nothing is shown ? ------------- PR Review: https://git.openjdk.org/jdk/pull/18456#pullrequestreview-1955792449 From serb at openjdk.org Fri Mar 22 21:06:32 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Fri, 22 Mar 2024 21:06:32 GMT Subject: Integrated: 8328194: Add a test to check default rendering engine In-Reply-To: References: Message-ID: <5TbGkya8-89XW6ME1cqe591S4c04diCnBTZm-5HtvtQ=.e7a05a4c-123d-4d94-93af-62e615b1e2fd@github.com> On Thu, 14 Mar 2024 20:13:58 GMT, Sergey Bylokhov wrote: > This is a request to forward port the test added by the [JDK-8241307](https://bugs.openjdk.org/browse/JDK-8241307) with inverted condition - jdk jdk11 the marlin should be used by default. This pull request has now been integrated. Changeset: c013fa18 Author: Sergey Bylokhov URL: https://git.openjdk.org/jdk/commit/c013fa18119bbd2e355d5c0d13cd8c172892800a Stats: 42 lines in 1 file changed: 42 ins; 0 del; 0 mod 8328194: Add a test to check default rendering engine Reviewed-by: prr, tr ------------- PR: https://git.openjdk.org/jdk/pull/18313 From serb at openjdk.org Fri Mar 22 21:07:29 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Fri, 22 Mar 2024 21:07:29 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 17:03:25 GMT, Alexey Ivanov wrote: >Instantiating JFileChooser on EDT adds complexity for no benefit. The JFileChooser is still accessed concurrently from several threads, including Swing internal thread. But still, this is a common requirement to create UI components on EDT, and that will replicate more or less how it will work in the application. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1536222501 From honkar at openjdk.org Fri Mar 22 21:36:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 21:36:26 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 15:40:39 GMT, Alisen Chung wrote: > Removing applet usage from manual JFileChooser tests > The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame Ideally the Instruction window and Test window appear side-by-side. In this case, the JFileChooser completely covers the Instruction window even when set using .testUI(). Not sure why the window manager doesn't honor the position set by PassFailJFrame, for now you can increase the number rows to increase the size of instruction window, so that the user running the manual test is aware that there are 2 windows. ------------- PR Review: https://git.openjdk.org/jdk/pull/18456#pullrequestreview-1955833818 From kizune at openjdk.org Fri Mar 22 21:39:22 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 21:39:22 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> Message-ID: On Fri, 22 Mar 2024 06:57:12 GMT, Prasanta Sadhukhan wrote: >> Clean up and opensource five tests. > > test/jdk/javax/swing/InputVerifier/bug4774166.java line 44: > >> 42: * @summary InputVerifier should be called after a window loses and then regains focus >> 43: * @library /javax/swing/regtesthelpers >> 44: * @build JRobot > > I guess JRobot library dependancy is not needed unnecessarliy, could be achieved by normal Robot in this test.. Down below i am using JRobot API such as hitKey and clickMouseOn so i have to use JRobot or code will be much larger. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536247341 From kizune at openjdk.org Fri Mar 22 21:45:32 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 21:45:32 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: On Fri, 22 Mar 2024 09:04:28 GMT, Tejesh R wrote: >> Clean up and opensource five tests. > > test/jdk/javax/swing/InputVerifier/bug4774166.java line 165: > >> 163: robot.hitKey(KeyEvent.VK_M); >> 164: robot.hitKey(KeyEvent.VK_N); >> 165: robot.hitKey(KeyEvent.VK_O); > > WaitForIdle might be used in between a set of key events....... There is a delay happening inside the JRobot method and the idea is to generate events as they are coming from the system - without waiting for the event queue to catch up. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536251004 From kizune at openjdk.org Fri Mar 22 21:45:33 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 21:45:33 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> Message-ID: On Fri, 22 Mar 2024 07:02:05 GMT, Prasanta Sadhukhan wrote: >> Clean up and opensource five tests. > > test/jdk/javax/swing/JButton/4385611/bug4385611.java line 42: > >> 40: public class bug4385611 { >> 41: static JButton bt1, bt2; >> 42: static final ImageIcon icon32x32 = new ImageIcon(bug4385611.class.getResource("red.gif")); > > did you verify if we are allowed to keep this red.gif in open source as per the image license? Can we not create the Imageicon from a yellow32x32 bufferedimage? It is just a gif file filled with yellow color created specifically for that test. It was not provided by the test submitter or anything like that - it was just created in the graphics editor. There's no copyright issue with it. > test/jdk/javax/swing/plaf/motif/bug4150591.java line 40: > >> 38: public class bug4150591 { >> 39: public static void main(String[] args) { >> 40: MotifInternalFrameTitlePane mtp = new MotifInternalFrameTitlePane(new JInternalFrame()); > > Is this test required to be added now with motif being deprecated? It is deprecated but still exist. When we will decide to remove it (if we do at some point) the test will be easily to delete since it is in the PLaF specific test directory. I see no harm in keeping it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536249258 PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536250007 From kizune at openjdk.org Fri Mar 22 21:48:33 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Fri, 22 Mar 2024 21:48:33 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: On Fri, 22 Mar 2024 09:01:01 GMT, Tejesh R wrote: >> Clean up and opensource five tests. > > test/jdk/javax/swing/InputVerifier/bug4774166.java line 144: > >> 142: public void performTest() throws InterruptedException, InvocationTargetException { >> 143: robot.setAutoDelay(100); >> 144: robot.delay(2000); > > After setting auto delay, I don't think delay is required here? Just letting system some time to display and position all the windows before starting the actual test. I think there were problems with it on the slower systems. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536253617 From aivanov at openjdk.org Fri Mar 22 21:48:33 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 22 Mar 2024 21:48:33 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: <6d2hOVnBZtRQHhxPoA6sHpdeIvH32SwJ0HZavVCP33E=.c6d37335-0420-467b-83aa-129abd47fd87@github.com> On Fri, 22 Mar 2024 21:05:09 GMT, Sergey Bylokhov wrote: > > Instantiating JFileChooser on EDT adds complexity for no benefit. The JFileChooser is still accessed concurrently from several threads, including Swing internal thread. > > But still, this is a common requirement to create UI components on EDT, and that will replicate more or less how it will work in the application. And it is a common requirement ***not** to call `fileChooser.rescanCurrentDirectory` concurrently* in 5 different threads. So it does not apply. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1536253490 From dnguyen at openjdk.org Fri Mar 22 22:15:48 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 22:15:48 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v5] In-Reply-To: References: Message-ID: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Move tags ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18362/files - new: https://git.openjdk.org/jdk/pull/18362/files/38eb00eb..6cc7fab8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=03-04 Stats: 20 lines in 1 file changed: 10 ins; 10 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18362.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18362/head:pull/18362 PR: https://git.openjdk.org/jdk/pull/18362 From honkar at openjdk.org Fri Mar 22 22:29:41 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 22 Mar 2024 22:29:41 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v5] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 22:15:48 GMT, Damon Nguyen wrote: >> Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Move tags Updated changes look good. Updated Test Instructions clearer now. test/jdk/java/awt/print/Dialog/PrintModalDialog.java line 67: > 65: .title("PrintModalDialog Instructions") > 66: .instructions(INSTRUCTIONS) > 67: .rows(20) Suggestion: .rows((int) INSTRUCTIONS.lines().count() + 1) ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18362#pullrequestreview-1955882723 PR Review Comment: https://git.openjdk.org/jdk/pull/18362#discussion_r1536278274 From dnguyen at openjdk.org Fri Mar 22 22:34:31 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 22:34:31 GMT Subject: RFR: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main [v6] In-Reply-To: References: Message-ID: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Update rows ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18362/files - new: https://git.openjdk.org/jdk/pull/18362/files/6cc7fab8..b8968d09 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18362&range=04-05 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18362.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18362/head:pull/18362 PR: https://git.openjdk.org/jdk/pull/18362 From dnguyen at openjdk.org Fri Mar 22 23:12:29 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 22 Mar 2024 23:12:29 GMT Subject: Integrated: 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:50:59 GMT, Damon Nguyen wrote: > Convert java/awt/print/Dialog/PrintApplet.java applet test to main using PassFailJFrame. Also rename the test to PrintModalDialog.java since this is no longer an applet. Added test instructions related to the linked JBS issue. This pull request has now been integrated. Changeset: 476421ef Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/476421efe574eca6ba92aaa7fc86dfca99fdd7b2 Stats: 298 lines in 3 files changed: 127 ins; 171 del; 0 mod 8328370: Convert java/awt/print/Dialog/PrintApplet.java applet test to main Reviewed-by: honkar, psadhukhan ------------- PR: https://git.openjdk.org/jdk/pull/18362 From psadhukhan at openjdk.org Sat Mar 23 08:13:22 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Sat, 23 Mar 2024 08:13:22 GMT Subject: RFR: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 20:00:48 GMT, Phil Race wrote: > I don't know why this file is checked in. It has no @test tag and doesn't do anything. I am deleting it. Should we also remove test/jdk/java/awt/Mouse/MouseModifiersUnitTest/ModifierPermutation.java which also does not have @test tag and added for same product fix JDK-6315717? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18440#issuecomment-2016406188 From psadhukhan at openjdk.org Sat Mar 23 08:19:23 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Sat, 23 Mar 2024 08:19:23 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 18:55:01 GMT, Damon Nguyen wrote: > Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. Marked as reviewed by psadhukhan (Reviewer). test/jdk/java/awt/print/PageFormat/SetOrient.java line 106: > 104: pjob.print(); > 105: } catch (PrinterException e) { > 106: throw new RuntimeException(e.getMessage()); In other PRs, I guess we do ex.printStackTrace(); String msg = "PrinterException: " + ex.getMessage(); PassFailJFrame.forceFail(msg); ------------- PR Review: https://git.openjdk.org/jdk/pull/18462#pullrequestreview-1956340700 PR Review Comment: https://git.openjdk.org/jdk/pull/18462#discussion_r1536593630 From psadhukhan at openjdk.org Sat Mar 23 08:26:24 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Sat, 23 Mar 2024 08:26:24 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 17:38:36 GMT, Damon Nguyen wrote: >> Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Move test out of extra dir test/jdk/java/awt/print/bug8023392.java line 116: > 114: @Override > 115: protected void paintComponent(Graphics g) { > 116: SwingUtilities2.drawChars(this, g, s.toCharArray(), cant we use `Graphics.drawChars` instead in all places `SwingUtilities2.drawChars` is used? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18458#discussion_r1536594819 From prr at openjdk.org Sat Mar 23 23:41:23 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 23 Mar 2024 23:41:23 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main In-Reply-To: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: <9Ws8y7MzFgDR21NTpfU6I5GNat1ZAg9ATtDAnJnwfvo=.87e64e44-b706-4b45-a002-6ef374c09397@github.com> On Fri, 22 Mar 2024 18:06:59 GMT, Damon Nguyen wrote: > Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame Marked as reviewed by prr (Reviewer). test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 49: > 47: with two buttons: "Page Dialog" and "Print Dialog". > 48: 1. Make the "Test Frame" active by clicking on title. > 49: 2. Press "Page Dialog" button and a page dailog should popup. dailog -> dialog test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 68: > 66: .title("PrinterDialogsModalityTest Test Instructions") > 67: .instructions(INSTRUCTIONS) > 68: .rows((int) INSTRUCTIONS.lines().count() + 2) Oh, that's a nice idea. I'd been tweaking by hand. ------------- PR Review: https://git.openjdk.org/jdk/pull/18461#pullrequestreview-1956449159 PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1536708437 PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1536708440 From prr at openjdk.org Sat Mar 23 23:47:23 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 23 Mar 2024 23:47:23 GMT Subject: RFR: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main [v4] In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 18:37:45 GMT, Alexander Zuev wrote: >> Convert test to a main method based; >> Move test to an apropriate location; >> Remove old files; > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Remove .html from the @test clause Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18363#pullrequestreview-1956449728 From prr at openjdk.org Sat Mar 23 23:51:25 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 23 Mar 2024 23:51:25 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v2] In-Reply-To: <5A204R9Q4Xm8u41OcYVqOZi2XwrooEeYV8vupQ8W9gc=.741ff049-a0bf-488a-be29-1d8b5f04a24b@github.com> References: <5A204R9Q4Xm8u41OcYVqOZi2XwrooEeYV8vupQ8W9gc=.741ff049-a0bf-488a-be29-1d8b5f04a24b@github.com> Message-ID: <7VXbq1F80tQCM908_-tSB4ZPc5R3uQy_YVrfUV1PoZg=.5125f077-0ca9-4647-926b-ad879413ef84@github.com> On Thu, 21 Mar 2024 13:59:42 GMT, Alexander Zvegintsev wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> spacing > > test/jdk/javax/swing/JColorChooser/Test6977726.java line 43: > >> 41: .title("Test6977726") >> 42: .instructions("Check that there is an empty panel " + >> 43: "titled \"Preview\" in the JColorChooser.") > >>there is an empty panel > > This doesn't seem to be right, originally it was `If you don't see the preview panel, then test failed, otherwise it passed.` > The preview panel is not empty, it has barely visible white text. > ![image](https://github.com/openjdk/jdk/assets/77687766/4d8706f6-1d7f-4229-9a20-bcaf85bb7737) yep, the instructions need to be as they were in the applet. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1536709452 From prr at openjdk.org Sat Mar 23 23:54:21 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 23 Mar 2024 23:54:21 GMT Subject: RFR: 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main [v2] In-Reply-To: References: Message-ID: On Thu, 21 Mar 2024 11:37:36 GMT, Alexander Zvegintsev wrote: >> Test converted to main. >> Instructions split to Windows and Linux, with some clarifications. >> The test runs successfully on Windows and Linux. > > Alexander Zvegintsev has updated the pull request incrementally with one additional commit since the last revision: > > minor spacing This test looks to be a good example why we should be considering a new jtreg key like @key keyboard or @key locale ------------- Marked as reviewed by prr (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18388#pullrequestreview-1956450230 From prr at openjdk.org Sun Mar 24 00:03:21 2024 From: prr at openjdk.org (Phil Race) Date: Sun, 24 Mar 2024 00:03:21 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: On Fri, 22 Mar 2024 08:54:07 GMT, Tejesh R wrote: >> Clean up and opensource five tests. > > test/jdk/javax/swing/InputVerifier/bug4774166.java line 229: > >> 227: public void cleanupGUI() { >> 228: if (testframe != null) { >> 229: testframe.setVisible(false); > > `testframe.setVisible(false);` is required here? Any advantage for setting the visibility to false ? anyhow its been disposed..... Not harmful, but not needed either. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536710591 From prr at openjdk.org Sun Mar 24 00:03:22 2024 From: prr at openjdk.org (Phil Race) Date: Sun, 24 Mar 2024 00:03:22 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> Message-ID: On Fri, 22 Mar 2024 21:39:43 GMT, Alexander Zuev wrote: >> test/jdk/javax/swing/JButton/4385611/bug4385611.java line 42: >> >>> 40: public class bug4385611 { >>> 41: static JButton bt1, bt2; >>> 42: static final ImageIcon icon32x32 = new ImageIcon(bug4385611.class.getResource("red.gif")); >> >> did you verify if we are allowed to keep this red.gif in open source as per the image license? Can we not create the Imageicon from a yellow32x32 bufferedimage? > > It is just a gif file filled with yellow color created specifically for that test. It was not provided by the test submitter or anything like that - it was just created in the graphics editor. There's no copyright issue with it. yeah, but the question is not about the provenance of the file. It is just easier if the test is self-contained. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1536710511 From prr at openjdk.org Sun Mar 24 00:07:22 2024 From: prr at openjdk.org (Phil Race) Date: Sun, 24 Mar 2024 00:07:22 GMT Subject: RFR: 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only [v2] In-Reply-To: References: Message-ID: <1_QCUNsrZAeIg6-mutMZeWxRrPNv6Ghh0ta_j32f2G0=.5eea636e-55f0-4baa-8ec5-1051e0e46f86@github.com> On Fri, 22 Mar 2024 16:07:36 GMT, Prasanta Sadhukhan wrote: >> Test is now passing in mac..Several iterations of the test passed in CI system..link in JBS...deproblemlisted... > > Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: > > spacing So no changes to the test except for formatting ? But it now passes ? Could be it has passed for many years. We'll see how it does in CI over the long term. ------------- Marked as reviewed by prr (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18449#pullrequestreview-1956451065 From prr at openjdk.org Sun Mar 24 00:14:21 2024 From: prr at openjdk.org (Phil Race) Date: Sun, 24 Mar 2024 00:14:21 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 10:02:49 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Updated regtesthelpers path The images here are very problematic. I do not think they can be open-sourced. You will need to remove these from the PR (ASAP) and replace them with something else. The duke one is OK tho' ------------- PR Comment: https://git.openjdk.org/jdk/pull/18448#issuecomment-2016639114 From tr at openjdk.org Sun Mar 24 12:21:52 2024 From: tr at openjdk.org (Tejesh R) Date: Sun, 24 Mar 2024 12:21:52 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: References: Message-ID: > Convert and open source these manual applet test to main based: > java/awt/Frame/MegaIconTest/MegaIconTest.html > java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html > java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html > java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html Tejesh R has updated the pull request incrementally with three additional commits since the last revision: - Images updated - Frame position updates - removed headful tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18448/files - new: https://git.openjdk.org/jdk/pull/18448/files/433086cb..40c89e96 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=01-02 Stats: 13 lines in 6 files changed: 0 ins; 10 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18448.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18448/head:pull/18448 PR: https://git.openjdk.org/jdk/pull/18448 From tr at openjdk.org Mon Mar 25 05:16:22 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 25 Mar 2024 05:16:22 GMT Subject: RFR: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 08:48:35 GMT, Damon Nguyen wrote: >> Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Update copyright year Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18436#pullrequestreview-1956884943 From jwaters at openjdk.org Mon Mar 25 06:02:06 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 25 Mar 2024 06:02:06 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v53] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting in src/java.desktop/windows/native/libawt/windows/awt_Window.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/0439b138..663a7f34 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=52 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=51-52 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Mon Mar 25 06:02:06 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 25 Mar 2024 06:02:06 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> Message-ID: On Wed, 20 Mar 2024 06:38:59 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request incrementally with two additional commits since the last revision: > > - Revert Formatting in awt_Component.cpp > - Revert Formatting in awt_Window.cpp Thanks for the clarifications! Makes my job a lot easier. The only thing I'm uncertain about is the pData local, which I don't see much benefit in removing since the null check associated with it still has to remain for code semantics to be correct ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2017282826 From jwaters at openjdk.org Mon Mar 25 06:02:06 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 25 Mar 2024 06:02:06 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: <6_80radA3v1Fq_kuf_4GZ74gfwc8hgMPOyBczHItlKc=.9a2463ef-c106-42c4-b0a8-12f94568ea96@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> <6_80radA3v1Fq_kuf_4GZ74gfwc8hgMPOyBczHItlKc=.9a2463ef-c106-42c4-b0a8-12f94568ea96@github.com> Message-ID: <_sqXHbEck2Qm83hInO5_ITsaBo_dPQpC6yo5HeypcQM=.de02ef0b-ec9b-4c2a-9bb2-fa9a263a227c@github.com> On Fri, 22 Mar 2024 12:27:31 GMT, Magnus Ihse Bursie wrote: >> Julian Waters has updated the pull request incrementally with two additional commits since the last revision: >> >> - Revert Formatting in awt_Component.cpp >> - Revert Formatting in awt_Window.cpp > > src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 1230: > >> 1228: jdouble imgY = (jdouble) ((yPixelOrg * 72)/(jdouble) yPixelRes); >> 1229: jdouble imgWid = (jdouble) ((imgPixelWid * 72)/(jdouble) xPixelRes); >> 1230: jdouble imgHgt = (jdouble) ((imgPixelHgt * 72)/(jdouble) yPixelRes); > > Suggestion: > > jdouble imgX = (jdouble)((xPixelOrg * 72)/(jdouble)xPixelRes); > jdouble imgY = (jdouble)((yPixelOrg * 72)/(jdouble)yPixelRes); > jdouble imgWid = (jdouble)((imgPixelWid * 72)/(jdouble)xPixelRes); > jdouble imgHgt = (jdouble)((imgPixelHgt * 72)/(jdouble)yPixelRes);``` I don't think I can commit this as there are 3 backticks at the end there :P ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1537089274 From tr at openjdk.org Mon Mar 25 07:41:23 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 25 Mar 2024 07:41:23 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 18:55:01 GMT, Damon Nguyen wrote: > Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. test/jdk/java/awt/print/PageFormat/SetOrient.java line 46: > 44: > 45: public class SetOrient { > 46: static PrinterJob pjob; Can be moved inside `init()` and even you change the method name since applet is removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18462#discussion_r1537144154 From tr at openjdk.org Mon Mar 25 07:45:22 2024 From: tr at openjdk.org (Tejesh R) Date: Mon, 25 Mar 2024 07:45:22 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main In-Reply-To: References: Message-ID: <-unOAa8CL8nF8mpEN3lBAw8Wuq0hS2j77QwAusFCAco=.b7e54147-02b7-4bda-9a08-93f9606e94c9@github.com> On Fri, 22 Mar 2024 18:55:01 GMT, Damon Nguyen wrote: > Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. Since this is a manual test, should we wait for user to input some action like start print or something like that ? Because as soon as the test starts/ printer job is initiated. Instructions are there, but I felt without user starting the test, the test is running as soon as it is executed, is it fine? ------------- PR Review: https://git.openjdk.org/jdk/pull/18462#pullrequestreview-1957037239 From ihse at openjdk.org Mon Mar 25 09:01:47 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Mon, 25 Mar 2024 09:01:47 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: <_sqXHbEck2Qm83hInO5_ITsaBo_dPQpC6yo5HeypcQM=.de02ef0b-ec9b-4c2a-9bb2-fa9a263a227c@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> <6_80radA3v1Fq_kuf_4GZ74gfwc8hgMPOyBczHItlKc=.9a2463ef-c106-42c4-b0a8-12f94568ea96@github.com> <_sqXHbEck2Qm83hInO5_ITsaBo_dPQpC6yo5HeypcQM=.de02ef0b-ec9b-4c2a-9bb2-fa9a263a227c@github.com> Message-ID: On Mon, 25 Mar 2024 05:58:41 GMT, Julian Waters wrote: >> src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 1230: >> >>> 1228: jdouble imgY = (jdouble) ((yPixelOrg * 72)/(jdouble) yPixelRes); >>> 1229: jdouble imgWid = (jdouble) ((imgPixelWid * 72)/(jdouble) xPixelRes); >>> 1230: jdouble imgHgt = (jdouble) ((imgPixelHgt * 72)/(jdouble) yPixelRes); >> >> Suggestion: >> >> jdouble imgX = (jdouble)((xPixelOrg * 72)/(jdouble)xPixelRes); >> jdouble imgY = (jdouble)((yPixelOrg * 72)/(jdouble)yPixelRes); >> jdouble imgWid = (jdouble)((imgPixelWid * 72)/(jdouble)xPixelRes); >> jdouble imgHgt = (jdouble)((imgPixelHgt * 72)/(jdouble)yPixelRes);``` > > I don't think I can commit this as there are 3 backticks at the end there :P Apologies. The point was that this was formatting changes that were not needed and should be reverted. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1537238932 From ihse at openjdk.org Mon Mar 25 09:05:43 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Mon, 25 Mar 2024 09:05:43 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> Message-ID: On Mon, 25 Mar 2024 05:56:52 GMT, Julian Waters wrote: > The only thing I'm uncertain about is the pData local, which I don't see much benefit in removing since the null check associated with it still has to remain for code semantics to be correct The point is that you can do the null check on the correct variable directly, instead of going a detour with pData. So instead of: RealType realVal; void* pData = getVal() if (pData == null) { // bail out } realVal = (RealType) pData; you can just do: RealType realVal = getVal(); if (realVal == null) { // bail out } as the code normally would have been written, had there not been an old macro that used the "magic" temporary pData variable. This is a recurring pattern in this patch and needs to be fixed everywhere. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2017510861 From psadhukhan at openjdk.org Mon Mar 25 10:14:26 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Mon, 25 Mar 2024 10:14:26 GMT Subject: Integrated: 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 09:55:46 GMT, Prasanta Sadhukhan wrote: > Test is now passing in mac..Several iterations of the test passed in CI system..link in JBS...deproblemlisted... This pull request has now been integrated. Changeset: f67ec19e Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jdk/commit/f67ec19e236e3b4d2d4d4993a7d64b8de052d241 Stats: 34 lines in 2 files changed: 22 ins; 2 del; 10 mod 8079786: [macosx] Test java/awt/Frame/DisposeParentGC/DisposeParentGC.java fails for Mac only Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18449 From dnguyen at openjdk.org Mon Mar 25 16:03:25 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 16:03:25 GMT Subject: Integrated: 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main In-Reply-To: References: Message-ID: <34K3Kl3-rJJ11I7SgvXapug-01BLFC-1MgFgrYjmmrs=.7444e07b-e8da-4356-9f25-f3c3829e57fd@github.com> On Thu, 21 Mar 2024 16:31:04 GMT, Damon Nguyen wrote: > Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main using PassFailJFrame for the instructions. This pull request has now been integrated. Changeset: a1fbbffb Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/a1fbbffb5e0d7e41a9c3041b7e64382780e86f50 Stats: 86 lines in 3 files changed: 26 ins; 46 del; 14 mod 8328717: Convert javax/swing/JColorChooser/8065098/bug8065098.java applet test to main Reviewed-by: honkar, tr ------------- PR: https://git.openjdk.org/jdk/pull/18436 From dnguyen at openjdk.org Mon Mar 25 16:08:24 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 16:08:24 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v2] In-Reply-To: References: Message-ID: <6TKKq_cZG4icfSlDAzMiJWPs0yPNd1hzMlQ_tswF08A=.2a6efb82-c7c8-4412-a365-89b40cd02c88@github.com> On Sat, 23 Mar 2024 08:23:25 GMT, Prasanta Sadhukhan wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Move test out of extra dir > > test/jdk/java/awt/print/bug8023392.java line 116: > >> 114: @Override >> 115: protected void paintComponent(Graphics g) { >> 116: SwingUtilities2.drawChars(this, g, s.toCharArray(), > > cant we use `Graphics.drawChars` instead in all places `SwingUtilities2.drawChars` is used? `Graphics.drawChars` isn't a static method, which will require additional changes to this test. Is it preferred to use `Graphics` over the `SwingUtilities2` version? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18458#discussion_r1537844651 From kizune at openjdk.org Mon Mar 25 16:18:31 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 25 Mar 2024 16:18:31 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: On Sun, 24 Mar 2024 00:00:25 GMT, Phil Race wrote: >> test/jdk/javax/swing/InputVerifier/bug4774166.java line 229: >> >>> 227: public void cleanupGUI() { >>> 228: if (testframe != null) { >>> 229: testframe.setVisible(false); >> >> `testframe.setVisible(false);` is required here? Any advantage for setting the visibility to false ? anyhow its been disposed..... > > Not harmful, but not needed either. Ok, removing them. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1537856832 From kizune at openjdk.org Mon Mar 25 16:18:31 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 25 Mar 2024 16:18:31 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> <7F76CExWTIR2A-yyd3q5McROglv7yv8Zb-6H9Juu8AQ=.cb569ed1-6a5c-45df-a66b-b2d6c1e67064@github.com> Message-ID: On Sat, 23 Mar 2024 23:59:42 GMT, Phil Race wrote: >> It is just a gif file filled with yellow color created specifically for that test. It was not provided by the test submitter or anything like that - it was just created in the graphics editor. There's no copyright issue with it. > > yeah, but the question is not about the provenance of the file. It is just easier if the test is self-contained. >From that point of view - sure, we can do without it. I just clarified that there is no copyright issue with the file itself. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1537858419 From kizune at openjdk.org Mon Mar 25 16:24:10 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 25 Mar 2024 16:24:10 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests [v2] In-Reply-To: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: > Clean up and opensource five tests. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Removing image file as not needed, generating ImageIcon instead; Moved test file from the dedicated folder siince it is no longer needed; Removed setVidible(false) calls before disposal of the components; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18443/files - new: https://git.openjdk.org/jdk/pull/18443/files/cea98042..5eca231d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18443&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18443&range=00-01 Stats: 187 lines in 4 files changed: 97 ins; 90 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18443.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18443/head:pull/18443 PR: https://git.openjdk.org/jdk/pull/18443 From achung at openjdk.org Mon Mar 25 16:48:49 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 25 Mar 2024 16:48:49 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: change font ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18316/files - new: https://git.openjdk.org/jdk/pull/18316/files/00bf78b2..6ff8dfa4 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=02-03 Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18316.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18316/head:pull/18316 PR: https://git.openjdk.org/jdk/pull/18316 From achung at openjdk.org Mon Mar 25 16:51:48 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 25 Mar 2024 16:51:48 GMT Subject: RFR: 8328380: Remove applet usage from JColorChooser tests Test6348456 [v2] In-Reply-To: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> References: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: fix line length and frame title ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18359/files - new: https://git.openjdk.org/jdk/pull/18359/files/c6e99a27..ff633d32 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18359&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18359&range=00-01 Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/18359.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18359/head:pull/18359 PR: https://git.openjdk.org/jdk/pull/18359 From achung at openjdk.org Mon Mar 25 16:55:35 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 25 Mar 2024 16:55:35 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: test instructions ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18369/files - new: https://git.openjdk.org/jdk/pull/18369/files/d0818756..39b41d55 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18369.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18369/head:pull/18369 PR: https://git.openjdk.org/jdk/pull/18369 From achung at openjdk.org Mon Mar 25 16:57:52 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 25 Mar 2024 16:57:52 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v2] In-Reply-To: References: Message-ID: > Removing applet usage from manual JFileChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: force fail ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/4ed3d97e..630d78c9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From achung at openjdk.org Mon Mar 25 16:59:37 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 25 Mar 2024 16:59:37 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 [v2] In-Reply-To: References: Message-ID: > Removing applet usage from manual JFileChooser tests > The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: increase rows to show second window ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18456/files - new: https://git.openjdk.org/jdk/pull/18456/files/9ca90cb9..e43d8b1e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18456&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18456&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18456.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18456/head:pull/18456 PR: https://git.openjdk.org/jdk/pull/18456 From achung at openjdk.org Mon Mar 25 17:05:29 2024 From: achung at openjdk.org (Alisen Chung) Date: Mon, 25 Mar 2024 17:05:29 GMT Subject: Integrated: 8328380: Remove applet usage from JColorChooser tests Test6348456 In-Reply-To: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> References: <_aL-mUkiTU1jMOsAtDv8wQ4LfmGjhtiFqVr4pqBmUyU=.43345241-dc46-48b8-bab5-95e2b4d18136@github.com> Message-ID: On Mon, 18 Mar 2024 20:07:50 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests This pull request has now been integrated. Changeset: 78d1b904 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/78d1b9046830198cd61c505f04f245a430878a5b Stats: 93 lines in 2 files changed: 37 ins; 45 del; 11 mod 8328380: Remove applet usage from JColorChooser tests Test6348456 Reviewed-by: honkar ------------- PR: https://git.openjdk.org/jdk/pull/18359 From kizune at openjdk.org Mon Mar 25 17:20:26 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Mon, 25 Mar 2024 17:20:26 GMT Subject: Integrated: 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 20:52:00 GMT, Alexander Zuev wrote: > Convert test to a main method based; > Move test to an apropriate location; > Remove old files; This pull request has now been integrated. Changeset: c7cf6020 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/c7cf6020782525eb17ff3013195a81d711a4fce1 Stats: 431 lines in 3 files changed: 142 ins; 289 del; 0 mod 8328385: Convert java/awt/FileDialog/FileDialogReturnTest test to main Reviewed-by: achung, prr ------------- PR: https://git.openjdk.org/jdk/pull/18363 From azvegint at openjdk.org Mon Mar 25 18:51:29 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 25 Mar 2024 18:51:29 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v3] In-Reply-To: References: Message-ID: On Mon, 25 Mar 2024 16:55:35 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > test instructions test/jdk/javax/swing/JColorChooser/Test6977726.java line 43: > 41: .title("Test6977726") > 42: .instructions("Check that there is a panel with white text " + > 43: "titled \"Preview\" in the JColorChooser.") > Check that there is a panel with white text titled "Preview" in the JColorChooser. I read it as if the text should be titled "Preview", although it should actually refer to the panel(maybe I'm wrong). Since you modified the original "If you don't see the preview panel" by adding the "white text" check, you should check it on all platforms/LaFs that this text is really white and distinguishable from the background, otherwise it might come back to us one day with a failure of this test. test/jdk/javax/swing/JColorChooser/Test6977726.java line 46: > 44: .rows(5) > 45: .columns(40) > 46: .testTimeOut(10) Suggestion: 10 minutes seems too long for such a simple test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1538075544 PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1538080488 From duke at openjdk.org Mon Mar 25 18:53:26 2024 From: duke at openjdk.org (Larry Cable) Date: Mon, 25 Mar 2024 18:53:26 GMT Subject: Withdrawn: 8321428: Depreciate java.beans.beancontext.* In-Reply-To: <5CF4Y37gyrFEcymJvgj50A4L25_fDlH2N8-cTBhVF2M=.cc55299c-b3e2-436e-b380-6a6d74e84c70@github.com> References: <5CF4Y37gyrFEcymJvgj50A4L25_fDlH2N8-cTBhVF2M=.cc55299c-b3e2-436e-b380-6a6d74e84c70@github.com> Message-ID: <_sHbUdbdFHjL0PVYY6j9wGPy1XB85gSrTIBtWFm9Y0c=.756c2a1c-34c4-4a30-b3f6-d62af6050301@github.com> On Wed, 20 Mar 2024 21:30:53 GMT, Larry Cable wrote: > [https://bugs.openjdk.org/browse/JDK-8321428](url) This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.org/jdk/pull/18413 From azvegint at openjdk.org Mon Mar 25 19:02:28 2024 From: azvegint at openjdk.org (Alexander Zvegintsev) Date: Mon, 25 Mar 2024 19:02:28 GMT Subject: Integrated: 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main In-Reply-To: References: Message-ID: On Wed, 20 Mar 2024 03:09:32 GMT, Alexander Zvegintsev wrote: > Test converted to main. > Instructions split to Windows and Linux, with some clarifications. > The test runs successfully on Windows and Linux. This pull request has now been integrated. Changeset: fb8f2a0a Author: Alexander Zvegintsev URL: https://git.openjdk.org/jdk/commit/fb8f2a0a929ebe7f65c69741712b89bbb403ade9 Stats: 137 lines in 2 files changed: 64 ins; 57 del; 16 mod 8328562: Convert java/awt/InputMethods/DiacriticsTest/DiacriticsTest.java applet test to main Reviewed-by: tr, prr ------------- PR: https://git.openjdk.org/jdk/pull/18388 From dnguyen at openjdk.org Mon Mar 25 19:53:54 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 19:53:54 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: > Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Fix spelling ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18461/files - new: https://git.openjdk.org/jdk/pull/18461/files/c39292d0..663c433a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18461.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18461/head:pull/18461 PR: https://git.openjdk.org/jdk/pull/18461 From dnguyen at openjdk.org Mon Mar 25 19:53:54 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 19:53:54 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: <9Ws8y7MzFgDR21NTpfU6I5GNat1ZAg9ATtDAnJnwfvo=.87e64e44-b706-4b45-a002-6ef374c09397@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> <9Ws8y7MzFgDR21NTpfU6I5GNat1ZAg9ATtDAnJnwfvo=.87e64e44-b706-4b45-a002-6ef374c09397@github.com> Message-ID: <9qLRviqCZ41Kpd3ypOqPlG7azLKh-ZfJBJZrnCebzN4=.7cb13f4a-3a29-4bbc-9c6c-c09d10b95f4d@github.com> On Sat, 23 Mar 2024 23:38:51 GMT, Phil Race wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Fix spelling > > test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 49: > >> 47: with two buttons: "Page Dialog" and "Print Dialog". >> 48: 1. Make the "Test Frame" active by clicking on title. >> 49: 2. Press "Page Dialog" button and a page dailog should popup. > > dailog -> dialog Fixed. Thanks. > test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 68: > >> 66: .title("PrinterDialogsModalityTest Test Instructions") >> 67: .instructions(INSTRUCTIONS) >> 68: .rows((int) INSTRUCTIONS.lines().count() + 2) > > Oh, that's a nice idea. I'd been tweaking by hand. I agree it's a nice idea, but I took this idea from other PR's I've reviewed. Not sure who started this first, but very handy. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538152306 PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538153170 From dnguyen at openjdk.org Mon Mar 25 20:03:37 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 20:03:37 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main [v2] In-Reply-To: References: Message-ID: > Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: - Move var inside method - Add error msg. Add print button instead of auto print on exec. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18462/files - new: https://git.openjdk.org/jdk/pull/18462/files/02f3a96b..cd960eba Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18462&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18462&range=00-01 Stats: 44 lines in 1 file changed: 9 ins; 2 del; 33 mod Patch: https://git.openjdk.org/jdk/pull/18462.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18462/head:pull/18462 PR: https://git.openjdk.org/jdk/pull/18462 From dnguyen at openjdk.org Mon Mar 25 20:03:37 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 20:03:37 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main [v2] In-Reply-To: <-unOAa8CL8nF8mpEN3lBAw8Wuq0hS2j77QwAusFCAco=.b7e54147-02b7-4bda-9a08-93f9606e94c9@github.com> References: <-unOAa8CL8nF8mpEN3lBAw8Wuq0hS2j77QwAusFCAco=.b7e54147-02b7-4bda-9a08-93f9606e94c9@github.com> Message-ID: On Mon, 25 Mar 2024 07:42:47 GMT, Tejesh R wrote: > Since this is a manual test, should we wait for user to input some action like start print or something like that ? Because as soon as the test starts/ printer job is initiated. Instructions are there, but I felt without user starting the test, the test is running as soon as it is executed, is it fine? I figured it was fine, but there's no harm in making a dedicated button for it. I went ahead and added the button to the `PassFailJFrame` as suggested. Thanks for the suggestion. @TejeshR13 could you re-review this when you get the chance? > test/jdk/java/awt/print/PageFormat/SetOrient.java line 46: > >> 44: >> 45: public class SetOrient { >> 46: static PrinterJob pjob; > > Can be moved inside `init()` and even you change the method name since applet is removed. Renamed method to `createAndShowGUI`. Also moved `pjob` var into method. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18462#issuecomment-2018805769 PR Review Comment: https://git.openjdk.org/jdk/pull/18462#discussion_r1538162365 From dnguyen at openjdk.org Mon Mar 25 20:03:37 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 20:03:37 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main [v2] In-Reply-To: References: Message-ID: On Sat, 23 Mar 2024 08:16:13 GMT, Prasanta Sadhukhan wrote: >> Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: >> >> - Move var inside method >> - Add error msg. Add print button instead of auto print on exec. > > test/jdk/java/awt/print/PageFormat/SetOrient.java line 106: > >> 104: pjob.print(); >> 105: } catch (PrinterException e) { >> 106: throw new RuntimeException(e.getMessage()); > > In other PRs, I guess we do > > > ex.printStackTrace(); > String msg = "PrinterException: " + ex.getMessage(); > PassFailJFrame.forceFail(msg); You're right. Changed to align with other PRs. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18462#discussion_r1538160918 From prr at openjdk.org Mon Mar 25 21:17:24 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 25 Mar 2024 21:17:24 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 17:38:36 GMT, Damon Nguyen wrote: >> Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Move test out of extra dir Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18458#pullrequestreview-1958797230 From prr at openjdk.org Mon Mar 25 21:17:25 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 25 Mar 2024 21:17:25 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v2] In-Reply-To: <6TKKq_cZG4icfSlDAzMiJWPs0yPNd1hzMlQ_tswF08A=.2a6efb82-c7c8-4412-a365-89b40cd02c88@github.com> References: <6TKKq_cZG4icfSlDAzMiJWPs0yPNd1hzMlQ_tswF08A=.2a6efb82-c7c8-4412-a365-89b40cd02c88@github.com> Message-ID: <1o27khyL9xRi3EkQ_xMPnHIYiDJDlFspkYp_P6pOUDY=.8e239097-c53a-4e89-a84c-6c017035f4c4@github.com> On Mon, 25 Mar 2024 16:05:16 GMT, Damon Nguyen wrote: >> test/jdk/java/awt/print/bug8023392.java line 116: >> >>> 114: @Override >>> 115: protected void paintComponent(Graphics g) { >>> 116: SwingUtilities2.drawChars(this, g, s.toCharArray(), >> >> cant we use `Graphics.drawChars` instead in all places `SwingUtilities2.drawChars` is used? > > `Graphics.drawChars` isn't a static method, which will require additional changes to this test. Is it preferred to use `Graphics` over the `SwingUtilities2` version? This test is specifically about testing the spacing of text in Swing printing. I think this SwingUtilities call isn't just "the way he happens to be printing text", This call is the very thing under test ! And note that it takes a Component parameter which affects how that call renders the text. It is used to figure out the FRC to use. So changing this to use Graphics would be a problem. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18458#discussion_r1538247940 From prr at openjdk.org Mon Mar 25 21:20:21 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 25 Mar 2024 21:20:21 GMT Subject: RFR: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main [v2] In-Reply-To: References: Message-ID: On Mon, 25 Mar 2024 20:03:37 GMT, Damon Nguyen wrote: >> Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. > > Damon Nguyen has updated the pull request incrementally with two additional commits since the last revision: > > - Move var inside method > - Add error msg. Add print button instead of auto print on exec. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18462#pullrequestreview-1958801826 From prr at openjdk.org Mon Mar 25 21:26:21 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 25 Mar 2024 21:26:21 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests [v2] In-Reply-To: References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: <5fBoMR6Ye7i6e5qZlssGe6o4Zy20n-iW9aENzosIVO4=.41b5b8f4-76df-42be-bae3-d2d85cd54d95@github.com> On Mon, 25 Mar 2024 16:24:10 GMT, Alexander Zuev wrote: >> Clean up and opensource five tests. > > Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: > > Removing image file as not needed, generating ImageIcon instead; > Moved test file from the dedicated folder siince it is no longer needed; > Removed setVidible(false) calls before disposal of the components; Marked as reviewed by prr (Reviewer). test/jdk/javax/swing/JButton/bug4385611.java line 84: > 82: } > 83: } catch (Exception e) { > 84: e.printStackTrace(); Not a blocker for approval, but I wonder why this test catches the exception ? Surely we don't expect installing the L&F to fail since we require windows. And the Metal case above should never fail. Perhaps we should let the exceptions propagate so the test fails rather than being silent. You decide. ------------- PR Review: https://git.openjdk.org/jdk/pull/18443#pullrequestreview-1958810958 PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1538257423 From prr at openjdk.org Mon Mar 25 21:27:24 2024 From: prr at openjdk.org (Phil Race) Date: Mon, 25 Mar 2024 21:27:24 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v4] In-Reply-To: References: Message-ID: On Mon, 25 Mar 2024 16:48:49 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > change font Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18316#pullrequestreview-1958811391 From dnguyen at openjdk.org Mon Mar 25 21:27:25 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 21:27:25 GMT Subject: Integrated: 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 18:55:01 GMT, Damon Nguyen wrote: > Convert java/awt/print/PageFormat/SetOrient.html applet test to main using PassFailJFrame. This pull request has now been integrated. Changeset: 27ac39a2 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/27ac39a2bc8250bfae859568cb0ee0963900aafa Stats: 131 lines in 2 files changed: 41 ins; 50 del; 40 mod 8328719: Convert java/awt/print/PageFormat/SetOrient.html applet test to main Reviewed-by: psadhukhan, prr ------------- PR: https://git.openjdk.org/jdk/pull/18462 From honkar at openjdk.org Mon Mar 25 22:49:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 25 Mar 2024 22:49:22 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: On Mon, 25 Mar 2024 19:53:54 GMT, Damon Nguyen wrote: >> Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Fix spelling @DamonGuy The test in https://github.com/openjdk/jdk/pull/18362 and the one in this PR test similar functionality -Dialog Modality when using Print functions. Will combining or retaining only one test make more sense instead of 2 separate tests? test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 92: > 90: frame.add(print); > 91: frame.pack(); > 92: frame.setVisible(true); frame.setVisible(true); not required when using PassFailJFrame. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18461#issuecomment-2019049516 PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538329544 From honkar at openjdk.org Mon Mar 25 23:31:21 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Mon, 25 Mar 2024 23:31:21 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v2] In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 17:38:36 GMT, Damon Nguyen wrote: >> Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Move test out of extra dir LGTM test/jdk/java/awt/print/bug8023392.java line 211: > 209: } > 210: } > 211: } EOF newline missing. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18458#pullrequestreview-1958976053 PR Review Comment: https://git.openjdk.org/jdk/pull/18458#discussion_r1538362847 From dnguyen at openjdk.org Mon Mar 25 23:40:40 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 23:40:40 GMT Subject: RFR: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main [v3] In-Reply-To: References: Message-ID: > Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Add EOF newline ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18458/files - new: https://git.openjdk.org/jdk/pull/18458/files/72fe9b13..075d2f6d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18458&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18458&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18458.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18458/head:pull/18458 PR: https://git.openjdk.org/jdk/pull/18458 From duke at openjdk.org Mon Mar 25 23:51:23 2024 From: duke at openjdk.org (Joel Uckelman) Date: Mon, 25 Mar 2024 23:51:23 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> <2LG0ERi-9ETplOC0EdSozMQ4WTJDgx2lw3Z1J6IVrrY=.03443566-afd3-4d7e-8caa-46fa10c55a5e@github.com> Message-ID: On Thu, 21 Mar 2024 17:01:49 GMT, Joel Uckelman wrote: >> @uckelman Is there a way to reproduce the original bug in the user's environment? >> >> I think there's a bug in JDK which leads to two _Documents_ folders in the list. If the bug is still reproducible, collecting more data will help us identify the problem and fix it. > > If I can get in contact with the user, I expect he'd still be able to trigger the bug with my test case, yeah. I'll try to get his attention. I haven't heard back yet. I hope investigating the second bug will not hold up the fix for the first bug getting merged. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1538374102 From dnguyen at openjdk.org Mon Mar 25 23:53:55 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 23:53:55 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v3] In-Reply-To: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: > Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Move test tags. Remove setVisible ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18461/files - new: https://git.openjdk.org/jdk/pull/18461/files/663c433a..9390d0b8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=01-02 Stats: 15 lines in 1 file changed: 7 ins; 8 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18461.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18461/head:pull/18461 PR: https://git.openjdk.org/jdk/pull/18461 From dnguyen at openjdk.org Mon Mar 25 23:53:55 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 23:53:55 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: On Mon, 25 Mar 2024 19:53:54 GMT, Damon Nguyen wrote: >> Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Fix spelling > @DamonGuy The test in #18362 and the one in this PR test similar functionality -Dialog Modality when using Print functions. Will combining or retaining only one test make more sense instead of 2 separate tests? Good point. This one was originally for windows only for print dialog and page dialog modality. The other PR was for web dialogs. They're also in different directories, one for `PrinterJob` and one for `Dialog`. They are similar though now. What do you suggest @honkar-jdk? I prefer this test overall over the other if I had to pick one. Cleaner and more succinct test. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18461#issuecomment-2019116843 From dnguyen at openjdk.org Mon Mar 25 23:53:56 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 23:53:56 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: On Mon, 25 Mar 2024 22:45:48 GMT, Harshitha Onkar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Fix spelling > > test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 92: > >> 90: frame.add(print); >> 91: frame.pack(); >> 92: frame.setVisible(true); > > frame.setVisible(true); not required when using PassFailJFrame. Fixed. Thanks. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538372723 From dnguyen at openjdk.org Mon Mar 25 23:54:26 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Mon, 25 Mar 2024 23:54:26 GMT Subject: Integrated: 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main In-Reply-To: References: Message-ID: <73T5L5VTmzStDRrmuhV5OEbxwzuNAKXWegHvEbR3bCY=.6ce5fa34-5d47-4c4d-b61e-a76e4d9843b8@github.com> On Fri, 22 Mar 2024 17:20:41 GMT, Damon Nguyen wrote: > Convert java/awt/print/bug8023392/bug8023392.html applet test to main using PassFailJFrame This pull request has now been integrated. Changeset: 4047a362 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/4047a3623a44d86df2b82565f33ce739a882802d Stats: 542 lines in 3 files changed: 211 ins; 331 del; 0 mod 8328730: Convert java/awt/print/bug8023392/bug8023392.html applet test to main Reviewed-by: prr, honkar ------------- PR: https://git.openjdk.org/jdk/pull/18458 From jwaters at openjdk.org Mon Mar 25 23:57:41 2024 From: jwaters at openjdk.org (Julian Waters) Date: Mon, 25 Mar 2024 23:57:41 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> <6_80radA3v1Fq_kuf_4GZ74gfwc8hgMPOyBczHItlKc=.9a2463ef-c106-42c4-b0a8-12f94568ea96@github.com> <_sqXHbEck2Qm83hInO5_ITsaBo_dPQpC6yo5HeypcQM=.de02ef0b-ec9b-4c2a-9bb2-fa9a263a227c@github.com> Message-ID: On Mon, 25 Mar 2024 08:59:08 GMT, Magnus Ihse Bursie wrote: >> I don't think I can commit this as there are 3 backticks at the end there :P > > Apologies. The point was that this was formatting changes that were not needed and should be reverted. I know, I did want to commit your change directly though, just can't because of the backticks :P ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1538377635 From jwaters at openjdk.org Tue Mar 26 00:01:53 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 00:01:53 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v54] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with two additional commits since the last revision: - Revert formatting in src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp Co-authored-by: Magnus Ihse Bursie - Revert formatting in src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/663a7f34..1dbd5f7e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=53 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=52-53 Stats: 4 lines in 2 files changed: 2 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Tue Mar 26 00:04:57 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 00:04:57 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v55] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting in awt_Frame.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/1dbd5f7e..dfc3c491 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=54 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=53-54 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Tue Mar 26 00:09:55 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 00:09:55 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v56] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with two additional commits since the last revision: - Partially revert formatting in AccessBridgeJavaEntryPoints.cpp - Partially revert formatting in AccessBridgeJavaEntryPoints.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/dfc3c491..bf12c71a Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=55 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=54-55 Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From honkar at openjdk.org Tue Mar 26 00:17:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 00:17:26 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: <-Rl16AQF_i9TnqZXkMYCSbE36yTye0zh4gV3iD5CMDo=.0739bafa-4f02-4151-b2b8-4239a1fd8c5f@github.com> On Mon, 25 Mar 2024 23:48:14 GMT, Damon Nguyen wrote: > > @DamonGuy The test in #18362 and the one in this PR test similar functionality -Dialog Modality when using Print functions. Will combining or retaining only one test make more sense instead of 2 separate tests? > > Good point. This one was originally for windows only for print dialog and page dialog modality. The other PR was for web dialogs. They're also in different directories, one for `PrinterJob` and one for `Dialog`. They are similar though now. What do you suggest @honkar-jdk? I prefer this test overall over the other if I had to pick one. Cleaner and more succinct test. In my opinion PrintModalDialog.java can be removed since it is redundant. I agree this test looks better. If we go ahead with removing PrintModalDialog.java then - Remove PrintModalDialog.java as part of new PR since it is already integrated. - This test (PrinterDialogsModalityTest.java) can be extended to all platforms and we no longer need @requires tag. - Probably update the @bug to include the bug id related to PrintModalDialog.java. If it is not too much effort then I suggest on deleting the redundant test. @prrace Any suggestions? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18461#issuecomment-2019139803 From honkar at openjdk.org Tue Mar 26 00:17:29 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 00:17:29 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v3] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: On Mon, 25 Mar 2024 23:53:55 GMT, Damon Nguyen wrote: >> Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Move test tags. Remove setVisible test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 35: > 33: * @bug 4784285 4785920 > 34: * @key printer > 35: * @requires (os.family == "windows") @DamonGuy Even if we retain both the tests, I believe this test can be extended to all platforms and `@requires` tag may not be required. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538390954 From jwaters at openjdk.org Tue Mar 26 00:17:56 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 00:17:56 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v57] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting change in src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/bf12c71a..0c409d45 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=56 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=55-56 Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Tue Mar 26 00:17:56 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 00:17:56 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> Message-ID: <9agOsYWQVrdMO2D4unjqu1d3JoWs_FtQ-ATURfsANr4=.e51e3241-cc69-41df-a202-c7f24581408a@github.com> On Mon, 25 Mar 2024 09:02:22 GMT, Magnus Ihse Bursie wrote: > > The only thing I'm uncertain about is the pData local, which I don't see much benefit in removing since the null check associated with it still has to remain for code semantics to be correct > > The point is that you can do the null check on the correct variable directly, instead of going a detour with pData. So instead of: > > ``` > RealType realVal; > void* pData = getVal() > if (pData == null) { > // bail out > } > realVal = (RealType) pData; > ``` > > you can just do: > > ``` > RealType realVal = getVal(); > if (realVal == null) { > // bail out > } > ``` > > as the code normally would have been written, had there not been an old macro that used the "magic" temporary pData variable. > > This is a recurring pattern in this patch and needs to be fixed everywhere. I have a concern since the null check bailout involves THROW_NULL_PDATA_IF_NOT_DESTROYED, which is no longer accurate if we remove the pData local. Maybe Phil can suggest an alternative to that, because I don't know what that might be. Although, if given the choice I'd use RAII through unique_ptr like Thomas suggested, it just seems so much cleaner to me. Speaking of, hopefully this causes enough noise to get Phil's attention again. In the meantime, I've reverted as much of the formatting changes I could possibly find ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2019140763 From dnguyen at openjdk.org Tue Mar 26 00:31:40 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 00:31:40 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v4] In-Reply-To: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: > Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Remove requires tag ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18461/files - new: https://git.openjdk.org/jdk/pull/18461/files/9390d0b8..d61f55fe Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18461.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18461/head:pull/18461 PR: https://git.openjdk.org/jdk/pull/18461 From dnguyen at openjdk.org Tue Mar 26 00:31:40 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 00:31:40 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v3] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: On Tue, 26 Mar 2024 00:14:15 GMT, Harshitha Onkar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: >> >> Move test tags. Remove setVisible > > test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 35: > >> 33: * @bug 4784285 4785920 >> 34: * @key printer >> 35: * @requires (os.family == "windows") > > @DamonGuy Even if we retain both the tests, I believe this test can be extended to all platforms and `@requires` tag may not be required. Removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538408179 From honkar at openjdk.org Tue Mar 26 00:46:23 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 00:46:23 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v4] In-Reply-To: References: Message-ID: On Mon, 18 Mar 2024 19:54:00 GMT, Alisen Chung wrote: >> test/jdk/javax/swing/JColorChooser/Test4887836.java line 41: >> >>> 39: public static void main(String[] args) throws Exception { >>> 40: String instructions = "If you do not see white area under the \"Swatches\" tab,\n" + >>> 41: "then test passed, otherwise it failed."; >> >> The original instructions seem a bit vague and the test window has a lot going on so probably more details here would add clarity. > > The original test [JDK-4887836](https://bugs.openjdk.org/browse/JDK-4887836) is quite vague so I'm not sure how to add more details other than "white area under 'Swatches' tab" Which "White area" are they referring in Swatches tab? Is it the preview window? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1538445218 From honkar at openjdk.org Tue Mar 26 00:49:26 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 00:49:26 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v4] In-Reply-To: References: Message-ID: <-Q8UhtOxNPqh7ADYGEnC4gs6-WzLkvOowLI-oH9Sfuc=.185acb92-8fd6-43b7-a934-062a15d5c4d4@github.com> On Mon, 25 Mar 2024 16:48:49 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > change font test/jdk/javax/swing/JColorChooser/Test4887836.java line 43: > 41: String instructions = """ > 42: If you do not see white area under the \"Swatches\" tab,\n + > 43: then test passed, otherwise it failed."""; Please fix line-lengths and the "+" operator is not required since String blocks are used. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1538450325 From kizune at openjdk.org Tue Mar 26 00:51:23 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 26 Mar 2024 00:51:23 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests [v2] In-Reply-To: <5fBoMR6Ye7i6e5qZlssGe6o4Zy20n-iW9aENzosIVO4=.41b5b8f4-76df-42be-bae3-d2d85cd54d95@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> <5fBoMR6Ye7i6e5qZlssGe6o4Zy20n-iW9aENzosIVO4=.41b5b8f4-76df-42be-bae3-d2d85cd54d95@github.com> Message-ID: On Mon, 25 Mar 2024 21:24:13 GMT, Phil Race wrote: >> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: >> >> Removing image file as not needed, generating ImageIcon instead; >> Moved test file from the dedicated folder siince it is no longer needed; >> Removed setVidible(false) calls before disposal of the components; > > test/jdk/javax/swing/JButton/bug4385611.java line 84: > >> 82: } >> 83: } catch (Exception e) { >> 84: e.printStackTrace(); > > Not a blocker for approval, but I wonder why this test catches the exception ? > Surely we don't expect installing the L&F to fail since we require windows. > And the Metal case above should never fail. > Perhaps we should let the exceptions propagate so the test fails rather than being silent. > You decide. I think i will re-throw them as RuntimeException with original exception passed as a parameter. There is no reason for adding all 4 exceptions that can be thrown to the main method signature. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18443#discussion_r1538451330 From kizune at openjdk.org Tue Mar 26 00:56:10 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 26 Mar 2024 00:56:10 GMT Subject: RFR: 8316324: Opensource five miscellaneous Swing tests [v3] In-Reply-To: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: > Clean up and opensource five tests. Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision: Make test fail if it can not instantiate required look and feel; ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18443/files - new: https://git.openjdk.org/jdk/pull/18443/files/5eca231d..f5e97388 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18443&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18443&range=01-02 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18443.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18443/head:pull/18443 PR: https://git.openjdk.org/jdk/pull/18443 From kizune at openjdk.org Tue Mar 26 01:05:31 2024 From: kizune at openjdk.org (Alexander Zuev) Date: Tue, 26 Mar 2024 01:05:31 GMT Subject: Integrated: 8316324: Opensource five miscellaneous Swing tests In-Reply-To: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> References: <2GNSvcn0o7_d4Gca1TkUmz3M2gTtjg2lF8guEq2V8Bs=.cd4c564a-b089-4a8e-b582-b778a73b0329@github.com> Message-ID: On Thu, 21 Mar 2024 23:35:58 GMT, Alexander Zuev wrote: > Clean up and opensource five tests. This pull request has now been integrated. Changeset: 7560dbb9 Author: Alexander Zuev URL: https://git.openjdk.org/jdk/commit/7560dbb9258f651a221bc8350816845735929fd9 Stats: 572 lines in 5 files changed: 572 ins; 0 del; 0 mod 8316324: Opensource five miscellaneous Swing tests Reviewed-by: prr ------------- PR: https://git.openjdk.org/jdk/pull/18443 From achung at openjdk.org Tue Mar 26 02:20:35 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 02:20:35 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v3] In-Reply-To: References: Message-ID: <27GDhgFS-BWfpjW9Fr7tT25u0VPzoSO12V9SV4ANuNc=.a07fa534-01e1-431f-af80-d24f861ba3e4@github.com> > Removing applet usage from manual JFileChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: change to automatic test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/630d78c9..0126af35 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=01-02 Stats: 95 lines in 1 file changed: 53 ins; 19 del; 23 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From abhiscxk at openjdk.org Tue Mar 26 07:42:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 26 Mar 2024 07:42:24 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: <8aBNZkw1dIeHg9WidHBtQnx1mtZbSs4fWqQFl0KFOnI=.ddbcc158-5cb7-4ad6-ace0-4ed41f4d9048@github.com> 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 otherwise return the default color by calling native APIs. >> Applet based test has been converted to automatic test and check for all installed LAFs. CI testing is green for test suite and individual test. Link attached in JBS. > > Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: > > separate method to get LAF defined color @aivanov-jdk > This looks weird? So you're saying Label[Enabled].textForeground and Label[Disabled].textForeground are used for Nimbus (and Synth and GTK) instead of Label.foreground and Label.disabledForeground which are used for other L&Fs. As per my understanding, Yes, for Nimbus LAF the UI properties are different than other LAF. > Shouldn't we fix the problem by correcting the keys instead? It looks like it's what you're doing for specific components. I am not sure if it is a problem or nimbus LAF is supposed to be like this. > Is it specified anywhere that Synth-based L&Fs use different constants? It results in incorrect colors. Need to check on this. > If a developer sets the common properties, should they override Look-and-Feel defaults? Will check and revert back. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17763#issuecomment-2019571589 From abhiscxk at openjdk.org Tue Mar 26 07:42:26 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 26 Mar 2024 07:42:26 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: On Mon, 11 Mar 2024 13:25:28 GMT, Alexey Ivanov wrote: >> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision: >> >> separate method to get LAF defined color > > src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java line 186: > >> 184: >> 185: if (id == Region.LABEL && type == ColorType.FOREGROUND >> 186: && (state & SynthConstants.ENABLED) != 0) { > > Doesn't `SynthConstants.DISABLED` need the same treatment? Yes, I am working on it to fix the disabled case. > I believe you should be using `labelColor` here. If anyone changes its value from `Color.RED` to anything else, the test will fail but it shouldn't. After all, why allowing configuring the colour in first place. makes sense, will update it. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1538712355 PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1538713181 From ihse at openjdk.org Tue Mar 26 07:43:49 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 26 Mar 2024 07:43:49 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v57] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Tue, 26 Mar 2024 00:17:56 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request incrementally with one additional commit since the last revision: > > Revert formatting change in src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp > > Co-authored-by: Magnus Ihse Bursie src/java.desktop/windows/native/libawt/windows/awt_Canvas.cpp line 230: > 228: } > 229: > 230: AwtCanvas *c = (AwtCanvas*) pData; Suggestion: AwtCanvas *c = (AwtCanvas*)pData; ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1538714268 From tr at openjdk.org Tue Mar 26 07:47:25 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 26 Mar 2024 07:47:25 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v4] In-Reply-To: References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: On Tue, 26 Mar 2024 00:31:40 GMT, Damon Nguyen wrote: >> Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame > > Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: > > Remove requires tag Marked as reviewed by tr (Committer). test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java line 74: > 72: } > 73: > 74: public static JFrame init() { Can rename the `init` method. And the changes are good to me. ------------- PR Review: https://git.openjdk.org/jdk/pull/18461#pullrequestreview-1959535915 PR Review Comment: https://git.openjdk.org/jdk/pull/18461#discussion_r1538715965 From ihse at openjdk.org Tue Mar 26 07:47:47 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 26 Mar 2024 07:47:47 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: <9agOsYWQVrdMO2D4unjqu1d3JoWs_FtQ-ATURfsANr4=.e51e3241-cc69-41df-a202-c7f24581408a@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> <9agOsYWQVrdMO2D4unjqu1d3JoWs_FtQ-ATURfsANr4=.e51e3241-cc69-41df-a202-c7f24581408a@github.com> Message-ID: On Tue, 26 Mar 2024 00:13:09 GMT, Julian Waters wrote: > I have a concern since the null check bailout involves THROW_NULL_PDATA_IF_NOT_DESTROYED, which is no longer accurate if we remove the pData local. The name of the macro is not great, but it does not involve pData (the bad NPE error message notwithstanding): #define THROW_NULL_PDATA_IF_NOT_DESTROYED(peer) { \ jboolean destroyed = JNI_GET_DESTROYED(peer); \ if (destroyed != JNI_TRUE) { \ env->ExceptionClear(); \ JNU_ThrowNullPointerException(env, "null pData"); \ } \ } So you can go ahead and replace the pData references with the variable that will eventually be used. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2019589225 From tr at openjdk.org Tue Mar 26 07:56:22 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 26 Mar 2024 07:56:22 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 [v2] In-Reply-To: References: Message-ID: On Mon, 25 Mar 2024 16:59:37 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests >> The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > increase rows to show second window `rootFile`, `subdir `and `subdirFile` can be moved inside `VirtualFileSystemView` class ? test/jdk/javax/swing/JFileChooser/6698013/bug6698013.java line 52: > 50: 1. Go into 'subdir' folder via double click > 51: 2. Return to parent directory > 52: 3. Go into 'subdir' folder: select 'subdir' folder and press the 'Open' button"""; Mentioning about Test Pass and Fail criteria would be beneficial, the instruction only says how to test, doesn't specify about Test PASS/FAIL criteria....? ------------- PR Review: https://git.openjdk.org/jdk/pull/18456#pullrequestreview-1959557433 PR Review Comment: https://git.openjdk.org/jdk/pull/18456#discussion_r1538727435 From psadhukhan at openjdk.org Tue Mar 26 08:25:25 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Tue, 26 Mar 2024 08:25:25 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: <8aBNZkw1dIeHg9WidHBtQnx1mtZbSs4fWqQFl0KFOnI=.ddbcc158-5cb7-4ad6-ace0-4ed41f4d9048@github.com> References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> <8aBNZkw1dIeHg9WidHBtQnx1mtZbSs4fWqQFl0KFOnI=.ddbcc158-5cb7-4ad6-ace0-4ed41f4d9048@github.com> Message-ID: On Tue, 26 Mar 2024 07:38:39 GMT, Abhishek Kumar wrote: > @aivanov-jdk > > > This looks weird? So you're saying Label[Enabled].textForeground and Label[Disabled].textForeground are used for Nimbus (and Synth and GTK) instead of Label.foreground and Label.disabledForeground which are used for other L&Fs. > > As per my understanding, Yes, for Nimbus LAF the UI properties are different than other LAF. > > > Shouldn't we fix the problem by correcting the keys instead? It looks like it's what you're doing for specific components. > > I am not sure if it is a problem or nimbus LAF is supposed to be like this. > > > Is it specified anywhere that Synth-based L&Fs use different constants? It results in incorrect colors. > > Need to check on this. > > > If a developer sets the common properties, should they override Look-and-Feel defaults? > > Will check and revert back. As I understood, what `Label.background` color to be set, is determined via **`Nimbus.Overrides`** property i.e., if `Label.background` is set to `Nimbus.Overrides`, it should override the `label.setBackground()` user color setting else if `Nimbus.Overrides` is not set or set to null, then `Label.setBackground()` will hold precedent even if `Label.background` property is set Similarly, if `Nimbus.Overrides` is set with `Label.background` color **AND** Label[Enabled].background is also set, then Label[Enabled].background will have priority over Label.background which will have priority over Label.setBackground() but this is also controlled by another boolean property **`Nimbus.Overrides.InheritDefaults`** in way that the above precedence is valid only if if Nimbus.Overrides.InheritDefaults is true if **`Nimbus.Overrides.InheritDefaults`** is false, then Label[Enabled].background will be ignored and Label.background will have priority over Label.setBackground() This is somewhat explained in `https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/nimbus/package-summary.html` and tested in` test/jdk/javax/swing/plaf/nimbus/ColorCustomizationTest.java` so in a way, it seems widget[state].color setting is applicable for Nimbus only since we dont have GTK.Overrides property ------------- PR Comment: https://git.openjdk.org/jdk/pull/17763#issuecomment-2019798007 From jwaters at openjdk.org Tue Mar 26 08:38:56 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 08:38:56 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v58] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: <8wOZ7EDElH3e_T5mSI7ynob41VWrwZsZlCOkJh5rNFQ=.cf72839b-9d03-4b39-b7c4-3a71ccfd28ed@github.com> > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting in src/java.desktop/windows/native/libawt/windows/awt_Canvas.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/0c409d45..53e8bd6d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=57 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=56-57 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Tue Mar 26 08:42:10 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 08:42:10 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v59] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting in src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/53e8bd6d..1341d2e1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=58 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=57-58 Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Tue Mar 26 08:50:07 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 08:50:07 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v60] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with two additional commits since the last revision: - Comment in src/java.desktop/windows/native/libawt/windows/awt_DnDDS.cpp Co-authored-by: Magnus Ihse Bursie - Comment in src/java.desktop/windows/native/libawt/windows/awt_DnDDT.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/1341d2e1..90d9096f Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=59 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=58-59 Stats: 5 lines in 2 files changed: 3 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Tue Mar 26 08:50:07 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 08:50:07 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> <9agOsYWQVrdMO2D4unjqu1d3JoWs_FtQ-ATURfsANr4=.e51e3241-cc69-41df-a202-c7f24581408a@github.com> Message-ID: On Tue, 26 Mar 2024 07:44:22 GMT, Magnus Ihse Bursie wrote: > > I have a concern since the null check bailout involves THROW_NULL_PDATA_IF_NOT_DESTROYED, which is no longer accurate if we remove the pData local. > > The name of the macro is not great, but it does not involve pData (the bad NPE error message notwithstanding): > > ``` > #define THROW_NULL_PDATA_IF_NOT_DESTROYED(peer) { \ > jboolean destroyed = JNI_GET_DESTROYED(peer); \ > if (destroyed != JNI_TRUE) { \ > env->ExceptionClear(); \ > JNU_ThrowNullPointerException(env, "null pData"); \ > } \ > } > ``` > > So you can go ahead and replace the pData references with the variable that will eventually be used. Alright, will do. Maybe as a further improvement, I can inline THROW_NULL_PDATA_IF_NOT_DESTROYED at its callsites and replace the bad NullPointerException error message with the proper null pointer name. Since Phil isn't here, what do you think? Regardless, I really hope I can get this in by Thursday. University for me officially ramps up into _very_ high gear about that time, and I doubt I can juggle both JDK work and it all at once by then ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2019839348 From jwaters at openjdk.org Tue Mar 26 08:55:56 2024 From: jwaters at openjdk.org (Julian Waters) Date: Tue, 26 Mar 2024 08:55:56 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v61] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with two additional commits since the last revision: - Whitespace in awt_DnDDS.cpp - Whitespace in awt_DnDDT.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/90d9096f..ef9f3a62 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=60 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=59-60 Stats: 3 lines in 2 files changed: 0 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From ihse at openjdk.org Tue Mar 26 09:07:47 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 26 Mar 2024 09:07:47 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v61] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Tue, 26 Mar 2024 08:55:56 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request incrementally with two additional commits since the last revision: > > - Whitespace in awt_DnDDS.cpp > - Whitespace in awt_DnDDT.cpp src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 598: > 596: int sz = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_IMEASURE, NULL, 0); > 597: if (sz > 0) { > 598: LPTSTR str = (LPTSTR) SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(TCHAR), sz); Suggestion: LPTSTR str = (LPTSTR)SAFE_SIZE_ARRAY_ALLOC(safe_Malloc, sizeof(TCHAR), sz); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1538833940 From duke at openjdk.org Tue Mar 26 11:29:36 2024 From: duke at openjdk.org (rjolly) Date: Tue, 26 Mar 2024 11:29:36 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException Message-ID: ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. ------------- Commit messages: - 8328953 : JEditorPane.read throws ChangedCharSetException Changes: https://git.openjdk.org/jdk/pull/17567/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328953 Stats: 118 lines in 2 files changed: 93 ins; 16 del; 9 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From tr at openjdk.org Tue Mar 26 11:29:36 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 26 Mar 2024 11:29:36 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Thu, 25 Jan 2024 11:11:47 GMT, rjolly wrote: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. Verified the fix with the shared test (regression test from [JDK-8146319](https://bugs.openjdk.org/browse/JDK-8146319)), its working fine. ------------- PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1959906644 From duke at openjdk.org Tue Mar 26 11:29:36 2024 From: duke at openjdk.org (rjolly) Date: Tue, 26 Mar 2024 11:29:36 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: <1MOJPinRAWnrKr4DWeXfV_cUxzU2cHUprU9_xS1xl7k=.202cadfb-75fc-4216-be18-e7a590ebb0ca@github.com> On Thu, 25 Jan 2024 11:11:47 GMT, rjolly wrote: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. Up js>JEditorPane=javax.swing.JEditorPane class javax.swing.JEditorPane js>e=new JEditorPane() javax.swing.JEditorPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder at 4ac7e601,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=3,left=3,bottom=3,right=3],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],kit=javax.swing.JEditorPane$PlainEditorKit at 66bddb1f,typeHandlers=] js>e.setContentType("text/html") js>kit=e.getEditorKit() javax.swing.text.html.HTMLEditorKit at 3602e8c4 js>doc=kit.createDefaultDocument() javax.swing.text.html.HTMLDocument at 3367e16c js>e.setDocument(doc) js>URL=java.net.URL class java.net.URL js>u=new URL("https://www.google.com/") https://www.google.com/ js>is=u.openStream() sun.net.www.protocol.http.HttpURLConnection$HttpInputStream at 754c74c6 js>e.read(is, doc) org.mozilla.javascript.WrappedException: Wrapped javax.swing.text.ChangedCharSetException (#1) in at line number 1 ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-1959435606 PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-1992583067 From aivanov at openjdk.org Tue Mar 26 11:29:37 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 11:29:37 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: <1MOJPinRAWnrKr4DWeXfV_cUxzU2cHUprU9_xS1xl7k=.202cadfb-75fc-4216-be18-e7a590ebb0ca@github.com> References: <1MOJPinRAWnrKr4DWeXfV_cUxzU2cHUprU9_xS1xl7k=.202cadfb-75fc-4216-be18-e7a590ebb0ca@github.com> Message-ID: On Thu, 22 Feb 2024 13:15:49 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > Up @rjolly Thank you for your contribution. Could you provide more details about the issue? The PR needs to be linked to a JBS issue. I'll create one for you after I get a more detailed description of the problem from you. A test case is also welcome. And it's needed a regression test for the change anyway, if it's not hard to create. I believe a test case can be written for this issue. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-1989487531 From duke at openjdk.org Tue Mar 26 11:29:37 2024 From: duke at openjdk.org (rjolly) Date: Tue, 26 Mar 2024 11:29:37 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: <1MOJPinRAWnrKr4DWeXfV_cUxzU2cHUprU9_xS1xl7k=.202cadfb-75fc-4216-be18-e7a590ebb0ca@github.com> Message-ID: On Mon, 11 Mar 2024 21:35:48 GMT, Alexey Ivanov wrote: >> Up > > @rjolly Thank you for your contribution. Could you provide more details about the issue? The PR needs to be linked to a JBS issue. I'll create one for you after I get a more detailed description of the problem from you. > > A test case is also welcome. And it's needed a regression test for the change anyway, if it's not hard to create. I believe a test case can be written for this issue. Hi @aivanov-jdk , thanks for your response. Is there a place where I can put my non-regression test? Thanks! ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2003256738 From aivanov at openjdk.org Tue Mar 26 11:29:37 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 11:29:37 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: <1MOJPinRAWnrKr4DWeXfV_cUxzU2cHUprU9_xS1xl7k=.202cadfb-75fc-4216-be18-e7a590ebb0ca@github.com> Message-ID: On Mon, 18 Mar 2024 09:04:05 GMT, rjolly wrote: >> @rjolly Thank you for your contribution. Could you provide more details about the issue? The PR needs to be linked to a JBS issue. I'll create one for you after I get a more detailed description of the problem from you. >> >> A test case is also welcome. And it's needed a regression test for the change anyway, if it's not hard to create. I believe a test case can be written for this issue. > > Hi @aivanov-jdk , thanks for your response. Is there a place where I can put my non-regression test? Thanks! @rjolly Sorry for my delayed reply. I have submitted [JDK-8328953](https://bugs.openjdk.org/browse/JDK-8328953): _JEditorPane.read throws ChangedCharSetException_ for you. The subject may be amended to describe issue better. I attached the test case. I can reproduce the bug with Java 11 and above. I think it is a regression from [JDK-8146319](https://bugs.openjdk.org/browse/JDK-8146319) which added try-with-resources. @rjolly You should edit the subject of the PR to `8328953: JEditorPane.read throws ChangedCharSetException`. The Skara bot will then mark the PR as ready for review (`rfr`) and will send announcement of the PR and each comment to the *client-libs-dev* mailing list. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2018505966 PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2020166773 From aivanov at openjdk.org Tue Mar 26 11:29:37 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 11:29:37 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Thu, 25 Jan 2024 11:11:47 GMT, rjolly wrote: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. Your changeset looks good to me, it resolves the problem, the HTML stream is re-read with the correct charset and displays correctly. The test that I attached to JBS can be converted to a jtreg regression test and added to your PR. You should not force-push to a branch that's already on the review. If you want to update to latest master, use `git merge` to update the branch and then push it. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2018941633 PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2020170003 From tr at openjdk.org Tue Mar 26 11:44:22 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 26 Mar 2024 11:44:22 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Thu, 25 Jan 2024 11:11:47 GMT, rjolly wrote: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. Verified the fix with the shared test, its working fine. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 2: > 1: /* > 2: * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. Append Copywrite year. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 24: > 22: */ > 23: > 24: /* We normally place jtreg tags after imports. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 46: > 44: "\n" + > 45: "\n" + > 46: " \n" + Line exceeds column length which we usually restrict to 80... ------------- PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1960096438 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539054464 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539055330 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539061293 From aivanov at openjdk.org Tue Mar 26 12:03:28 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 12:03:28 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Thu, 25 Jan 2024 11:11:47 GMT, rjolly wrote: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. Changes requested by aivanov (Reviewer). src/java.desktop/share/classes/javax/swing/JEditorPane.java line 1: > 1: /* Please update the copyright year to `1997, 2024`. That is you change 2023 to 2024. src/java.desktop/share/classes/javax/swing/JEditorPane.java line 621: > 619: String charset = (String) getClientProperty("charset"); > 620: try(Reader r = (charset != null) ? new InputStreamReader(in, charset) : > 621: new InputStreamReader(in)) { The changeset looks confusing in the diff. It becomes clearer if you disable showing whitespace differences. You could've elaborated on the fix in the description. The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 1: > 1: /* Please, place the test into `JEditorPane` directly, that is remove `8328953` subfolder. New tests use flat structure unless supporting files are required. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 2: > 1: /* > 2: * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. Suggestion: * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. It's a new file. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 30: > 28: * @summary JEditorPane.read throws ChangedCharSetException > 29: * @run main EditorPaneCharset > 30: */ It hasn't been agreed to, yet I prefer the jtreg placed right before the test class declaration rather than before the imports. Either way is fine. test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 53: > 51: public static void main(String[] args) { > 52: SwingUtilities.invokeLater(EditorPaneCharset::new); > 53: } It is not a good jtreg regression test. I believe the test can be headless, you don't need to display the component. It could even create `JEditorPane` in its `main` method. The expectation is that `editorPane.read` does not throw `ChangedCharSetException`. I propose adding a comment about the fact. Then, I'd verify that the text in the editor pane is the expected text. So you will take the document root and descend the three of elements to `

`. The text inside the paragraph must match the text in the HTML sample, it should be *???????, ???!?* (it means *?Hello World?*, I'm not creative). You could move the text into a constant to have the text to compare to and concatenate the constant into the HTML snippet. Something like that: main() throws IOException { // Shouldn't throw ChangedCharSetException editorPane.read(?); Element root = document.getDefaultRootElement(); Element p = /* */; String pText = document.getText(p.getStartOffset(), p.getEndOffset() - p.getStartOffset())); if (!CYRILLIC_TEXT.equals(pText)) { throw new RuntimeException("Text doesn't match"); } } where `CYRILLIC_TEXT` is the constant with the text in the HTML snippet. You can use this test as an example on how to get to the `

` element in `HTMLDocument`: https://github.com/openjdk/jdk/blob/cc1800fa4de3c1369efd46f5ca967ea82763f5d5/test/jdk/javax/swing/text/html/HTMLDocument/HTMLUnderlineStrike.java#L65-L68 Should you have any questions, don't hesitate to ask. ------------- PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1960082452 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539045914 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539087982 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539065172 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539047328 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539066742 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539063737 From aivanov at openjdk.org Tue Mar 26 12:07:28 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 12:07:28 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: <7PMxmyF_SKUKRfL0fB1qajUfkNp4h9I3Ew1Ih74I3R4=.b3a7813c-d0cf-4b9d-a784-5eb901b70421@github.com> On Tue, 26 Mar 2024 11:25:45 GMT, Alexey Ivanov wrote: > You should not force-push to a branch that's already on the review. If you want to update to latest master, use `git merge` to update the branch and then push it. A sample on how to merge master in another PR: https://github.com/openjdk/jdk/pull/9825#issuecomment-1447007715 ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2020244200 From aivanov at openjdk.org Tue Mar 26 12:07:29 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 12:07:29 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 11:40:50 GMT, Tejesh R

wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 46: > >> 44: "\n" + >> 45: "\n" + >> 46: " \n" + > > Line exceeds column length which we usually restrict to 80... It fits into 100-column limit, so not strictly necessary? Could be broken though to fit into 80-column limit. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539093429 From aivanov at openjdk.org Tue Mar 26 12:11:22 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 12:11:22 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 12:04:35 GMT, Tejesh R wrote: >> src/java.desktop/share/classes/javax/swing/JEditorPane.java line 621: >> >>> 619: String charset = (String) getClientProperty("charset"); >>> 620: try(Reader r = (charset != null) ? new InputStreamReader(in, charset) : >>> 621: new InputStreamReader(in)) { >> >> The changeset looks confusing in the diff. It becomes clearer if you disable showing whitespace differences. >> >> You could've elaborated on the fix in the description. >> >> The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. > > Yeah, I too agree on this point. The fix description has to elaborated, we are not able to make out in diff. I pulled the change into my local workspace to test it. IDE hides white-space differences and the fix becomes clear. I hid white-space differences in GitHub diff viewer: only two lines are changed. :) ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539099247 From tr at openjdk.org Tue Mar 26 12:07:29 2024 From: tr at openjdk.org (Tejesh R) Date: Tue, 26 Mar 2024 12:07:29 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 12:00:07 GMT, Alexey Ivanov wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > src/java.desktop/share/classes/javax/swing/JEditorPane.java line 621: > >> 619: String charset = (String) getClientProperty("charset"); >> 620: try(Reader r = (charset != null) ? new InputStreamReader(in, charset) : >> 621: new InputStreamReader(in)) { > > The changeset looks confusing in the diff. It becomes clearer if you disable showing whitespace differences. > > You could've elaborated on the fix in the description. > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. Yeah, I too agree on this point. The fix description has to elaborated, we are not able to make out in diff. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539093175 From aivanov at openjdk.org Tue Mar 26 12:17:23 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 12:17:23 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> <6dQg9rhDwh4ZL7D2JfYpA0xNP_eJDbOK3rNgj7efckM=.c5001d8a-cce5-4a11-a91d-eda8e90b8056@github.com> <76BSt4HYmTD2DiZzBUvNvBdvd5d1MFinIDsgp2YuHjs=.68646608-e266-4ca3-8495-59e237f8607c@github.com> <5btT_N4c5R89DQ8aoSyjm6lIR7PHLWC141uAIdH_Bjw=.f36326e9-0f59-4545-82bf-f3c8b4dbaa87@github.com> <2LG0ERi-9ETplOC0EdSozMQ4WTJDgx2lw3Z1J6IVrrY=.03443566-afd3-4d7e-8caa-46fa10c55a5e@github.com> Message-ID: On Mon, 25 Mar 2024 23:48:23 GMT, Joel Uckelman wrote: > I haven't heard back yet. I hope investigating the second bug will not hold up the fix for the first bug getting merged. It's not a show-stopper. These are different bugs. If possible, I'd like to follow up and find the root cause of why there are two identical folders in the file list. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18126#discussion_r1539108157 From duke at openjdk.org Tue Mar 26 12:55:53 2024 From: duke at openjdk.org (rjolly) Date: Tue, 26 Mar 2024 12:55:53 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v2] In-Reply-To: References: Message-ID: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/0a5bc93e..c67179d5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=00-01 Stats: 18 lines in 1 file changed: 9 ins; 7 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From aivanov at openjdk.org Tue Mar 26 13:18:24 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Tue, 26 Mar 2024 13:18:24 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v2] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 12:55:53 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException Changes requested by aivanov (Reviewer). test/jdk/javax/swing/JEditorPane/8328953/EditorPaneCharset.java line 48: > 46: "\n" + > 47: " 48: windows-1251\">\n" + Is it a valid Java syntax? The file does not compile. I would prefer wrapping at attribute boundary rather than a value of an attribute. No tabs are allowed in OpenJDK source code, replace with four spaces. ------------- PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1960341309 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1539207533 From duke at openjdk.org Tue Mar 26 14:24:57 2024 From: duke at openjdk.org (rjolly) Date: Tue, 26 Mar 2024 14:24:57 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v3] In-Reply-To: References: Message-ID: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/c67179d5..f89808df Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=01-02 Stats: 156 lines in 3 files changed: 78 ins; 77 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From duke at openjdk.org Tue Mar 26 15:03:40 2024 From: duke at openjdk.org (rjolly) Date: Tue, 26 Mar 2024 15:03:40 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v4] In-Reply-To: References: Message-ID: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/f89808df..15dcec91 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=02-03 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From abhiscxk at openjdk.org Tue Mar 26 15:43:27 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 26 Mar 2024 15:43:27 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v3] In-Reply-To: <27GDhgFS-BWfpjW9Fr7tT25u0VPzoSO12V9SV4ANuNc=.a07fa534-01e1-431f-af80-d24f861ba3e4@github.com> References: <27GDhgFS-BWfpjW9Fr7tT25u0VPzoSO12V9SV4ANuNc=.a07fa534-01e1-431f-af80-d24f861ba3e4@github.com> Message-ID: On Tue, 26 Mar 2024 02:20:35 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > change to automatic test test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 43: > 41: * @library /test/lib /java/awt/regtesthelpers > 42: * @build jdk.test.lib.Platform PassFailJFrame > 43: * @run main/manual bug4150029 Not a manual test anymore, please remove manual test related tags and library. test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 88: > 86: fileChooser = new JFileChooser(subDir); > 87: > 88: // fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); Not required to keep commented code. test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 91: > 89: > 90: SwingUtilities.invokeAndWait(() -> { > 91: frame = new JFrame("Backspace Shortcut for Directory Navigation Test"); Block of code can be moved to separate method to create and show UI elements. test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 113: > 111: > 112: private static void doTesting() { > 113: Point p = frame.getLocationOnScreen(); should be on EDT. test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 115: > 113: Point p = frame.getLocationOnScreen(); > 114: robot.mouseMove(p.x + 200, p.y + 200); > 115: robot.mousePress(InputEvent.BUTTON1_MASK); Suggestion: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); should we add `robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);` too ? test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 136: > 134: } > 135: > 136: if (passed_1 && passed_2) { I think no need to print "Test Passed", can check for not passed and throw the runtime exception inside if block. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539499125 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539501818 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539503277 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539503917 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539510138 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539515462 From abhiscxk at openjdk.org Tue Mar 26 16:07:22 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Tue, 26 Mar 2024 16:07:22 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: References: Message-ID: <2-p_eBzRl8-4ySpcKqginStUCxYkAiwXl5V1reP4U-w=.44afc483-cd4f-4712-a567-27e18323d814@github.com> On Sun, 24 Mar 2024 12:21:52 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with three additional commits since the last revision: > > - Images updated > - Frame position updates > - removed headful tag test/jdk/java/awt/Frame/MegaIconTest/MegaIconTest.java line 81: > 79: IconTestButtons itb = new IconTestButtons(new IconTestFrame[]{ > 80: new IconTestFrame("Opaque, Scaled Icon Test", > 81: "fight.gif"), "fight.gif" file is missing. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1539561887 From prr at openjdk.org Tue Mar 26 18:20:23 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 26 Mar 2024 18:20:23 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v2] In-Reply-To: <-Rl16AQF_i9TnqZXkMYCSbE36yTye0zh4gV3iD5CMDo=.0739bafa-4f02-4151-b2b8-4239a1fd8c5f@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> <-Rl16AQF_i9TnqZXkMYCSbE36yTye0zh4gV3iD5CMDo=.0739bafa-4f02-4151-b2b8-4239a1fd8c5f@github.com> Message-ID: On Tue, 26 Mar 2024 00:11:59 GMT, Harshitha Onkar wrote: > * we need to remove PrintModalDialog.java as part of new PR since it is already integrated. > * This test (PrinterDialogsModalityTest.java) can be extended to all platforms and we no longer need `@requires` tag. > * Probably update the `@bug` to include the bug id related to PrintModalDialog.java. > > If it is not too much effort then I suggest on deleting the redundant test. @prrace Any suggestions? Yes, this sounds fine to me. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18461#issuecomment-2021166883 From dnguyen at openjdk.org Tue Mar 26 18:43:38 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 18:43:38 GMT Subject: RFR: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main [v5] In-Reply-To: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: <3BwjyhiptjoFcOaz4Fh55SSUdkQSACO16gDGYL9yrdc=.b344f66f-f12b-4907-a48c-6e0087c94866@github.com> > Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame Damon Nguyen has updated the pull request incrementally with one additional commit since the last revision: Rename init ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18461/files - new: https://git.openjdk.org/jdk/pull/18461/files/d61f55fe..4f895616 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18461&range=03-04 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18461.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18461/head:pull/18461 PR: https://git.openjdk.org/jdk/pull/18461 From dnguyen at openjdk.org Tue Mar 26 18:46:25 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 18:46:25 GMT Subject: RFR: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used In-Reply-To: References: Message-ID: <9Att6eyDTTegWdixa-r90nyjLg80Dz831eFBRTYvAI8=.cb4a5fcc-bce9-4d3d-95cf-950896d463f5@github.com> On Thu, 21 Mar 2024 20:00:48 GMT, Phil Race wrote: > I don't know why this file is checked in. It has no @test tag and doesn't do anything. I am deleting it. Marked as reviewed by dnguyen (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18440#pullrequestreview-1961412484 From dnguyen at openjdk.org Tue Mar 26 19:02:26 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 19:02:26 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v3] In-Reply-To: <27GDhgFS-BWfpjW9Fr7tT25u0VPzoSO12V9SV4ANuNc=.a07fa534-01e1-431f-af80-d24f861ba3e4@github.com> References: <27GDhgFS-BWfpjW9Fr7tT25u0VPzoSO12V9SV4ANuNc=.a07fa534-01e1-431f-af80-d24f861ba3e4@github.com> Message-ID: <1S8D3BRp9Jm0wp94S4VHCiMvX1ONdI4Ye28Y7SMY71Y=.52f6a196-db56-4e90-8cca-ecbb508c04bb@github.com> On Tue, 26 Mar 2024 02:20:35 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > change to automatic test test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 95: > 93: fileChooser = new JFileChooser(subDir); > 94: fileChooser.setControlButtonsAreShown(false); > 95: frame.getContentPane().add(fileChooser, BorderLayout.CENTER); Suggestion: frame.add(fileChooser, BorderLayout.CENTER); It was brought to my attention in one of my PRs that `getContentPane()` is obsolete as of JDK 1.5. They referenced https://github.com/openjdk/jdk/pull/18390#discussion_r1533017080. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1539938437 From dnguyen at openjdk.org Tue Mar 26 19:03:32 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 19:03:32 GMT Subject: Integrated: 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main In-Reply-To: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> References: <2iwbuovZ9rGwS8EqkKiSvnxU3_eJI-5KHFngpMs4qtE=.89885458-b5e0-48da-9810-4cfe71c9a420@github.com> Message-ID: <6Nz6YQzlKA8LtcgYLBHFmssnbPnd54whVS4iKpo3M9Q=.2a665254-bee3-4829-b096-3fd15726b5c5@github.com> On Fri, 22 Mar 2024 18:06:59 GMT, Damon Nguyen wrote: > Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main using PassFailJFrame This pull request has now been integrated. Changeset: db01fcd6 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/db01fcd6d8c24b01a1f23c71b2917ff396b0686f Stats: 398 lines in 3 files changed: 93 ins; 305 del; 0 mod 8328827: Convert java/awt/print/PrinterJob/PrinterDialogsModalityTest/PrinterDialogsModalityTest.html applet test to main Reviewed-by: prr, tr ------------- PR: https://git.openjdk.org/jdk/pull/18461 From ihse at openjdk.org Tue Mar 26 20:06:52 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 26 Mar 2024 20:06:52 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v46] In-Reply-To: <0zriWFk8mESin6eTDm4kH02213a8tTq5gEBx41NtZ8Y=.74965e93-6475-44ee-805b-73c477aede94@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <5WJnl6Z9RyYzZrDStf9p74gus07Stz6S6NHwVpGQO3M=.0a04a120-77b5-48c3-9ae8-7d37c9646463@github.com> <0zriWFk8mESin6eTDm4kH02213a8tTq5gEBx41NtZ8Y=.74965e93-6475-44ee-805b-73c477aede94@github.com> Message-ID: On Wed, 20 Mar 2024 06:44:02 GMT, Julian Waters wrote: >> Sorry, I don't see a BOOL error anywhere? > > I see the advantage of collapsing self and parent into the same check, but it doesn't seem like getting rid of pData is of much benefit, the checks for null seem to remain the same either way > Sorry, I don't see a BOOL error anywhere? I think Phil misplaced the code block marker -- the BOOL error line and below is supposed to be inside the second code block. What Phil is doing is trying to suggest two different approaches to make this code nicer, the first with a bit more duplication, and the second with an `error` boolean flag. And he says that he prefers the former, so the second were propably just mentioned to show an alternative for discussion. I think what you should do here is to combine the `self` and `parent` null checks as Phil suggests. And then replace all pData references to the final variable, here as well as everywhere pData is involved. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1540025427 From ihse at openjdk.org Tue Mar 26 20:23:44 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Tue, 26 Mar 2024 20:23:44 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v52] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <0p1UVaUOt2bs1mkuBV1liUxBYGRhnKnclf1x_-Y22GE=.2de6c2c4-8cf5-470d-bdb3-cd0dd0e13975@github.com> <9agOsYWQVrdMO2D4unjqu1d3JoWs_FtQ-ATURfsANr4=.e51e3241-cc69-41df-a202-c7f24581408a@github.com> Message-ID: On Tue, 26 Mar 2024 08:44:31 GMT, Julian Waters wrote: > Maybe as a further improvement, I can inline THROW_NULL_PDATA_IF_NOT_DESTROYED at its callsites and replace the bad NullPointerException error message with the proper null pointer name. Since Phil isn't here, what do you think? That might be a good future code cleanup, but I suggest you refrain from doing that in this change. > Regardless, I really hope I can get this in by Thursday. I see that you are struggling a bit to get this done. I can probably help you fix the remaining issues, but I can't push to your PR. So either I'd need to create a fork of your `patch-10` branch in my personal fork and you'll have to pull from there into your branch, or you need to give me write permissions to your personal fork. I believe you can assign permissions on a per-branch basis. I'd really like to see this PR to come to conclusion. ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2021391154 From prr at openjdk.org Tue Mar 26 20:34:22 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 26 Mar 2024 20:34:22 GMT Subject: RFR: 8305072: Win32ShellFolder2.compareTo is inconsistent [v2] In-Reply-To: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> References: <21db5CiFTVN7scwsIHknMxF4YaVQd06m7gUOhcCLvMI=.e2f61ea7-bf9a-4632-bf45-c89f979ae806@github.com> Message-ID: On Tue, 5 Mar 2024 17:40:01 GMT, Alexey Ivanov wrote: >> 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 evaluation performed by the submitter of the bug provided enough details to create a test, reproduce the problem and finally resolve it. >> >> Without the fix, the regression test always fails: >> >> a < b & b < c but a >= c >> where >> a = C:\Users\Documents(true) >> b = C:\Users(false) >> c = C:\Users\Documents(false) >> >> as well as for the reverse case: `a > b & b > c`. >> >> How it is possible to have the same folder in a list of files twice remains unknown. I believe it is another bug in JDK, however, no one has been able to reproduce it so far. > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Handle fakePersonal on Windows 10 > > The desktop folder on Windows 10 does not include > the Personal (Documents) folder. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18126#pullrequestreview-1961661797 From achung at openjdk.org Tue Mar 26 20:47:47 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 20:47:47 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v5] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: instruction string change ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18316/files - new: https://git.openjdk.org/jdk/pull/18316/files/6ff8dfa4..3b75b6ad Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18316&range=03-04 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18316.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18316/head:pull/18316 PR: https://git.openjdk.org/jdk/pull/18316 From achung at openjdk.org Tue Mar 26 20:57:52 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 20:57:52 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v3] In-Reply-To: References: Message-ID: On Mon, 25 Mar 2024 18:43:44 GMT, Alexander Zvegintsev wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> test instructions > > test/jdk/javax/swing/JColorChooser/Test6977726.java line 43: > >> 41: .title("Test6977726") >> 42: .instructions("Check that there is a panel with white text " + >> 43: "titled \"Preview\" in the JColorChooser.") > >> Check that there is a panel with white text titled "Preview" in the JColorChooser. > > I read it as if the text should be titled "Preview", although it should actually refer to the panel(maybe I'm wrong). > > Since you modified the original "If you don't see the preview panel" by adding the "white text" check, you should check it on all platforms/LaFs that this text is really white and distinguishable from the background, otherwise it might come back to us one day with a failure of this test. When I wrote it I meant to say "Check that there is a panel (with white text) titled 'Preview'", but now that I read it again it is pretty unclear.. Does `Check that there is a panel with "Text Preview Panel" text and with title "Preview" in the JColorChooser.` make more sense? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1540098175 From achung at openjdk.org Tue Mar 26 20:57:52 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 20:57:52 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: instruction string change ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18369/files - new: https://git.openjdk.org/jdk/pull/18369/files/39b41d55..8f03f04c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=02-03 Stats: 7 lines in 1 file changed: 4 ins; 1 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18369.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18369/head:pull/18369 PR: https://git.openjdk.org/jdk/pull/18369 From prr at openjdk.org Tue Mar 26 21:19:22 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 26 Mar 2024 21:19:22 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v4] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 20:57:52 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > instruction string change are you going to reduce the timeout as Alexander suggested ? test/jdk/javax/swing/JColorChooser/Test6977726.java line 42: > 40: String instructions = """ > 41: Check that there is a panel with \"Text Preview Panel\" text > 42: and with title \"Preview\" in the JColorChooser."""; (1) You have a whitespace error that needs fixing. (2) It is probably worth adding a sentence "Test passes if the panel is as described, test fails otherwise". ------------- PR Review: https://git.openjdk.org/jdk/pull/18369#pullrequestreview-1961753498 PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1540122335 From prr at openjdk.org Tue Mar 26 21:23:22 2024 From: prr at openjdk.org (Phil Race) Date: Tue, 26 Mar 2024 21:23:22 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: <2-p_eBzRl8-4ySpcKqginStUCxYkAiwXl5V1reP4U-w=.44afc483-cd4f-4712-a567-27e18323d814@github.com> References: <2-p_eBzRl8-4ySpcKqginStUCxYkAiwXl5V1reP4U-w=.44afc483-cd4f-4712-a567-27e18323d814@github.com> Message-ID: <1992auBhw5Hjt_wfBcPe21bnsizooxn3TcWoCddI_gk=.b388017f-0dcf-4198-8ac1-55ec7b147081@github.com> On Tue, 26 Mar 2024 16:04:13 GMT, Abhishek Kumar wrote: >> Tejesh R has updated the pull request incrementally with three additional commits since the last revision: >> >> - Images updated >> - Frame position updates >> - removed headful tag > > test/jdk/java/awt/Frame/MegaIconTest/MegaIconTest.java line 81: > >> 79: IconTestButtons itb = new IconTestButtons(new IconTestFrame[]{ >> 80: new IconTestFrame("Opaque, Scaled Icon Test", >> 81: "fight.gif"), > > "fight.gif" file is missing. Probably waiting for me to OK it off-line. I've now done so. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1540126419 From honkar at openjdk.org Tue Mar 26 21:27:21 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 21:27:21 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v4] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 21:16:15 GMT, Phil Race wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> instruction string change > > test/jdk/javax/swing/JColorChooser/Test6977726.java line 42: > >> 40: String instructions = """ >> 41: Check that there is a panel with \"Text Preview Panel\" text >> 42: and with title \"Preview\" in the JColorChooser."""; > > (1) You have a whitespace error that needs fixing. > (2) It is probably worth adding a sentence "Test passes if the panel is as described, test fails otherwise". @alisenchung Since you are using string block there is no need to escape double-quotes. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1540129111 From honkar at openjdk.org Tue Mar 26 21:31:22 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 21:31:22 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v4] In-Reply-To: <-Q8UhtOxNPqh7ADYGEnC4gs6-WzLkvOowLI-oH9Sfuc=.185acb92-8fd6-43b7-a934-062a15d5c4d4@github.com> References: <-Q8UhtOxNPqh7ADYGEnC4gs6-WzLkvOowLI-oH9Sfuc=.185acb92-8fd6-43b7-a934-062a15d5c4d4@github.com> Message-ID: On Tue, 26 Mar 2024 00:46:29 GMT, Harshitha Onkar wrote: >> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: >> >> change font > > test/jdk/javax/swing/JColorChooser/Test4887836.java line 43: > >> 41: String instructions = """ >> 42: If you do not see white area under the \"Swatches\" tab,\n + >> 43: then test passed, otherwise it failed."""; > > Please fix line-lengths and the "+" operator is not required since String blocks are used. Please fix line-lengths. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18316#discussion_r1540134092 From honkar at openjdk.org Tue Mar 26 21:31:21 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 21:31:21 GMT Subject: RFR: 8328227: Remove applet usage from JColorChooser tests Test4887836 [v5] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 20:47:47 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > instruction string change Marked as reviewed by honkar (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18316#pullrequestreview-1961774254 From achung at openjdk.org Tue Mar 26 22:29:32 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 22:29:32 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v5] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: instruction string change ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18369/files - new: https://git.openjdk.org/jdk/pull/18369/files/8f03f04c..ff6f5e51 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=03-04 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18369.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18369/head:pull/18369 PR: https://git.openjdk.org/jdk/pull/18369 From achung at openjdk.org Tue Mar 26 22:33:45 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 22:33:45 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v4] In-Reply-To: References: Message-ID: > Removing applet usage from manual JFileChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: moved create ui code to helper, change test pass check, add mouse release, remove getContentPane ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/0126af35..5a05f64b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=02-03 Stats: 36 lines in 1 file changed: 16 ins; 12 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From achung at openjdk.org Tue Mar 26 22:41:45 2024 From: achung at openjdk.org (Alisen Chung) Date: Tue, 26 Mar 2024 22:41:45 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 [v3] In-Reply-To: References: Message-ID: > Removing applet usage from manual JFileChooser tests > The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: update test instructions, move vars into subclass ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18456/files - new: https://git.openjdk.org/jdk/pull/18456/files/e43d8b1e..5cd07d36 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18456&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18456&range=01-02 Stats: 14 lines in 1 file changed: 4 ins; 6 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18456.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18456/head:pull/18456 PR: https://git.openjdk.org/jdk/pull/18456 From honkar at openjdk.org Tue Mar 26 23:03:23 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Tue, 26 Mar 2024 23:03:23 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 [v3] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 22:41:45 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests >> The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update test instructions, move vars into subclass LGTM. Suggestion: Since this test is problem-listed on macOS, mentioning it in PR description is helpful for reviewers as well as for future reference. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18456#pullrequestreview-1961905754 From dnguyen at openjdk.org Tue Mar 26 23:34:22 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 23:34:22 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 [v3] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 22:41:45 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests >> The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update test instructions, move vars into subclass Marked as reviewed by dnguyen (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18456#pullrequestreview-1961940055 From dnguyen at openjdk.org Tue Mar 26 23:43:21 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Tue, 26 Mar 2024 23:43:21 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v4] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 22:33:45 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > moved create ui code to helper, change test pass check, add mouse release, remove getContentPane Changes requested by dnguyen (Committer). test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 121: > 119: robot.mouseMove(p.x + 200, p.y + 200); > 120: robot.mousePress(InputEvent.BUTTON1_DOWN_MASK); > 121: robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); `p.x` and `p.y` isn't in scope I believe. You can move `Point p` outside the method, make it static and volatile, then it should be fine. Maybe remove the extra newline in this `SwingUtilities.invokeAndWait()` block as well. ------------- PR Review: https://git.openjdk.org/jdk/pull/18415#pullrequestreview-1961948241 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1540238433 From tr at openjdk.org Wed Mar 27 03:33:57 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 27 Mar 2024 03:33:57 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v4] In-Reply-To: References: Message-ID: > Convert and open source these manual applet test to main based: > java/awt/Frame/MegaIconTest/MegaIconTest.html > java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html > java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html > java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html Tejesh R has updated the pull request incrementally with one additional commit since the last revision: fight.gif added ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18448/files - new: https://git.openjdk.org/jdk/pull/18448/files/40c89e96..656fdc94 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=02-03 Stats: 0 lines in 1 file changed: 0 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18448.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18448/head:pull/18448 PR: https://git.openjdk.org/jdk/pull/18448 From tr at openjdk.org Wed Mar 27 03:33:57 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 27 Mar 2024 03:33:57 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: <1992auBhw5Hjt_wfBcPe21bnsizooxn3TcWoCddI_gk=.b388017f-0dcf-4198-8ac1-55ec7b147081@github.com> References: <2-p_eBzRl8-4ySpcKqginStUCxYkAiwXl5V1reP4U-w=.44afc483-cd4f-4712-a567-27e18323d814@github.com> <1992auBhw5Hjt_wfBcPe21bnsizooxn3TcWoCddI_gk=.b388017f-0dcf-4198-8ac1-55ec7b147081@github.com> Message-ID: On Tue, 26 Mar 2024 21:21:00 GMT, Phil Race wrote: >> test/jdk/java/awt/Frame/MegaIconTest/MegaIconTest.java line 81: >> >>> 79: IconTestButtons itb = new IconTestButtons(new IconTestFrame[]{ >>> 80: new IconTestFrame("Opaque, Scaled Icon Test", >>> 81: "fight.gif"), >> >> "fight.gif" file is missing. > > Probably waiting for me to OK it off-line. I've now done so. Pushed it now. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1540410663 From tr at openjdk.org Wed Mar 27 03:41:23 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 27 Mar 2024 03:41:23 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v4] In-Reply-To: References: Message-ID: <4iuq7hOUD_mkxMgsnCZY5b8FYZ38x0SZduCYKdgI2to=.237d2ac5-badd-44f9-8b12-934605c9104a@github.com> On Tue, 26 Mar 2024 15:03:40 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 69: > 67: Element body = root.getElement(1); > 68: Element p = body.getElement(0); > 69: String pText = document.getText(p.getStartOffset(), Unhandled exception here (`BadLocationException`), for `getText()`. Also extra braces at end. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540415503 From tr at openjdk.org Wed Mar 27 03:43:21 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 27 Mar 2024 03:43:21 GMT Subject: RFR: 8328819: Remove applet usage from JFileChooser tests bug6698013 [v3] In-Reply-To: References: Message-ID: <3bcPS6k8G5yElWjzw4oMSmXwsNVlbsvmnAPsaTssaTY=.9984cab0-5971-4890-9023-57f0dbc21e1c@github.com> On Tue, 26 Mar 2024 22:41:45 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests >> The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update test instructions, move vars into subclass Marked as reviewed by tr (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18456#pullrequestreview-1962207372 From tr at openjdk.org Wed Mar 27 03:48:26 2024 From: tr at openjdk.org (Tejesh R) Date: Wed, 27 Mar 2024 03:48:26 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel In-Reply-To: References: Message-ID: On Tue, 19 Mar 2024 17:08:44 GMT, Alexey Ivanov wrote: > > > Yes, it's running in 21 and 22 as well, so we'll see what happens there. > > > > > > We got the following, once in jdk21u and once in jdk21u-dev on macintelx64 through the weekend: > > Thank you, Christoph! @RealCLanger. At least one failure is detected. It's better than nothing, isn't it? Definitely helpful. For these fixes - [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091), the only way to debug was with code walkthrough. This test will help a lot even its able to reproduce intermittently according to me, especially to build some confidence for the fix. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18109#issuecomment-2021869992 From abhiscxk at openjdk.org Wed Mar 27 05:13:24 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 27 Mar 2024 05:13:24 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v4] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 22:33:45 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > moved create ui code to helper, change test pass check, add mouse release, remove getContentPane test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 86: > 84: System.out.println("Created sub-directory: " + subDir); > 85: > 86: fileChooser = new JFileChooser(subDir); Not required here as you are initializing in `createAndShowUI` method. test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 137: > 135: clickBackSpace(); > 136: if (prevDir == crntDir) { > 137: passed_2 = true; This condition is not satisfied and hence the test failed in win11 machine. In linux machine, once the current directory is at `root` then pressing the backspace key doesn't have any effect. But looks like it is different in windows and mac. Checked in windows native explorer, once it reached to `home` folder, it toggles between `home` and `Desktop` on backspace key press. The condition checked here will never satisfy and `passed_2` variable remains false. So, either you can check the condition differently or may remove this check for windows and mac. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1540454288 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1540474274 From abhiscxk at openjdk.org Wed Mar 27 05:15:23 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Wed, 27 Mar 2024 05:15:23 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v4] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 03:33:57 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > fight.gif added Looks good now. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18448#pullrequestreview-1962305456 From jwaters at openjdk.org Wed Mar 27 06:38:57 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 06:38:57 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v62] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting in src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp Co-authored-by: Magnus Ihse Bursie ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/ef9f3a62..8ddb241d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=61 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=60-61 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Wed Mar 27 06:38:57 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 06:38:57 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v61] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: <3ihfagdM-3FjSwnzvgKRLX920MBdi2kqma03hQ7o_8o=.af6a99e1-dd80-48e3-b5e5-2a9a87b51801@github.com> On Tue, 26 Mar 2024 08:55:56 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request incrementally with two additional commits since the last revision: > > - Whitespace in awt_DnDDS.cpp > - Whitespace in awt_DnDDT.cpp Thanks, will assign the permissions. Though, I'll try to finish this myself so you don't have to- It seems like bad etiquette to make you fix something that I started. But all of this will still be meaningless if Phil doesn't return to this Pull Request any time soon :( ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2022058697 From jwaters at openjdk.org Wed Mar 27 06:41:43 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 06:41:43 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v46] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> <5WJnl6Z9RyYzZrDStf9p74gus07Stz6S6NHwVpGQO3M=.0a04a120-77b5-48c3-9ae8-7d37c9646463@github.com> <0zriWFk8mESin6eTDm4kH02213a8tTq5gEBx41NtZ8Y=.74965e93-6475-44ee-805b-73c477aede94@github.com> Message-ID: On Tue, 26 Mar 2024 20:03:36 GMT, Magnus Ihse Bursie wrote: >> I see the advantage of collapsing self and parent into the same check, but it doesn't seem like getting rid of pData is of much benefit, the checks for null seem to remain the same either way > >> Sorry, I don't see a BOOL error anywhere? > > I think Phil misplaced the code block marker -- the BOOL error line and below is supposed to be inside the second code block. > > What Phil is doing is trying to suggest two different approaches to make this code nicer, the first with a bit more duplication, and the second with an `error` boolean flag. And he says that he prefers the former, so the second were propably just mentioned to show an alternative for discussion. > > I think what you should do here is to combine the `self` and `parent` null checks as Phil suggests. And then replace all pData references to the final variable, here as well as everywhere pData is involved. Ah, I see. Alright, will do so ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15096#discussion_r1540550556 From jwaters at openjdk.org Wed Mar 27 06:46:08 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 06:46:08 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v63] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Circumvent pData in awt_Component.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/8ddb241d..da0c09b1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=62 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=61-62 Stats: 16 lines in 1 file changed: 0 ins; 11 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Wed Mar 27 07:05:17 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 07:05:17 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v64] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Circumvent pData in awt_Frame.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/da0c09b1..8f4d9e95 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=63 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=62-63 Stats: 7 lines in 1 file changed: 0 ins; 3 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Wed Mar 27 07:13:11 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 07:13:11 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v65] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Circumvent pData in awt_Window.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/8f4d9e95..c4f4e54b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=64 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=63-64 Stats: 4 lines in 1 file changed: 0 ins; 1 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From duke at openjdk.org Wed Mar 27 08:48:55 2024 From: duke at openjdk.org (rjolly) Date: Wed, 27 Mar 2024 08:48:55 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v5] In-Reply-To: References: Message-ID: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/15dcec91..5af3006b Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=03-04 Stats: 10 lines in 1 file changed: 5 ins; 0 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From ihse at openjdk.org Wed Mar 27 09:18:54 2024 From: ihse at openjdk.org (Magnus Ihse Bursie) Date: Wed, 27 Mar 2024 09:18:54 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v65] In-Reply-To: References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: On Wed, 27 Mar 2024 07:13:11 GMT, Julian Waters wrote: >> We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. > > Julian Waters has updated the pull request incrementally with one additional commit since the last revision: > > Circumvent pData in awt_Window.cpp Let's fix all the known problems first, and he'll return. (Otherwise I'll ping him in a different channel.) ------------- PR Comment: https://git.openjdk.org/jdk/pull/15096#issuecomment-2022278178 From jwaters at openjdk.org Wed Mar 27 10:17:01 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 10:17:01 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v66] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Circumvent pData in awt_Window.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/c4f4e54b..360894b5 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=65 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=64-65 Stats: 8 lines in 1 file changed: 0 ins; 2 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Wed Mar 27 10:25:09 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 10:25:09 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v67] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Circumvent pData in awt_Window.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/360894b5..6027b1df Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=66 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=65-66 Stats: 4 lines in 1 file changed: 0 ins; 1 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From jwaters at openjdk.org Wed Mar 27 10:31:12 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 10:31:12 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v68] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with two additional commits since the last revision: - Label to empty line in awt_Component.cpp - Label to empty line in awt_Canvas.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/6027b1df..45de8955 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=67 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=66-67 Stats: 2 lines in 2 files changed: 2 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From aivanov at openjdk.org Wed Mar 27 10:31:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 10:31:38 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v5] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 08:48:55 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. Changes requested by aivanov (Reviewer). test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 35: > 33: /* > 34: * @test > 35: * @key headless Suggestion: There's no *headless* key; only *headful* tests need to be marked specifically. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 37: > 35: * @key headless > 36: * @bug 8328953 > 37: * @summary JEditorPane.read throws ChangedCharSetException Suggestion: * @summary Verifies JEditorPane.read doesn't throw ChangedCharSetException but handles it and reads HTML in the specified encoding test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 47: > 45: "\n" + > 46: "\n" + > 47: " \n" + Suggestion: " \n" + test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 52: > 50: "\n"; > 51: > 52: public static void main() throws IOException { Suggestion: public static void main(String[] args) throws IOException, BadLocationException { The `main` function should be like this. In [my comment](https://github.com/openjdk/jdk/pull/17567#discussion_r1539063737), I referred to it as `main()` because typing all these in a comment is tedious. Yes, Java now allows `main` without arguments but this feature is not supported in previous versions of Java, and tests should not rely on this feature. Alternatively, you may use `throws Exception` to allow all kinds of exceptions. Using `throws Exception` is more common. I don't have a strong preference in this case. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 65: > 63: } catch (IOException e) { > 64: throw new RuntimeException(e); > 65: } Now that you added `throws IOException` to `main` declaration, you can allow it to escape to fail the test. Please do. Remove the try-catch block. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 78: > 76: } catch (BadLocationException e) { > 77: throw new RuntimeException(e); > 78: } Similarly, remove this try-catch block and allow `BadLocationException` to escape. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 82: > 80: > 81: private EditorPaneCharset() { > 82: } The constructor is not needed. It used it in my test, but now it's empty. ------------- PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1962874040 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540832221 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540834671 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540828514 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540814672 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540822881 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540824315 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540825793 From jwaters at openjdk.org Wed Mar 27 10:41:02 2024 From: jwaters at openjdk.org (Julian Waters) Date: Wed, 27 Mar 2024 10:41:02 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v69] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with one additional commit since the last revision: Revert formatting in awt_Window.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/45de8955..ee0297a6 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=68 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=67-68 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From duke at openjdk.org Wed Mar 27 10:43:55 2024 From: duke at openjdk.org (rjolly) Date: Wed, 27 Mar 2024 10:43:55 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v6] In-Reply-To: References: Message-ID: <3WeJJEfTmfzwrXx5SlanbJvVKiiJea9TQQHfPJAPByM=.84ead59c-805d-4f4f-b184-dbc403ce1642@github.com> > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/5af3006b..c09d4011 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=04-05 Stats: 27 lines in 1 file changed: 2 ins; 12 del; 13 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From aivanov at openjdk.org Wed Mar 27 10:53:25 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 10:53:25 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v6] In-Reply-To: <3WeJJEfTmfzwrXx5SlanbJvVKiiJea9TQQHfPJAPByM=.84ead59c-805d-4f4f-b184-dbc403ce1642@github.com> References: <3WeJJEfTmfzwrXx5SlanbJvVKiiJea9TQQHfPJAPByM=.84ead59c-805d-4f4f-b184-dbc403ce1642@github.com> Message-ID: On Wed, 27 Mar 2024 10:43:55 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. Other than a couple of nits, it looks good to me. I'll submit a test job to run all the tests with this fix and this test. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 48: > 46: "\n" + > 47: " 48: " content=\"text/html; charset=windows-1251\">\n" + Suggestion: " content="text/html; charset=windows-1251">\n" + I suggest moving it by one space to align to the start of the `http-equiv` attribute. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 57: > 55: editorPane.setContentType("text/html"); > 56: Document document = editorPane.getDocument(); > 57: // Shouldn't throw ChangedCharSetException Suggestion: Document document = editorPane.getDocument(); // Shouldn't throw ChangedCharSetException I'd add a blank line here too. It starts a new block which is the point of the test. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 68: > 66: Element p = body.getElement(0); > 67: String pText = document.getText(p.getStartOffset(), > 68: p.getEndOffset() - p.getStartOffset()); Suggestion: String pText = document.getText(p.getStartOffset(), p.getEndOffset() - p.getStartOffset()); Let's align the second argument to the opening parenthesis. ------------- PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1962948785 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540870025 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540872420 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1540872209 From duke at openjdk.org Wed Mar 27 13:22:41 2024 From: duke at openjdk.org (rjolly) Date: Wed, 27 Mar 2024 13:22:41 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v7] In-Reply-To: References: Message-ID: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/c09d4011..d13fcc6d Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=06 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=05-06 Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From honkar at openjdk.org Wed Mar 27 18:03:53 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 27 Mar 2024 18:03:53 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests Message-ID: Following tests are converted to main and open-sourced: - /java/awt/Frame/FrameDialogMixedTest.java- Converted to main/manual using PassFailJFrame. - /java/awt/Frame/MaximizeUndecoratedTest.java - Automated - /java/awt/Frame/MinimizeUndecoratedTest.java - Automated ------------- Commit messages: - spacing - Undecorated Frame tests added Changes: https://git.openjdk.org/jdk/pull/18523/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18523&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328753 Stats: 350 lines in 3 files changed: 350 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18523.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18523/head:pull/18523 PR: https://git.openjdk.org/jdk/pull/18523 From honkar at openjdk.org Wed Mar 27 18:20:59 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 27 Mar 2024 18:20:59 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests [v2] In-Reply-To: References: Message-ID: > Following tests are converted to main and open-sourced: > > - /java/awt/Frame/FrameDialogMixedTest.java- Converted to main/manual using PassFailJFrame. > - /java/awt/Frame/MaximizeUndecoratedTest.java - Automated > - /java/awt/Frame/MinimizeUndecoratedTest.java - Automated Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18523/files - new: https://git.openjdk.org/jdk/pull/18523/files/0347ed8a..ff15a9d8 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18523&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18523&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18523.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18523/head:pull/18523 PR: https://git.openjdk.org/jdk/pull/18523 From dnguyen at openjdk.org Wed Mar 27 18:44:29 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Wed, 27 Mar 2024 18:44:29 GMT Subject: RFR: 8329210: Delete Redundant Printer Dialog Modality Test Message-ID: test/jdk/java/awt/print/Dialog/PrintModalDialog.java is too similar in functionality to test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java. One test was originally for modality in web browsers, while the other was for modality in Windows OS printer dialogs, but after the updates, they both check for modality on print and page dialogs for all OSs. Since PrinterDialogsModalityTest.java is the preferred test, this is to remove PrintModalDialog.java as a test. In addition, the bugID in the jtreg tags from PrintModalDialog.java will be added to PrinterDialogsModalityTest.java's tags to maintain a link to its original bug. ------------- Commit messages: - Initial test deletion and jtreg tag adding Changes: https://git.openjdk.org/jdk/pull/18524/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18524&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8329210 Stats: 128 lines in 2 files changed: 0 ins; 127 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18524.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18524/head:pull/18524 PR: https://git.openjdk.org/jdk/pull/18524 From honkar at openjdk.org Wed Mar 27 18:52:21 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Wed, 27 Mar 2024 18:52:21 GMT Subject: RFR: 8329210: Delete Redundant Printer Dialog Modality Test In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 18:39:35 GMT, Damon Nguyen wrote: > test/jdk/java/awt/print/Dialog/PrintModalDialog.java is too similar in functionality to test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java. > > One test was originally for modality in web browsers, while the other was for modality in Windows OS printer dialogs, but after the updates, they both check for modality on print and page dialogs for all OSs. > > Since PrinterDialogsModalityTest.java is the preferred test, this is to remove PrintModalDialog.java as a test. In addition, the bugID in the jtreg tags from PrintModalDialog.java will be added to PrinterDialogsModalityTest.java's tags to maintain a link to its original bug. LGTM ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18524#pullrequestreview-1964435401 From achung at openjdk.org Wed Mar 27 19:21:26 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 27 Mar 2024 19:21:26 GMT Subject: Integrated: 8328227: Remove applet usage from JColorChooser tests Test4887836 In-Reply-To: References: Message-ID: On Thu, 14 Mar 2024 23:02:58 GMT, Alisen Chung wrote: > Removing applet usage from manual JColorChooser tests This pull request has now been integrated. Changeset: cc5b9c63 Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/cc5b9c63cbc1743e22f80dce51d803e267c60317 Stats: 66 lines in 2 files changed: 21 ins; 34 del; 11 mod 8328227: Remove applet usage from JColorChooser tests Test4887836 Reviewed-by: honkar, prr ------------- PR: https://git.openjdk.org/jdk/pull/18316 From achung at openjdk.org Wed Mar 27 19:22:26 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 27 Mar 2024 19:22:26 GMT Subject: Integrated: 8328819: Remove applet usage from JFileChooser tests bug6698013 In-Reply-To: References: Message-ID: On Fri, 22 Mar 2024 15:40:39 GMT, Alisen Chung wrote: > Removing applet usage from manual JFileChooser tests > The original test is failing (nothing shows up in the JFileChooser), but this change does replace the applet usage with PassFailJFrame This pull request has now been integrated. Changeset: e3588bba Author: Alisen Chung URL: https://git.openjdk.org/jdk/commit/e3588bba0451d7d505b0e22d014842110677041b Stats: 77 lines in 2 files changed: 20 ins; 39 del; 18 mod 8328819: Remove applet usage from JFileChooser tests bug6698013 Reviewed-by: honkar, tr, dnguyen ------------- PR: https://git.openjdk.org/jdk/pull/18456 From prr at openjdk.org Wed Mar 27 19:31:21 2024 From: prr at openjdk.org (Phil Race) Date: Wed, 27 Mar 2024 19:31:21 GMT Subject: RFR: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used In-Reply-To: References: Message-ID: <5DdAfdziZXwxqvTXiOL6eeU-FQK0z8fJsJYeXrnSYpU=.3e786bf8-a1b7-439d-b39d-2420f07f3ead@github.com> On Sat, 23 Mar 2024 08:11:00 GMT, Prasanta Sadhukhan wrote: > Should we also remove test/jdk/java/awt/Mouse/MouseModifiersUnitTest/ModifierPermutation.java which also does not have @test tag and added for same product fix JDK-6315717? Whilst the test in that file clearly needs some work, it (1) isn't related to Applets and (2) does appear to be actually related to the product fix. So I think deciding what to do with that is a separate question. We might want to fix it up and get it running in CI testing. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18440#issuecomment-2023803733 From aivanov at openjdk.org Wed Mar 27 20:08:45 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 20:08:45 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v7] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 13:22:41 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. Other than the comment below, it looks fine. Testing results are green. I'll run the tests once again after you update the code. test/jdk/javax/swing/JEditorPane/EditorPaneCharset.java line 69: > 67: Element p = body.getElement(0); > 68: String pText = document.getText(p.getStartOffset(), > 69: p.getEndOffset() - p.getStartOffset()); Suggestion: String pText = document.getText(p.getStartOffset(), p.getEndOffset() - p.getStartOffset() - 1); The test fails for me without `-1` because `pText` contains `\n`. It didn't fail when I tested it earlier. ------------- Changes requested by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1964625088 PR Review Comment: https://git.openjdk.org/jdk/pull/17567#discussion_r1541947624 From aivanov at openjdk.org Wed Mar 27 20:22:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 20:22:38 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: <6d2hOVnBZtRQHhxPoA6sHpdeIvH32SwJ0HZavVCP33E=.c6d37335-0420-467b-83aa-129abd47fd87@github.com> References: <6d2hOVnBZtRQHhxPoA6sHpdeIvH32SwJ0HZavVCP33E=.c6d37335-0420-467b-83aa-129abd47fd87@github.com> Message-ID: <2cuoh1-d70-IvJOpVIBJbBfMh8hAg-nYZpu-Do9p8hE=.e1f841a4-04b3-4fc4-a99f-679d63e464b7@github.com> On Fri, 22 Mar 2024 21:45:36 GMT, Alexey Ivanov wrote: >>>Instantiating JFileChooser on EDT adds complexity for no benefit. The JFileChooser is still accessed concurrently from several threads, including Swing internal thread. >> >> But still, this is a common requirement to create UI components on EDT, and that will replicate more or less how it will work in the application. > >> > Instantiating JFileChooser on EDT adds complexity for no benefit. The JFileChooser is still accessed concurrently from several threads, including Swing internal thread. >> >> But still, this is a common requirement to create UI components on EDT, and that will replicate more or less how it will work in the application. > > And it is a common requirement ***not** to call `fileChooser.rescanCurrentDirectory` concurrently* in 5 different threads. So it does not apply. In general, I agree all Swing components are to be created and accessed on EDT. However, there are cases where instantiating and testing is safe on main thread. It is when the component is not shown on the screen, its state does not depend on any events dispatched by the event queue. There are such tests in the JDK code base. I think this test is one of such cases where `JFileChooser` can be (safely) created on the current thread. The test does not display the file chooser, its state does not depend on receiving input events and handling them. Essentially, the test verifies that *the implementation of `JFileChooser.rescanCurrentDirectory` is thread-safe*. It wasn't. Two bugs were resolved to make the implementation thread-safe: [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1541975141 From aivanov at openjdk.org Wed Mar 27 21:35:37 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 21:35:37 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v13] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 09:27:10 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Updated instructions Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/ValidatePage/ValidatePage.java line 230: > 228: "left margins will be shrunk if they are too great for the adjusted \n" + > 229: "imageable area to fit at that position. They will shrink by the minimum\n" + > 230: "needed to accomodate the imageable area.\n \n \n" + Suggestion: "needed to accommodate the imageable area.\n \n \n" + Typo to fix. ------------- PR Review: https://git.openjdk.org/jdk/pull/17607#pullrequestreview-1920127795 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1542068572 From aivanov at openjdk.org Wed Mar 27 21:35:38 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 21:35:38 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v11] In-Reply-To: References: Message-ID: <3UK47CoJL-jIAUKc4hqCG3k1xTIMIWVvj6XLMLjJjCU=.e6c5f0cb-c2f2-42bc-9ce3-a45668294958@github.com> On Tue, 5 Mar 2024 12:22:56 GMT, Alexey Ivanov wrote: >> Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: >> >> Suggesions incorporated > > test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 69: > >> 67: if (pj.printDialog()) { >> 68: pj.print(); >> 69: } > > Fail the test if the user clicks Cancel in the print dialog? I still think the test should fail if the tester clicks Cancel in the print dialog. > test/jdk/java/awt/print/PrinterJob/ValidatePage/ValidatePage.java line 233: > >> 231: "needed to accomodate the imageable area.\n \n \n" + >> 232: "To test 6229507, put the minimum margins (all 0s) in Page Setup dialog.\n" + >> 233: "Compare Imageable width, height, and margins of portrait against landscape."); > > Suggestion: > > "When validating a page, the process is 1st to find the closest matching\n" + > "paper size, next to make sure the requested imageable area fits within\n" + > "the printer's imageable area for that paper size. Finally the top and\n" + > "left margins will be shrunk if they are too great for the adjusted\n" + > "imageable area to fit at that position. They will shrink by the minimum\n" + > "needed to accomodate the imageable area.\n\n\n" + > "To test 6229507, put the minimum margins (all 0s) in Page Setup dialog.\n" + > "Compare Imageable width, height, and margins of portrait against landscape."); > > The spaces at the end of lines are redundant. Spaces at the end of the line can be removed. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1542061869 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1542066476 From aivanov at openjdk.org Wed Mar 27 21:35:40 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Wed, 27 Mar 2024 21:35:40 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v12] In-Reply-To: <_-LKuql5zt3ZU24gZkc_06GN7xgqbIKl2ZHSP-HAbdg=.3bcdddfb-7f8a-4d8f-9ba8-35dffb9e10ee@github.com> References: <_-LKuql5zt3ZU24gZkc_06GN7xgqbIKl2ZHSP-HAbdg=.3bcdddfb-7f8a-4d8f-9ba8-35dffb9e10ee@github.com> Message-ID: <0mVvfXteO9-Anzr6qIQdcs9Y6kW_SmUfL4dhNZ17rT8=.3dce83ee-e1f7-4891-a906-36b8a68704b5@github.com> On Wed, 6 Mar 2024 05:08:08 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Added Override test/jdk/java/awt/print/PrinterJob/ValidatePage/ValidatePage.java line 90: > 88: case PageFormat.REVERSE_LANDSCAPE -> "REVERSE_LANDSCAPE"; > 89: default -> ""; > 90: })); You still have this code twice in this file. Create a helper method and re-use the functionality instead of having two identical copies, as [I suggested previously](https://github.com/openjdk/jdk/pull/17607#discussion_r1487928320). ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1514719472 From achung at openjdk.org Wed Mar 27 22:07:43 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 27 Mar 2024 22:07:43 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v5] In-Reply-To: References: Message-ID: > Removing applet usage from manual JFileChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: removed second pass check ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/5a05f64b..eb58531e Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=03-04 Stats: 17 lines in 1 file changed: 1 ins; 12 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From jjg at openjdk.org Wed Mar 27 22:08:57 2024 From: jjg at openjdk.org (Jonathan Gibbons) Date: Wed, 27 Mar 2024 22:08:57 GMT Subject: RFR: JDK-8303689: javac -Xlint could/should report on "dangling" doc comments Message-ID: Please review the updates to support a proposed new `-Xlint:dangling-doc-comments` option. The work can be thought of as in 3 parts: 1. An update to the `javac` internal class `DeferredLintHandler` so that it is possible to specify the appropriately configured `Lint` object when it is time to consider whether to generate the diagnostic or not. 2. Updates to the `javac` front end to record "dangling docs comments" found near the beginning of a declaration, and to report them using an instance of `DeferredLintHandler`. This allows the warnings to be enabled or disabled using the standard mechanisms for `-Xlint` and `@SuppressWarnings`. The procedure for handling dangling doc comments is described in this comment in `JavacParser`. * Dangling documentation comments are handled as follows. * 1. {@code Scanner} adds all doc comments to a queue of * recent doc comments. The queue is flushed whenever * it is known that the recent doc comments should be * ignored and should not cause any warnings. * 2. The primary documentation comment is the one obtained * from the first token of any declaration. * (using {@code token.getDocComment()}. * 3. At the end of the "signature" of the declaration * (that is, before any initialization or body for the * declaration) any other "recent" comments are saved * in a map using the primary comment as a key, * using this method, {@code saveDanglingComments}. * 4. When the tree node for the declaration is finally * available, and the primary comment, if any, * is "attached", (in {@link #attach}) any related * dangling comments are also attached to the tree node * by registering them using the {@link #deferredLintHandler}. * 5. (Later) Warnings may be genereated for the dangling * comments, subject to the {@code -Xlint} and * {@code @SuppressWarnings}. 3. Updates to the make files to disable the warnings in modules for which the warning is generated. This is often because of the confusing use of `/**` to create box or other standout comments. ------------- Commit messages: - JDK-8303689: javac -Xlint could/should report on "dangling" doc comments Changes: https://git.openjdk.org/jdk/pull/18527/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18527&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8303689 Stats: 477 lines in 60 files changed: 368 ins; 5 del; 104 mod Patch: https://git.openjdk.org/jdk/pull/18527.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18527/head:pull/18527 PR: https://git.openjdk.org/jdk/pull/18527 From prappo at openjdk.org Wed Mar 27 22:44:31 2024 From: prappo at openjdk.org (Pavel Rappo) Date: Wed, 27 Mar 2024 22:44:31 GMT Subject: RFR: JDK-8303689: javac -Xlint could/should report on "dangling" doc comments In-Reply-To: References: Message-ID: <7vkdZb7QDt106_k7_i7PrYzCYuEwTT-P2l4VxDOrNQk=.e98a3d16-8be0-4194-acd5-94eff555adce@github.com> On Wed, 27 Mar 2024 22:04:30 GMT, Jonathan Gibbons wrote: > Please review the updates to support a proposed new `-Xlint:dangling-doc-comments` option. > > The work can be thought of as in 3 parts: > > 1. An update to the `javac` internal class `DeferredLintHandler` so that it is possible to specify the appropriately configured `Lint` object when it is time to consider whether to generate the diagnostic or not. > > 2. Updates to the `javac` front end to record "dangling docs comments" found near the beginning of a declaration, and to report them using an instance of `DeferredLintHandler`. This allows the warnings to be enabled or disabled using the standard mechanisms for `-Xlint` and `@SuppressWarnings`. The procedure for handling dangling doc comments is described in this comment in `JavacParser`. > > * Dangling documentation comments are handled as follows. > * 1. {@code Scanner} adds all doc comments to a queue of > * recent doc comments. The queue is flushed whenever > * it is known that the recent doc comments should be > * ignored and should not cause any warnings. > * 2. The primary documentation comment is the one obtained > * from the first token of any declaration. > * (using {@code token.getDocComment()}. > * 3. At the end of the "signature" of the declaration > * (that is, before any initialization or body for the > * declaration) any other "recent" comments are saved > * in a map using the primary comment as a key, > * using this method, {@code saveDanglingComments}. > * 4. When the tree node for the declaration is finally > * available, and the primary comment, if any, > * is "attached", (in {@link #attach}) any related > * dangling comments are also attached to the tree node > * by registering them using the {@link #deferredLintHandler}. > * 5. (Later) Warnings may be genereated for the dangling > * comments, subject to the {@code -Xlint} and > * {@code @SuppressWarnings}. > > > 3. Updates to the make files to disable the warnings in modules for which the > warning is generated. This is often because of the confusing use of `/**` to > create box or other standout comments. Would this be the first lint -- not doclint -- warning related to comments, let alone doc comments? ------------- PR Comment: https://git.openjdk.org/jdk/pull/18527#issuecomment-2024106466 From prappo at openjdk.org Wed Mar 27 22:55:32 2024 From: prappo at openjdk.org (Pavel Rappo) Date: Wed, 27 Mar 2024 22:55:32 GMT Subject: RFR: JDK-8303689: javac -Xlint could/should report on "dangling" doc comments In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 22:04:30 GMT, Jonathan Gibbons wrote: > Please review the updates to support a proposed new `-Xlint:dangling-doc-comments` option. > > The work can be thought of as in 3 parts: > > 1. An update to the `javac` internal class `DeferredLintHandler` so that it is possible to specify the appropriately configured `Lint` object when it is time to consider whether to generate the diagnostic or not. > > 2. Updates to the `javac` front end to record "dangling docs comments" found near the beginning of a declaration, and to report them using an instance of `DeferredLintHandler`. This allows the warnings to be enabled or disabled using the standard mechanisms for `-Xlint` and `@SuppressWarnings`. The procedure for handling dangling doc comments is described in this comment in `JavacParser`. > > * Dangling documentation comments are handled as follows. > * 1. {@code Scanner} adds all doc comments to a queue of > * recent doc comments. The queue is flushed whenever > * it is known that the recent doc comments should be > * ignored and should not cause any warnings. > * 2. The primary documentation comment is the one obtained > * from the first token of any declaration. > * (using {@code token.getDocComment()}. > * 3. At the end of the "signature" of the declaration > * (that is, before any initialization or body for the > * declaration) any other "recent" comments are saved > * in a map using the primary comment as a key, > * using this method, {@code saveDanglingComments}. > * 4. When the tree node for the declaration is finally > * available, and the primary comment, if any, > * is "attached", (in {@link #attach}) any related > * dangling comments are also attached to the tree node > * by registering them using the {@link #deferredLintHandler}. > * 5. (Later) Warnings may be genereated for the dangling > * comments, subject to the {@code -Xlint} and > * {@code @SuppressWarnings}. > > > 3. Updates to the make files to disable the warnings in modules for which the > warning is generated. This is often because of the confusing use of `/**` to > create box or other standout comments. Javadoc changes look trivially good. I only note that the javadoc man page diff contains some unrelated changes. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18527#issuecomment-2024116236 From prappo at openjdk.org Wed Mar 27 22:59:34 2024 From: prappo at openjdk.org (Pavel Rappo) Date: Wed, 27 Mar 2024 22:59:34 GMT Subject: RFR: JDK-8303689: javac -Xlint could/should report on "dangling" doc comments In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 22:04:30 GMT, Jonathan Gibbons wrote: > Please review the updates to support a proposed new `-Xlint:dangling-doc-comments` option. > > The work can be thought of as in 3 parts: > > 1. An update to the `javac` internal class `DeferredLintHandler` so that it is possible to specify the appropriately configured `Lint` object when it is time to consider whether to generate the diagnostic or not. > > 2. Updates to the `javac` front end to record "dangling docs comments" found near the beginning of a declaration, and to report them using an instance of `DeferredLintHandler`. This allows the warnings to be enabled or disabled using the standard mechanisms for `-Xlint` and `@SuppressWarnings`. The procedure for handling dangling doc comments is described in this comment in `JavacParser`. > > * Dangling documentation comments are handled as follows. > * 1. {@code Scanner} adds all doc comments to a queue of > * recent doc comments. The queue is flushed whenever > * it is known that the recent doc comments should be > * ignored and should not cause any warnings. > * 2. The primary documentation comment is the one obtained > * from the first token of any declaration. > * (using {@code token.getDocComment()}. > * 3. At the end of the "signature" of the declaration > * (that is, before any initialization or body for the > * declaration) any other "recent" comments are saved > * in a map using the primary comment as a key, > * using this method, {@code saveDanglingComments}. > * 4. When the tree node for the declaration is finally > * available, and the primary comment, if any, > * is "attached", (in {@link #attach}) any related > * dangling comments are also attached to the tree node > * by registering them using the {@link #deferredLintHandler}. > * 5. (Later) Warnings may be genereated for the dangling > * comments, subject to the {@code -Xlint} and > * {@code @SuppressWarnings}. > > > 3. Updates to the make files to disable the warnings in modules for which the > warning is generated. This is often because of the confusing use of `/**` to > create box or other standout comments. src/jdk.javadoc/share/man/javadoc.1 line 111: > 109: source code with the \f[V]javac\f[R] option \f[V]-Xlint\f[R], or more > 110: specifically, \f[V]-Xlint:dangling-doc-comments\f[R]. > 111: Within a source file, you may use suppress any warnings generated by Typo? Suggestion: Within a source file, you may suppress any warnings generated by ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18527#discussion_r1542131487 From achung at openjdk.org Wed Mar 27 23:30:31 2024 From: achung at openjdk.org (Alisen Chung) Date: Wed, 27 Mar 2024 23:30:31 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v4] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 21:16:39 GMT, Phil Race wrote: > are you going to reduce the timeout as Alexander suggested ? I've lowered the timeout to 2 minutes ------------- PR Comment: https://git.openjdk.org/jdk/pull/18369#issuecomment-2024149068 From jjg at openjdk.org Wed Mar 27 23:47:32 2024 From: jjg at openjdk.org (Jonathan Gibbons) Date: Wed, 27 Mar 2024 23:47:32 GMT Subject: RFR: JDK-8303689: javac -Xlint could/should report on "dangling" doc comments In-Reply-To: <7vkdZb7QDt106_k7_i7PrYzCYuEwTT-P2l4VxDOrNQk=.e98a3d16-8be0-4194-acd5-94eff555adce@github.com> References: <7vkdZb7QDt106_k7_i7PrYzCYuEwTT-P2l4VxDOrNQk=.e98a3d16-8be0-4194-acd5-94eff555adce@github.com> Message-ID: On Wed, 27 Mar 2024 22:41:33 GMT, Pavel Rappo wrote: > Would this be the first lint -- not doclint -- warning related to comments, let alone doc comments? No. `-Xlint:dep-ann` correlates `@Deprecated` annotations with `@deprecated` tags in doc comments. > src/jdk.javadoc/share/man/javadoc.1 line 111: > >> 109: source code with the \f[V]javac\f[R] option \f[V]-Xlint\f[R], or more >> 110: specifically, \f[V]-Xlint:dangling-doc-comments\f[R]. >> 111: Within a source file, you may use suppress any warnings generated by > > Typo? > Suggestion: > > Within a source file, you may suppress any warnings generated by Thanks; I'll check the underlying original. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18527#issuecomment-2024162355 PR Review Comment: https://git.openjdk.org/jdk/pull/18527#discussion_r1542157047 From honkar at openjdk.org Thu Mar 28 00:23:32 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 28 Mar 2024 00:23:32 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v5] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 22:29:32 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > instruction string change Changes requested by honkar (Reviewer). test/jdk/javax/swing/JColorChooser/Test6977726.java line 51: > 49: .columns(40) > 50: .testTimeOut(2) > 51: .splitUIRight(Test6977726::createColorChooser) To avoid the empty white space in instruction panel, we could use .testUI() instead of .splitUI() Suggestion: .testUI(Test6977726::createColorChooser) test/jdk/javax/swing/JColorChooser/Test6977726.java line 57: > 55: > 56: private static JColorChooser createColorChooser() { > 57: JColorChooser chooser = new JColorChooser(); It is easy to miss the white colored text in Preview Panel. Can we change the default color to blue? Suggestion: JColorChooser chooser = new JColorChooser(Color.BLUE); ------------- PR Review: https://git.openjdk.org/jdk/pull/18369#pullrequestreview-1964958564 PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1542174702 PR Review Comment: https://git.openjdk.org/jdk/pull/18369#discussion_r1542174312 From honkar at openjdk.org Thu Mar 28 01:09:37 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 28 Mar 2024 01:09:37 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: References: Message-ID: On Sun, 24 Mar 2024 12:21:52 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with three additional commits since the last revision: > > - Images updated > - Frame position updates > - removed headful tag test/jdk/java/awt/Frame/FrameMaximizedTest.java line 37: > 35: > 36: public class FrameMaximizedTest { > 37: public static void main (String args[]) throws Exception { Java style array declaration Suggestion: public static void main (String[] args) throws Exception { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1540224863 From honkar at openjdk.org Thu Mar 28 01:09:38 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 28 Mar 2024 01:09:38 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v4] In-Reply-To: References: Message-ID: <99VWs9cjjiPHXJVMObjSUtLzxRdD_BuTJPIGGINjoSo=.bdb21b8f-bbe0-46bd-a447-45bff718f5b0@github.com> On Wed, 27 Mar 2024 03:33:57 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > fight.gif added test/jdk/java/awt/Frame/FrameMinimizeTest.java line 36: > 34: > 35: public class FrameMinimizeTest { > 36: public static void main(String args[]) throws Exception { Java style arrays ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1542195533 From honkar at openjdk.org Thu Mar 28 01:16:33 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Thu, 28 Mar 2024 01:16:33 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v4] In-Reply-To: References: Message-ID: <0Htkl8Q6MhsOuA45UqDLQKDcWLFCPM977ciPkiYFOX4=.25125ab9-1d8b-4148-a056-aca4d13827c6@github.com> On Wed, 27 Mar 2024 03:33:57 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > fight.gif added test/jdk/java/awt/Frame/SizeMinimizedTest.java line 48: > 46: continuously be logged, so you can verify its changes) > 47: 1. When the test starts, two frame windows will appear. > 48: Note the size of frame2. Window listeners can be used to check the initial and subsequent frame size and positions. This avoids asking the user to keep note of these details. It could be potentially be automated at this point, if it doesn't require much effort. frame2.addWindowListener(new WindowAdapter() { @Override public void windowOpened(WindowEvent e) { PassFailJFrame.log("Initial Frame Size: " + frame2.getSize()); PassFailJFrame.log("Initial Frame Location: " + frame2.getLocationOnScreen()); } }); frame2.addWindowStateListener(new WindowAdapter() { @Override public void windowStateChanged(WindowEvent e) { if (e.getNewState() == Frame.NORMAL) { PassFailJFrame.log("Frame Size: " + frame2.getSize()); PassFailJFrame.log("Frame Location: " + frame2.getLocationOnScreen()); } } }); ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1542198112 From jwaters at openjdk.org Thu Mar 28 07:36:04 2024 From: jwaters at openjdk.org (Julian Waters) Date: Thu, 28 Mar 2024 07:36:04 GMT Subject: RFR: 8307160: Fix AWT/2D/A11Y to support the permissive- flag on the Microsoft Visual C compiler [v70] In-Reply-To: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> References: <7piLRto5nNbhYYYfENCr5ecm4M2xNtMkjkE8XhrLLQ0=.8fd1ac3a-46f8-47a8-ae37-a4abbf7757d9@github.com> Message-ID: > We should set the -permissive- flag for the Microsoft Visual C compiler, as was requested by the now backed out [JDK-8241499](https://bugs.openjdk.org/browse/JDK-8241499). Doing so makes the Visual C compiler much less accepting of ill formed code, which will improve code quality on Windows in the future. Julian Waters has updated the pull request incrementally with four additional commits since the last revision: - Labels to empty line in awt_Window.cpp - Labels to empty line in awt_Window.cpp - Label to empty line in awt_Window.cpp - Label to empty line in awt_Window.cpp ------------- Changes: - all: https://git.openjdk.org/jdk/pull/15096/files - new: https://git.openjdk.org/jdk/pull/15096/files/ee0297a6..04e3cce1 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=69 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15096&range=68-69 Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/15096.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15096/head:pull/15096 PR: https://git.openjdk.org/jdk/pull/15096 From duke at openjdk.org Thu Mar 28 08:33:52 2024 From: duke at openjdk.org (rjolly) Date: Thu, 28 Mar 2024 08:33:52 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v8] In-Reply-To: References: Message-ID: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. rjolly has updated the pull request incrementally with one additional commit since the last revision: 8328953 : JEditorPane.read throws ChangedCharSetException The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17567/files - new: https://git.openjdk.org/jdk/pull/17567/files/d13fcc6d..69e5dedc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=07 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17567&range=06-07 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/17567.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17567/head:pull/17567 PR: https://git.openjdk.org/jdk/pull/17567 From aivanov at openjdk.org Thu Mar 28 12:56:34 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Thu, 28 Mar 2024 12:56:34 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v8] In-Reply-To: References: Message-ID: On Thu, 28 Mar 2024 08:33:52 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. The tests are green now. Thank you for your contribution. ------------- Marked as reviewed by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1966131189 From abhiscxk at openjdk.org Thu Mar 28 15:42:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Thu, 28 Mar 2024 15:42:32 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests [v2] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 18:20:59 GMT, Harshitha Onkar wrote: >> Following tests are converted to main and open-sourced: >> >> - /java/awt/Frame/FrameDialogMixedTest.java- Converted to main/manual using PassFailJFrame. >> - /java/awt/Frame/MaximizeUndecoratedTest.java - Automated >> - /java/awt/Frame/MinimizeUndecoratedTest.java - Automated > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > spacing LGTM. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18523#pullrequestreview-1966573209 From prr at openjdk.org Thu Mar 28 16:02:31 2024 From: prr at openjdk.org (Phil Race) Date: Thu, 28 Mar 2024 16:02:31 GMT Subject: RFR: 8329210: Delete Redundant Printer Dialog Modality Test In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 18:39:35 GMT, Damon Nguyen wrote: > test/jdk/java/awt/print/Dialog/PrintModalDialog.java is too similar in functionality to test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java. > > One test was originally for modality in web browsers, while the other was for modality in Windows OS printer dialogs, but after the updates, they both check for modality on print and page dialogs for all OSs. > > Since PrinterDialogsModalityTest.java is the preferred test, this is to remove PrintModalDialog.java as a test. In addition, the bugID in the jtreg tags from PrintModalDialog.java will be added to PrinterDialogsModalityTest.java's tags to maintain a link to its original bug. Marked as reviewed by prr (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18524#pullrequestreview-1966620085 From dnguyen at openjdk.org Thu Mar 28 16:16:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Thu, 28 Mar 2024 16:16:36 GMT Subject: Integrated: 8329210: Delete Redundant Printer Dialog Modality Test In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 18:39:35 GMT, Damon Nguyen wrote: > test/jdk/java/awt/print/Dialog/PrintModalDialog.java is too similar in functionality to test/jdk/java/awt/print/PrinterJob/PrinterDialogsModalityTest.java. > > One test was originally for modality in web browsers, while the other was for modality in Windows OS printer dialogs, but after the updates, they both check for modality on print and page dialogs for all OSs. > > Since PrinterDialogsModalityTest.java is the preferred test, this is to remove PrintModalDialog.java as a test. In addition, the bugID in the jtreg tags from PrintModalDialog.java will be added to PrinterDialogsModalityTest.java's tags to maintain a link to its original bug. This pull request has now been integrated. Changeset: 7ac2f914 Author: Damon Nguyen URL: https://git.openjdk.org/jdk/commit/7ac2f914aadf7fb12b7258e54efae959e15d6721 Stats: 128 lines in 2 files changed: 0 ins; 127 del; 1 mod 8329210: Delete Redundant Printer Dialog Modality Test Reviewed-by: honkar, prr ------------- PR: https://git.openjdk.org/jdk/pull/18524 From serb at openjdk.org Fri Mar 29 02:03:32 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Fri, 29 Mar 2024 02:03:32 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: <2cuoh1-d70-IvJOpVIBJbBfMh8hAg-nYZpu-Do9p8hE=.e1f841a4-04b3-4fc4-a99f-679d63e464b7@github.com> References: <6d2hOVnBZtRQHhxPoA6sHpdeIvH32SwJ0HZavVCP33E=.c6d37335-0420-467b-83aa-129abd47fd87@github.com> <2cuoh1-d70-IvJOpVIBJbBfMh8hAg-nYZpu-Do9p8hE=.e1f841a4-04b3-4fc4-a99f-679d63e464b7@github.com> Message-ID: On Wed, 27 Mar 2024 20:19:41 GMT, Alexey Ivanov wrote: > However, there are cases where instantiating and testing is safe on main thread. That is my point, make it less safe - when the component is created on one thread:EDT and then for some reason accessed on a different thread, the rescanCurrentDirectory should still work. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1543954407 From vromero at openjdk.org Fri Mar 29 03:07:32 2024 From: vromero at openjdk.org (Vicente Romero) Date: Fri, 29 Mar 2024 03:07:32 GMT Subject: RFR: JDK-8303689: javac -Xlint could/should report on "dangling" doc comments In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 22:04:30 GMT, Jonathan Gibbons wrote: > Please review the updates to support a proposed new `-Xlint:dangling-doc-comments` option. > > The work can be thought of as in 3 parts: > > 1. An update to the `javac` internal class `DeferredLintHandler` so that it is possible to specify the appropriately configured `Lint` object when it is time to consider whether to generate the diagnostic or not. > > 2. Updates to the `javac` front end to record "dangling docs comments" found near the beginning of a declaration, and to report them using an instance of `DeferredLintHandler`. This allows the warnings to be enabled or disabled using the standard mechanisms for `-Xlint` and `@SuppressWarnings`. The procedure for handling dangling doc comments is described in this comment in `JavacParser`. > > * Dangling documentation comments are handled as follows. > * 1. {@code Scanner} adds all doc comments to a queue of > * recent doc comments. The queue is flushed whenever > * it is known that the recent doc comments should be > * ignored and should not cause any warnings. > * 2. The primary documentation comment is the one obtained > * from the first token of any declaration. > * (using {@code token.getDocComment()}. > * 3. At the end of the "signature" of the declaration > * (that is, before any initialization or body for the > * declaration) any other "recent" comments are saved > * in a map using the primary comment as a key, > * using this method, {@code saveDanglingComments}. > * 4. When the tree node for the declaration is finally > * available, and the primary comment, if any, > * is "attached", (in {@link #attach}) any related > * dangling comments are also attached to the tree node > * by registering them using the {@link #deferredLintHandler}. > * 5. (Later) Warnings may be genereated for the dangling > * comments, subject to the {@code -Xlint} and > * {@code @SuppressWarnings}. > > > 3. Updates to the make files to disable the warnings in modules for which the > warning is generated. This is often because of the confusing use of `/**` to > create box or other standout comments. lgtm ------------- Marked as reviewed by vromero (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18527#pullrequestreview-1967750057 From achung at openjdk.org Fri Mar 29 04:40:55 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 29 Mar 2024 04:40:55 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v6] In-Reply-To: References: Message-ID: > Removing applet usage from manual JColorChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: update test from feedback ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18369/files - new: https://git.openjdk.org/jdk/pull/18369/files/ff6f5e51..dad92188 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18369&range=04-05 Stats: 3 lines in 1 file changed: 1 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18369.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18369/head:pull/18369 PR: https://git.openjdk.org/jdk/pull/18369 From tr at openjdk.org Fri Mar 29 04:43:36 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 29 Mar 2024 04:43:36 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException [v8] In-Reply-To: References: Message-ID: On Thu, 28 Mar 2024 08:33:52 GMT, rjolly wrote: >> ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. > > rjolly has updated the pull request incrementally with one additional commit since the last revision: > > 8328953 : JEditorPane.read throws ChangedCharSetException > > The fix is to add a nested `try`-block inside `try-with-resource`; all the exceptions are handled in the nested `try`; the outer `try`-with-resouces only closes the input stream. Looks good to me. ------------- Marked as reviewed by tr (Committer). PR Review: https://git.openjdk.org/jdk/pull/17567#pullrequestreview-1967820534 From dnguyen at openjdk.org Fri Mar 29 04:52:31 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 29 Mar 2024 04:52:31 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v5] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 22:07:43 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > removed second pass check Looks like the test needs a headful tag as well. Was this ran via CI? ------------- PR Review: https://git.openjdk.org/jdk/pull/18415#pullrequestreview-1967826689 From abhiscxk at openjdk.org Fri Mar 29 05:36:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 29 Mar 2024 05:36:32 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v5] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 22:07:43 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > removed second pass check test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 128: > 126: clickBackSpace(); > 127: if (prevDir != crntDir) { > 128: passed = true; `passed` variable looks redundant now. You can compare the `prevDir` and `crntDir` inside if condition and if they are same then test should fail. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1544062398 From abhiscxk at openjdk.org Fri Mar 29 05:51:39 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 29 Mar 2024 05:51:39 GMT Subject: RFR: 8075917: The regression-swing case failed as the text on label is not painted red with the GTK L&F [v5] In-Reply-To: References: <5eZ7a0HiqE3hghw3sT0L0Zn4Mi1FFfofz6hLGdLOsoc=.445b16ac-4d91-4538-92ba-a74f17781535@github.com> Message-ID: On Tue, 26 Mar 2024 07:38:58 GMT, Abhishek Kumar wrote: >> src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKStyle.java line 186: >> >>> 184: >>> 185: if (id == Region.LABEL && type == ColorType.FOREGROUND >>> 186: && (state & SynthConstants.ENABLED) != 0) { >> >> Doesn't `SynthConstants.DISABLED` need the same treatment? > > Yes, I am working on it to fix the disabled case. I extended the fix for disabled state in GlyphView's paint method to honor the user defined LAF color if at all it is set. But `open/test/jdk/javax/swing/text/html/Test4783068.java` test failed in CI, associated bug [JDK-4783068](https://bugs.openjdk.org/browse/JDK-4783068) says that `Components with HTML text should gray out the text when disabled`. Now the question is "Should we handle the disabled HTML text" ? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17763#discussion_r1544096587 From achung at openjdk.org Fri Mar 29 06:07:49 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 29 Mar 2024 06:07:49 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v6] In-Reply-To: References: Message-ID: <3KqJ2DWcVbc7MHBaVIxcBRYQagProebM47wbOzj5AD0=.eaa7c87d-915e-4344-98f6-db245eb4ea58@github.com> > Removing applet usage from manual JFileChooser tests Alisen Chung 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 seven additional commits since the last revision: - Merge branch 'master' of https://github.com/openjdk/jdk into 2024_spring_testsprint_8 - removed second pass check - moved create ui code to helper, change test pass check, add mouse release, remove getContentPane - change to automatic test - force fail - remove extra dialog - init commit ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/eb58531e..0de40f87 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=04-05 Stats: 353493 lines in 2818 files changed: 17195 ins; 12263 del; 324035 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From achung at openjdk.org Fri Mar 29 07:15:42 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 29 Mar 2024 07:15:42 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v7] In-Reply-To: References: Message-ID: <4B8QcHlTBMwjc6CMBjVheGZ63fYPQ3aKJwjjgbvR3sQ=.f4653ade-ba11-4893-958a-6628b2572b05@github.com> > Removing applet usage from manual JFileChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: added headful tag, remove pass boolean var and directly evaluate pass condition ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/0de40f87..29486a10 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=06 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=05-06 Stats: 6 lines in 1 file changed: 1 ins; 4 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From psadhukhan at openjdk.org Fri Mar 29 07:24:33 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 29 Mar 2024 07:24:33 GMT Subject: RFR: 8328561: test java/awt/Robot/ManualInstructions/ManualInstructions.java isn't used In-Reply-To: References: Message-ID: <4R9xnrr_lWINxF-47X39jD1jhP2-GCZ5a2SCZeX_Dc8=.0db73a5d-590c-4e39-8464-5261f933420e@github.com> On Thu, 21 Mar 2024 20:00:48 GMT, Phil Race wrote: > I don't know why this file is checked in. It has no @test tag and doesn't do anything. I am deleting it. ok ------------- Marked as reviewed by psadhukhan (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18440#pullrequestreview-1968005195 From psadhukhan at openjdk.org Fri Mar 29 07:25:51 2024 From: psadhukhan at openjdk.org (Prasanta Sadhukhan) Date: Fri, 29 Mar 2024 07:25:51 GMT Subject: RFR: 8328541: Remove or update obsolete comment in JRootPane Message-ID: There is an old obsolete comment in JRootPane that is between the main documentation comment for the class and the declaration of the class itself which is causing interference with the work to support Markdown in documentation comments using the `///` style of comment. (JEP 467) so removing this comment.. ------------- Commit messages: - 8328541: Remove or update obsolete comment in JRootPane Changes: https://git.openjdk.org/jdk/pull/18545/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18545&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8328541 Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18545.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18545/head:pull/18545 PR: https://git.openjdk.org/jdk/pull/18545 From abhiscxk at openjdk.org Fri Mar 29 08:13:33 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 29 Mar 2024 08:13:33 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v7] In-Reply-To: <4B8QcHlTBMwjc6CMBjVheGZ63fYPQ3aKJwjjgbvR3sQ=.f4653ade-ba11-4893-958a-6628b2572b05@github.com> References: <4B8QcHlTBMwjc6CMBjVheGZ63fYPQ3aKJwjjgbvR3sQ=.f4653ade-ba11-4893-958a-6628b2572b05@github.com> Message-ID: On Fri, 29 Mar 2024 07:15:42 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > added headful tag, remove pass boolean var and directly evaluate pass condition test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 52: > 50: private static Robot robot; > 51: private static File testDir; > 52: private static File subDir; `testDir` can be declared as local variable. Probably `subDir` also can be moved as local variable provided you create JFileChooser instance with default directory and then set current directory inside main method after createAndShowUI method call. something like this.. `SwingUtilities.invokeAndWait(() -> { createAndShowUI(); fileChooser.setCurrentDirectory(subDir); });` test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 117: > 115: SwingUtilities.invokeAndWait(() -> { > 116: p = frame.getLocationOnScreen(); > 117: May remove extra blank line. test/jdk/javax/swing/JFileChooser/4150029/bug4150029.java line 128: > 126: clickBackSpace(); > 127: > 128: if (!(prevDir != crntDir)) { simplified condition - Suggestion: if (prevDir == crntDir) { ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1544203362 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1544213542 PR Review Comment: https://git.openjdk.org/jdk/pull/18415#discussion_r1544212323 From tr at openjdk.org Fri Mar 29 09:49:54 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 29 Mar 2024 09:49:54 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v5] In-Reply-To: References: Message-ID: > Convert and open source these manual applet test to main based: > java/awt/Frame/MegaIconTest/MegaIconTest.html > java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html > java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html > java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html Tejesh R has updated the pull request incrementally with one additional commit since the last revision: Reveiw updates and SizeMinimizedTest converted to auto test ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18448/files - new: https://git.openjdk.org/jdk/pull/18448/files/656fdc94..20517050 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18448&range=03-04 Stats: 105 lines in 4 files changed: 45 ins; 22 del; 38 mod Patch: https://git.openjdk.org/jdk/pull/18448.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18448/head:pull/18448 PR: https://git.openjdk.org/jdk/pull/18448 From aivanov at openjdk.org Fri Mar 29 09:57:33 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 09:57:33 GMT Subject: RFR: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: <1MOJPinRAWnrKr4DWeXfV_cUxzU2cHUprU9_xS1xl7k=.202cadfb-75fc-4216-be18-e7a590ebb0ca@github.com> Message-ID: On Mon, 18 Mar 2024 09:04:05 GMT, rjolly wrote: >> @rjolly Thank you for your contribution. Could you provide more details about the issue? The PR needs to be linked to a JBS issue. I'll create one for you after I get a more detailed description of the problem from you. >> >> A test case is also welcome. And it's needed a regression test for the change anyway, if it's not hard to create. I believe a test case can be written for this issue. > > Hi @aivanov-jdk , thanks for your response. Is there a place where I can put my non-regression test? Thanks! @rjolly You've got two approvals now. You can issue the [`/integrate`](https://wiki.openjdk.org/display/SKARA/Pull+Request+Commands#PullRequestCommands-/integrate) command to integrate your fix into the JDK. ------------- PR Comment: https://git.openjdk.org/jdk/pull/17567#issuecomment-2026980130 From tr at openjdk.org Fri Mar 29 10:03:35 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 29 Mar 2024 10:03:35 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: References: Message-ID: On Tue, 26 Mar 2024 23:16:04 GMT, Harshitha Onkar wrote: >> Tejesh R has updated the pull request incrementally with three additional commits since the last revision: >> >> - Images updated >> - Frame position updates >> - removed headful tag > > test/jdk/java/awt/Frame/FrameMaximizedTest.java line 37: > >> 35: >> 36: public class FrameMaximizedTest { >> 37: public static void main (String args[]) throws Exception { > > Java style array declaration > Suggestion: > > public static void main (String[] args) throws Exception { Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544311632 From tr at openjdk.org Fri Mar 29 10:03:36 2024 From: tr at openjdk.org (Tejesh R) Date: Fri, 29 Mar 2024 10:03:36 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v4] In-Reply-To: <99VWs9cjjiPHXJVMObjSUtLzxRdD_BuTJPIGGINjoSo=.bdb21b8f-bbe0-46bd-a447-45bff718f5b0@github.com> References: <99VWs9cjjiPHXJVMObjSUtLzxRdD_BuTJPIGGINjoSo=.bdb21b8f-bbe0-46bd-a447-45bff718f5b0@github.com> Message-ID: On Thu, 28 Mar 2024 01:06:32 GMT, Harshitha Onkar wrote: >> Tejesh R has updated the pull request incrementally with one additional commit since the last revision: >> >> fight.gif added > > test/jdk/java/awt/Frame/FrameMinimizeTest.java line 36: > >> 34: >> 35: public class FrameMinimizeTest { >> 36: public static void main(String args[]) throws Exception { > > Java style arrays Updated. > test/jdk/java/awt/Frame/SizeMinimizedTest.java line 48: > >> 46: continuously be logged, so you can verify its changes) >> 47: 1. When the test starts, two frame windows will appear. >> 48: Note the size of frame2. > > Window listeners can be used to check the initial and subsequent frame size and positions. This avoids asking the user to keep note of these details. > > It could be potentially be automated at this point, if it doesn't require much effort. > > > > frame2.addWindowListener(new WindowAdapter() { > @Override > public void windowOpened(WindowEvent e) { > PassFailJFrame.log("Initial Frame Size: " + frame2.getSize()); > PassFailJFrame.log("Initial Frame Location: " + frame2.getLocationOnScreen()); > } > }); > frame2.addWindowStateListener(new WindowAdapter() { > @Override > public void windowStateChanged(WindowEvent e) { > if (e.getNewState() == Frame.NORMAL) { > PassFailJFrame.log("Frame Size: " + frame2.getSize()); > PassFailJFrame.log("Frame Location: " + frame2.getLocationOnScreen()); > } > } > }); Yeah, was able to automate the test. Thank you for the suggestion. In linux the test fails intermittently though, might be linked to the issue [JDK-8305915](https://bugs.openjdk.org/browse/JDK-8305915) so have problem listed, which I have update the description. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544311780 PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544313163 From duke at openjdk.org Fri Mar 29 10:09:38 2024 From: duke at openjdk.org (rjolly) Date: Fri, 29 Mar 2024 10:09:38 GMT Subject: Integrated: 8328953 : JEditorPane.read throws ChangedCharSetException In-Reply-To: References: Message-ID: On Thu, 25 Jan 2024 11:11:47 GMT, rjolly wrote: > ChangedCharSetException is used to amend the charset during read according to html directives. Currently it causes immediate exit of the method which in turn causes failure to load html documents with charset directives (even if the latter must not change after all). This PR restores the catch operation as it was before the use of try with resources. This pull request has now been integrated. Changeset: 245514da Author: Raphael Jolly Committer: Alexey Ivanov URL: https://git.openjdk.org/jdk/commit/245514da51ef77757f530317e079a3f58370a0be Stats: 118 lines in 2 files changed: 92 ins; 16 del; 10 mod 8328953: JEditorPane.read throws ChangedCharSetException Reviewed-by: tr, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/17567 From aivanov at openjdk.org Fri Mar 29 12:49:39 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 12:49:39 GMT Subject: RFR: 8329320: Simplify awt/print/PageFormat/NullPaper.java test Message-ID: <0CQ06Dw6Uwa9Z2lLfqFhdAWxWVLiYJs-EoziVLODxlw=.0133d820-1a13-4813-bc20-c9358fcbc58c@github.com> Remove all the leftovers of the _"standard instructions" machinery_ from the `NullPaper.java` test. The test code consists of two lines now: concise and clear. ------------- Commit messages: - Remove redudant comment; add blank line - 8329320: Simplify awt/print/PageFormat/NullPaper.java test Changes: https://git.openjdk.org/jdk/pull/18547/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18547&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8329320 Stats: 177 lines in 1 file changed: 6 ins; 155 del; 16 mod Patch: https://git.openjdk.org/jdk/pull/18547.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18547/head:pull/18547 PR: https://git.openjdk.org/jdk/pull/18547 From aivanov at openjdk.org Fri Mar 29 13:09:31 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 13:09:31 GMT Subject: RFR: 8328541: Remove or update obsolete comment in JRootPane In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 07:21:17 GMT, Prasanta Sadhukhan wrote: > There is an old obsolete comment in JRootPane that is between the main documentation comment for the class and the declaration of the class itself which is causing interference with the work to support Markdown in documentation comments using the `///` style of comment. (JEP 467) so removing this comment.. Marked as reviewed by aivanov (Reviewer). src/java.desktop/share/classes/javax/swing/JRootPane.java line 1: > 1: /* You may still want to update the copyright year. ------------- PR Review: https://git.openjdk.org/jdk/pull/18545#pullrequestreview-1968489517 PR Review Comment: https://git.openjdk.org/jdk/pull/18545#discussion_r1544480358 From abhiscxk at openjdk.org Fri Mar 29 13:49:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 29 Mar 2024 13:49:32 GMT Subject: RFR: 8328541: Remove or update obsolete comment in JRootPane In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 07:21:17 GMT, Prasanta Sadhukhan wrote: > There is an old obsolete comment in JRootPane that is between the main documentation comment for the class and the declaration of the class itself which is causing interference with the work to support Markdown in documentation comments using the `///` style of comment. (JEP 467) so removing this comment.. Marked as reviewed by abhiscxk (Committer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18545#pullrequestreview-1968587598 From achung at openjdk.org Fri Mar 29 14:37:42 2024 From: achung at openjdk.org (Alisen Chung) Date: Fri, 29 Mar 2024 14:37:42 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v8] In-Reply-To: References: Message-ID: > Removing applet usage from manual JFileChooser tests Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: move var into local, simplified condition check, spacing ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18415/files - new: https://git.openjdk.org/jdk/pull/18415/files/29486a10..ed8ed220 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=07 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18415&range=06-07 Stats: 8 lines in 1 file changed: 1 ins; 3 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/18415.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18415/head:pull/18415 PR: https://git.openjdk.org/jdk/pull/18415 From dnguyen at openjdk.org Fri Mar 29 16:43:36 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 29 Mar 2024 16:43:36 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests [v2] In-Reply-To: References: Message-ID: On Wed, 27 Mar 2024 18:20:59 GMT, Harshitha Onkar wrote: >> Following tests are converted to main and open-sourced: >> >> - /java/awt/Frame/FrameDialogMixedTest.java- Converted to main/manual using PassFailJFrame. >> - /java/awt/Frame/MaximizeUndecoratedTest.java - Automated >> - /java/awt/Frame/MinimizeUndecoratedTest.java - Automated > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > spacing test/jdk/java/awt/Frame/MaximizeUndecoratedTest.java line 127: > 125: } catch (IOException e) { > 126: e.printStackTrace(); > 127: } Is it best to just print the stack trace when a screenshot fails? Or is it better to throw a new runtime error? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18523#discussion_r1544683152 From abhiscxk at openjdk.org Fri Mar 29 16:46:32 2024 From: abhiscxk at openjdk.org (Abhishek Kumar) Date: Fri, 29 Mar 2024 16:46:32 GMT Subject: RFR: 8328648: Remove applet usage from JFileChooser tests bug4150029 [v8] In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 14:37:42 GMT, Alisen Chung wrote: >> Removing applet usage from manual JFileChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > move var into local, simplified condition check, spacing Looks good now. Only point is "should we move this test outside folder as html file is deleted now?". Hope you have tested in CI for all platform. ------------- Marked as reviewed by abhiscxk (Committer). PR Review: https://git.openjdk.org/jdk/pull/18415#pullrequestreview-1969011787 From prr at openjdk.org Fri Mar 29 17:28:54 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 29 Mar 2024 17:28:54 GMT Subject: RFR: 8329337: Problem list BufferStrategyExceptionTest.java on Windows Message-ID: Problem list a test which is failing in CI ------------- Commit messages: - 8329337 Changes: https://git.openjdk.org/jdk/pull/18552/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18552&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8329337 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18552.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18552/head:pull/18552 PR: https://git.openjdk.org/jdk/pull/18552 From honkar at openjdk.org Fri Mar 29 17:29:09 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 29 Mar 2024 17:29:09 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests [v3] In-Reply-To: References: Message-ID: > Following tests are converted to main and open-sourced: > > - /java/awt/Frame/FrameDialogMixedTest.java- Converted to main/manual using PassFailJFrame. > - /java/awt/Frame/MaximizeUndecoratedTest.java - Automated > - /java/awt/Frame/MinimizeUndecoratedTest.java - Automated Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: RuntimeException thrown ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18523/files - new: https://git.openjdk.org/jdk/pull/18523/files/ff15a9d8..9c2b2939 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18523&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18523&range=01-02 Stats: 2 lines in 2 files changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18523.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18523/head:pull/18523 PR: https://git.openjdk.org/jdk/pull/18523 From honkar at openjdk.org Fri Mar 29 17:29:09 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 29 Mar 2024 17:29:09 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests [v2] In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 16:41:13 GMT, Damon Nguyen wrote: >> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: >> >> spacing > > test/jdk/java/awt/Frame/MaximizeUndecoratedTest.java line 127: > >> 125: } catch (IOException e) { >> 126: e.printStackTrace(); >> 127: } > > Is it best to just print the stack trace when a screenshot fails? Or is it better to throw a new runtime error? It is better to re-throw it as RuntimeException. Updated. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18523#discussion_r1544715093 From dnguyen at openjdk.org Fri Mar 29 17:31:34 2024 From: dnguyen at openjdk.org (Damon Nguyen) Date: Fri, 29 Mar 2024 17:31:34 GMT Subject: RFR: JDK-8328753 : Open source few Undecorated Frame tests [v3] In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 17:29:09 GMT, Harshitha Onkar wrote: >> Following tests are converted to main and open-sourced: >> >> - /java/awt/Frame/FrameDialogMixedTest.java- Converted to main/manual using PassFailJFrame. >> - /java/awt/Frame/MaximizeUndecoratedTest.java - Automated >> - /java/awt/Frame/MinimizeUndecoratedTest.java - Automated > > Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision: > > RuntimeException thrown Tested and looks OK. Automated tests pass on macOS and behave as expected. ------------- Marked as reviewed by dnguyen (Committer). PR Review: https://git.openjdk.org/jdk/pull/18523#pullrequestreview-1969136521 From aivanov at openjdk.org Fri Mar 29 17:35:42 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 17:35:42 GMT Subject: RFR: 8326734: text-decoration applied to lost when mixed with or Message-ID: The value of the [`text-decoration`](https://www.w3.org/TR/REC-CSS1/#text-decoration) CSS property is not inherited correctly in Swing. If the `` element is mixed with `` or ``, only the value from the `style` attribute of `` is applied. The fix to this issue is not as simple as that for the previous one in PR #17659, [JDK-8323801](https://bugs.openjdk.org/browse/JDK-8323801). Even in the seemingly simple case where `` is followed by ``, the situation is more complex because the styles are stored in `MuxingAttributeSet` in different elements of the array. To resolve this problem, `CSS.Attribute.TEXT_DECORATION` is treated as a special case. Indeed, it is a special case: the values set to a single `text-decoration` property should be combined across the entire tree of nested HTML elements and their styles. So, `MuxingAttributeSet` looks for `text-decoration` in the entire array and combines all the values. The same way, `StyleSheet` also goes up the inheritance chain by combining the current value of `text-decoration` with that from `getResolveParent`. The `ConvertSpanAction` combines the value of `text-decoration` of adjacent `` elements. Finally, `ConvertAction` and `CharacterAction` are refactored. The `ConvertAction` class duplicated the code from `CharacterAction`. Now `ConvertAction` extends `CharacterAction` and overrides a method to provide additional handling. Thus, [JDK-8325620](https://bugs.openjdk.org/browse/JDK-8325620) is also resolved by this PR, the action used for ``, ``, `` is `CharacterAction` as specified. ------------- Commit messages: - Remove trailing whitespace in text block - Add test cases where followed by or - Add missing 'return null' for !TEXT_DECORATION - Remove trailing whitespace in text block - Rename ConvertSpan to ConvertSpanAction - Convert only if both new and previous decorations aren't 'none' - Refactor ConvertAction: extend CharacterAction to avoid code duplication - Simplify ConvertSpan - Optimize imports in StyleSheet - Update copyright year - ... and 7 more: https://git.openjdk.org/jdk/compare/89e0889a...e9cf30b3 Changes: https://git.openjdk.org/jdk/pull/18550/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18550&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8326734 Stats: 330 lines in 5 files changed: 275 ins; 32 del; 23 mod Patch: https://git.openjdk.org/jdk/pull/18550.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18550/head:pull/18550 PR: https://git.openjdk.org/jdk/pull/18550 From dcubed at openjdk.org Fri Mar 29 17:50:32 2024 From: dcubed at openjdk.org (Daniel D. Daugherty) Date: Fri, 29 Mar 2024 17:50:32 GMT Subject: RFR: 8329337: Problem list BufferStrategyExceptionTest.java on Windows In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 17:24:27 GMT, Phil Race wrote: > Problem list a test which is failing in CI Thumbs up. This is a trivial fix. ------------- Marked as reviewed by dcubed (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18552#pullrequestreview-1969186125 From aivanov at openjdk.org Fri Mar 29 17:53:30 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 17:53:30 GMT Subject: RFR: 8329337: Problem list BufferStrategyExceptionTest.java on Windows In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 17:24:27 GMT, Phil Race wrote: > Problem list a test which is failing in CI Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18552#pullrequestreview-1969192957 From honkar at openjdk.org Fri Mar 29 18:05:35 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 29 Mar 2024 18:05:35 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v5] In-Reply-To: References: Message-ID: <58u8WoxBOGloYA7EXLkn3VtW1do4EFn8Yt5rgMAYjX0=.ebf40f6e-846b-4302-aea2-d8c8a7a6821b@github.com> On Fri, 29 Mar 2024 09:49:54 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html >> >> Automated the test SizeMinimizedTest.java. Since the test is failing Linux arch (Maybe related to the bug - [JDK-8305915](https://bugs.openjdk.org/browse/JDK-8305915)), the test is problem listed for Linux arch until the issue is fixed/further investigation is done. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Reveiw updates and SizeMinimizedTest converted to auto test Changes requested by honkar (Reviewer). test/jdk/java/awt/Frame/SizeMinimizedTest.java line 39: > 37: * @key headful > 38: * @bug 4065534 > 39: * @summary Frame.setSize() doesn't change size if window is in an iconified state The main objective of the original test is missing with the current updated test. The test is to check whether Frame.setSize() works when Frame is in iconified state. Currently the test checks frame size and location when in Normal state. ------------- PR Review: https://git.openjdk.org/jdk/pull/18448#pullrequestreview-1969214770 PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544736765 From prr at openjdk.org Fri Mar 29 18:10:35 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 29 Mar 2024 18:10:35 GMT Subject: Integrated: 8329337: Problem list BufferStrategyExceptionTest.java on Windows In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 17:24:27 GMT, Phil Race wrote: > Problem list a test which is failing in CI This pull request has now been integrated. Changeset: 20cb6e78 Author: Phil Race URL: https://git.openjdk.org/jdk/commit/20cb6e786fbf6d924c509e28d6fded86d61a5f84 Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod 8329337: Problem list BufferStrategyExceptionTest.java on Windows Reviewed-by: dcubed, aivanov ------------- PR: https://git.openjdk.org/jdk/pull/18552 From honkar at openjdk.org Fri Mar 29 18:48:32 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 29 Mar 2024 18:48:32 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v5] In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 09:49:54 GMT, Tejesh R wrote: >> Convert and open source these manual applet test to main based: >> java/awt/Frame/MegaIconTest/MegaIconTest.html >> java/awt/Frame/FrameMaximizedTest/FrameMaximizedTest.html >> java/awt/Frame/FrameMinimizeTest/FrameMinimizeTest.html >> java/awt/Frame/SizeMinimizedTest/SizeMinimizedTest.html >> >> Automated the test SizeMinimizedTest.java. Since the test is failing Linux arch (Maybe related to the bug - [JDK-8305915](https://bugs.openjdk.org/browse/JDK-8305915)), the test is problem listed for Linux arch until the issue is fixed/further investigation is done. > > Tejesh R has updated the pull request incrementally with one additional commit since the last revision: > > Reveiw updates and SizeMinimizedTest converted to auto test Changes requested by honkar (Reviewer). test/jdk/java/awt/Frame/MegaIconTest/MegaIconTest.java line 58: > 56: String INSTRUCTIONS = """ > 57: Each of the buttons in the main window represents a test > 58: of certain icon functionality - transparency/opacity, scaling etc. The instructions would be more clear if stated as - **background transparency/opacity of the icon**. test/jdk/java/awt/Frame/MegaIconTest/MegaIconTest.java line 194: > 192: setLayout(new BorderLayout()); > 193: > 194: //Add the icon graphic and instructions to the Frame The background transparency of different gifs can be checked by setting the background of the Frame to a different color. For instance `setBackground(Color.YELLOW)` here and in the original test. Adding a different background color instead of white makes it easier for the tester to compare the different types of icon. ------------- PR Review: https://git.openjdk.org/jdk/pull/18448#pullrequestreview-1969318862 PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544765763 PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544761418 From honkar at openjdk.org Fri Mar 29 18:48:33 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 29 Mar 2024 18:48:33 GMT Subject: RFR: 8328482: Convert and Open source few manual applet test to main based [v3] In-Reply-To: References: <2-p_eBzRl8-4ySpcKqginStUCxYkAiwXl5V1reP4U-w=.44afc483-cd4f-4712-a567-27e18323d814@github.com> <1992auBhw5Hjt_wfBcPe21bnsizooxn3TcWoCddI_gk=.b388017f-0dcf-4198-8ac1-55ec7b147081@github.com> Message-ID: On Wed, 27 Mar 2024 03:31:00 GMT, Tejesh R wrote: >> Probably waiting for me to OK it off-line. I've now done so. > > Pushed it now. Does the test mean opaque icon background by "opaque icon"? If yes, then should we use one .gif with opaque background and another with transparent background. Currently both gif files - **dukeWave.gif and fight.gif**, have transparent backgrounds. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18448#discussion_r1544758085 From aivanov at openjdk.org Fri Mar 29 19:08:33 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 19:08:33 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v13] In-Reply-To: References: Message-ID: <3QNdSU2J2p3l_Am4vtKQoqml_5whRJNs-1b4f26X11c=.5f63a147-9df6-4291-8c7b-c46429517f72@github.com> On Tue, 19 Mar 2024 09:24:35 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Updated PassFailJFrame object creation Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/Collate2DPrintingTest.java line 24: > 22: */ > 23: > 24: import java.awt.Frame; Suggestion: `Frame` is no longer used. test/jdk/java/awt/print/PrinterJob/InvalidPage.java line 25: > 23: > 24: import java.awt.Color; > 25: import java.awt.Frame; Suggestion: Frame is no longer used. test/jdk/java/awt/print/PrinterJob/JobName/PrinterJobName.java line 51: > 49: } > 50: > 51: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() Suggestion: PassFailJFrame passFailJFrame = PassFailJFrame.builder() You have to use the `builder()` method. ------------- PR Review: https://git.openjdk.org/jdk/pull/17608#pullrequestreview-1969360561 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1544773033 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1544786464 PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1544792178 From aivanov at openjdk.org Fri Mar 29 19:08:34 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 19:08:34 GMT Subject: RFR: 8324807 : Manual printer tests have no Pass/Fail buttons, instructions close set 2 [v10] In-Reply-To: <-3Z3D3ZejKBGJxG_3x26fcoUx2MzUa4vQejYWFRo1-I=.29bf2730-c42a-4f37-a4ad-b14ca74fc025@github.com> References: <3EjlqyLzNCZxo6F1YSOs2zRrNxO5QTIQxkuY27Y3Ro4=.f13abdf7-f15f-44fc-9068-15f3ccda0958@github.com> <-3Z3D3ZejKBGJxG_3x26fcoUx2MzUa4vQejYWFRo1-I=.29bf2730-c42a-4f37-a4ad-b14ca74fc025@github.com> Message-ID: On Tue, 5 Mar 2024 13:15:04 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/DrawImage.java line 93: > >> 91: if (pj.printDialog()) { >> 92: pj.print(); >> 93: } > > Fail the test if the tester clicks Cancel in the print dialog? I still think the test should fail if Cancel is clicked in the Print dialog. The test does not provide an option to do it again. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17608#discussion_r1544776413 From aivanov at openjdk.org Fri Mar 29 19:27:33 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 19:27:33 GMT Subject: RFR: 8324808 : Manual printer tests have no Pass/Fail buttons, instructions close set 3 [v12] In-Reply-To: References: Message-ID: <0dp-QhjrLYBlIE1UyiI9zmn04RT7du7OYg2HBllYlZE=.931da52c-68bc-4a32-8696-4624bed776fa@github.com> On Thu, 7 Mar 2024 07:13:02 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Updated instructions Marked as reviewed by aivanov (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/17609#pullrequestreview-1969461581 From aivanov at openjdk.org Fri Mar 29 19:33:36 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 19:33:36 GMT Subject: RFR: 8320676 : Manual printer tests have no Pass/Fail buttons, instructions close set 1 [v13] In-Reply-To: References: Message-ID: On Thu, 7 Mar 2024 09:27:10 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 your suggestions. >> >> Regards, >> Renjith > > Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision: > > Updated instructions Changes requested by aivanov (Reviewer). test/jdk/java/awt/print/PrinterJob/PrintAllFonts.java line 62: > 60: } > 61: > 62: PassFailJFrame passFailJFrame = new PassFailJFrame.Builder() Suggestion: PassFailJFrame passFailJFrame = PassFailJFrame.builder() You have to use the `builder()` method, otherwise the test will fail to compile after integration. See PR #18206 for [JDK-8325851](https://bugs.openjdk.org/browse/JDK-8325851). ------------- PR Review: https://git.openjdk.org/jdk/pull/17607#pullrequestreview-1969477088 PR Review Comment: https://git.openjdk.org/jdk/pull/17607#discussion_r1544807647 From aivanov at openjdk.org Fri Mar 29 20:06:32 2024 From: aivanov at openjdk.org (Alexey Ivanov) Date: Fri, 29 Mar 2024 20:06:32 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: <6d2hOVnBZtRQHhxPoA6sHpdeIvH32SwJ0HZavVCP33E=.c6d37335-0420-467b-83aa-129abd47fd87@github.com> <2cuoh1-d70-IvJOpVIBJbBfMh8hAg-nYZpu-Do9p8hE=.e1f841a4-04b3-4fc4-a99f-679d63e464b7@github.com> Message-ID: On Fri, 29 Mar 2024 02:00:18 GMT, Sergey Bylokhov wrote: > > However, there are cases where instantiating and testing is safe on main thread. > > That is my point, make it less safe - when the component is created on one thread:EDT and then for some reason accessed on a different thread, the rescanCurrentDirectory should still work. I got your idea! However, I still see no benefit for doing it. Yes, when `JFileChooser` is instantiated, it creates its UI delegates and the default model, `BasicDirectoryModel`. The constructor of the model calls `validateFileCache` which starts the background thread and will update `fileCache`. It does not make the initialisation less thread-safe: the same two threads are involved ? `FilesLoader` and EDT. Yet there's no race yet? The `ConcurrentModificationException` is thrown when the background `FilesLoader` is iterating over `fileCache` while EDT runs `DoChangeContents.run` which adds elements to `fileCache` or removes elements from it. By the time the `Scanner` threads start, a race becomes possible. If the initial `FilesLoader` completes and posts the `DoChangeContents` object to EDT, the `FilesLoader` threads created by the scanners will race? but `fileCache` is empty initially, thus iterating over it is very quick. Therefore getting `ConcurrentModificationException` is unlikely until `fileCache` contains a list of files. This state is reached later in the timeline of the test. The initial `FilesLoader` thread that's started when `JFileChooser` is instantiated plays a role too? Yet it's running concurrently with the `Scanner` threads whether the `JFileChooser` object is created on the current thread or on EDT. --- Taking the above into account, instantiating `JFileChooser` on EDT adds complexity to the test but brings no benefits. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1544825191 From djelinski at openjdk.org Fri Mar 29 21:09:57 2024 From: djelinski at openjdk.org (Daniel =?UTF-8?B?SmVsacWEc2tp?=) Date: Fri, 29 Mar 2024 21:09:57 GMT Subject: RFR: 8329340: Remove unused libawt code Message-ID: Please review this PR that removes unused functions, variables, and WM_AWT window messages. The unused code was detected by automated analysis (MSVC compiler and linker, CodeQL analyzer). I manually verified every symbol before removing. Mach5 client libs testing clean. Some WM_AWT messages have different IDs after this change. The IDs have changed a few times before, so I think this shouldn't be a problem. ------------- Commit messages: - Remove unused variables - Remove OLEHolder - Remove EnvHolder - Remove jFontToWFontA - Remove awtIEClazz - Remove DumpRegion - Remove IsSupportedLevel - Remove GDIWinSD_SimpleClip - Remove GDIWinSD_CheckMonitorArea - Remove SetHeapCheck - ... and 10 more: https://git.openjdk.org/jdk/compare/7ac2f914...cbf7bbd3 Changes: https://git.openjdk.org/jdk/pull/18553/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18553&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8329340 Stats: 711 lines in 23 files changed: 0 ins; 709 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/18553.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18553/head:pull/18553 PR: https://git.openjdk.org/jdk/pull/18553 From prr at openjdk.org Fri Mar 29 21:53:40 2024 From: prr at openjdk.org (Phil Race) Date: Fri, 29 Mar 2024 21:53:40 GMT Subject: RFR: 8329340: Remove unused libawt code In-Reply-To: References: Message-ID: <2km6y_QLwbgfzwsJ6tyYMJ6VLyO8pxTABAWPFMEzo48=.915dd7d5-cdbb-4003-8a46-799e8dbafc52@github.com> On Fri, 29 Mar 2024 18:23:27 GMT, Daniel Jeli?ski wrote: > Please review this PR that removes unused functions, variables, and WM_AWT window messages. > > The unused code was detected by automated analysis (MSVC compiler and linker, CodeQL analyzer). I manually verified every symbol before removing. Mach5 client libs testing clean. > > Some WM_AWT messages have different IDs after this change. The IDs have changed a few times before, so I think this shouldn't be a problem. About the WM_AWT messages, how did these tools you mention figure out no message of that name / ID is ever created ? I presume that's what you must have done to decide it is OK to remove the handling of these messages. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18553#issuecomment-2027769180 From manc at openjdk.org Fri Mar 29 23:05:53 2024 From: manc at openjdk.org (Man Cao) Date: Fri, 29 Mar 2024 23:05:53 GMT Subject: RFR: 8329352: Remove dead code in splashscreen_sys.c Message-ID: Hi all, Could anyone review this trivial change to remove dead code in splashscreen_sys.c? -Man ------------- Commit messages: - 8329352: Remove dead code in splashscreen_sys.c Changes: https://git.openjdk.org/jdk/pull/18556/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18556&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8329352 Stats: 29 lines in 1 file changed: 0 ins; 29 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/18556.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18556/head:pull/18556 PR: https://git.openjdk.org/jdk/pull/18556 From honkar at openjdk.org Fri Mar 29 23:59:32 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Fri, 29 Mar 2024 23:59:32 GMT Subject: RFR: 8328403: Remove applet usage from JColorChooser tests Test6977726 [v6] In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 04:40:55 GMT, Alisen Chung wrote: >> Removing applet usage from manual JColorChooser tests > > Alisen Chung has updated the pull request incrementally with one additional commit since the last revision: > > update test from feedback LGTM ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18369#pullrequestreview-1969691001 From honkar at openjdk.org Sat Mar 30 00:03:30 2024 From: honkar at openjdk.org (Harshitha Onkar) Date: Sat, 30 Mar 2024 00:03:30 GMT Subject: RFR: 8329320: Simplify awt/print/PageFormat/NullPaper.java test In-Reply-To: <0CQ06Dw6Uwa9Z2lLfqFhdAWxWVLiYJs-EoziVLODxlw=.0133d820-1a13-4813-bc20-c9358fcbc58c@github.com> References: <0CQ06Dw6Uwa9Z2lLfqFhdAWxWVLiYJs-EoziVLODxlw=.0133d820-1a13-4813-bc20-c9358fcbc58c@github.com> Message-ID: On Fri, 29 Mar 2024 12:45:36 GMT, Alexey Ivanov wrote: > Remove all the leftovers of the _"standard instructions" machinery_ from the `NullPaper.java` test. > > The test code consists of two lines now: concise and clear. LGTM. ------------- Marked as reviewed by honkar (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18547#pullrequestreview-1969691839 From jiefu at openjdk.org Sat Mar 30 02:45:30 2024 From: jiefu at openjdk.org (Jie Fu) Date: Sat, 30 Mar 2024 02:45:30 GMT Subject: RFR: 8329352: Remove dead code in splashscreen_sys.c In-Reply-To: References: Message-ID: On Fri, 29 Mar 2024 23:00:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this trivial change to remove dead code in splashscreen_sys.c? > > -Man LGTM Shall we also update the copyright year? ------------- Marked as reviewed by jiefu (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/18556#pullrequestreview-1969730062 From manc at openjdk.org Sat Mar 30 02:56:58 2024 From: manc at openjdk.org (Man Cao) Date: Sat, 30 Mar 2024 02:56:58 GMT Subject: RFR: 8329352: Remove dead code in splashscreen_sys.c [v2] In-Reply-To: References: Message-ID: > Hi all, > > Could anyone review this trivial change to remove dead code in splashscreen_sys.c? > > -Man Man Cao has updated the pull request incrementally with one additional commit since the last revision: Update copyright year ------------- Changes: - all: https://git.openjdk.org/jdk/pull/18556/files - new: https://git.openjdk.org/jdk/pull/18556/files/d7c512b1..6b555e96 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=18556&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18556&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/18556.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/18556/head:pull/18556 PR: https://git.openjdk.org/jdk/pull/18556 From manc at openjdk.org Sat Mar 30 02:56:58 2024 From: manc at openjdk.org (Man Cao) Date: Sat, 30 Mar 2024 02:56:58 GMT Subject: RFR: 8329352: Remove dead code in splashscreen_sys.c In-Reply-To: References: Message-ID: <98jQ2ZipC2SQ-VFv8WQwCXjXERYZBy5NfYWNUuTOjqM=.4883d2e5-9e46-4c89-86cd-e0df14afcffe@github.com> On Fri, 29 Mar 2024 23:00:56 GMT, Man Cao wrote: > Hi all, > > Could anyone review this trivial change to remove dead code in splashscreen_sys.c? > > -Man Thanks, updated copyright year. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18556#issuecomment-2027889334 From jiefu at openjdk.org Sat Mar 30 03:13:33 2024 From: jiefu at openjdk.org (Jie Fu) Date: Sat, 30 Mar 2024 03:13:33 GMT Subject: RFR: 8329352: Remove dead code in splashscreen_sys.c [v2] In-Reply-To: References: Message-ID: On Sat, 30 Mar 2024 02:56:58 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this trivial change to remove dead code in splashscreen_sys.c? >> >> -Man > > Man Cao has updated the pull request incrementally with one additional commit since the last revision: > > Update copyright year Marked as reviewed by jiefu (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18556#pullrequestreview-1969733161 From djelinski at openjdk.org Sat Mar 30 08:37:30 2024 From: djelinski at openjdk.org (Daniel =?UTF-8?B?SmVsacWEc2tp?=) Date: Sat, 30 Mar 2024 08:37:30 GMT Subject: RFR: 8329340: Remove unused libawt code In-Reply-To: <2km6y_QLwbgfzwsJ6tyYMJ6VLyO8pxTABAWPFMEzo48=.915dd7d5-cdbb-4003-8a46-799e8dbafc52@github.com> References: <2km6y_QLwbgfzwsJ6tyYMJ6VLyO8pxTABAWPFMEzo48=.915dd7d5-cdbb-4003-8a46-799e8dbafc52@github.com> Message-ID: On Fri, 29 Mar 2024 21:51:25 GMT, Phil Race wrote: > About the WM_AWT messages, how did these tools you mention figure out no message of that name / ID is ever created ? I presume that's what you must have done to decide it is OK to remove the handling of these messages. Well, that part was actually me. The linker reported that `AwtObject::WinThreadExec` was unused; while removing it, I found that `WM_AWT_EXECUTE_SYNC` is no longer needed, so I removed it as well. Then I figured that there may be other left over WM_AWT messages, so I checked the entire enum in awtmsg.h. I removed every enum constant that was never used outside of the WIN_MSG macro or a case label. I checked the history for some of the messages; WM_AWT_FORWARD_BYTE was last used before e4f977c0a1663dd71aa19019d55b07d87ad667e2, and the last use of WM_AWT_SHOWCURSOR / WM_AWT_HIDECURSOR was removed in e4c9db984fe1a3a9d06fb60e333e92df3b165454. WM_AWT_SET_SCROLL_INFO was not used anywhere in git history. The other removed enums aren't used anywhere. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18553#issuecomment-2027971998 From alexsch at openjdk.org Sat Mar 30 18:31:34 2024 From: alexsch at openjdk.org (Alexander Scherbatiy) Date: Sat, 30 Mar 2024 18:31:34 GMT Subject: RFR: 8314070: javax.print: Support IPP output-bin attribute extension [v5] In-Reply-To: <8gavB4YcAInb0RiAoUsusYfbXxJgHizxZ0WMvbDUNOg=.ada34789-cc69-4474-918c-6ec8f50f3111@github.com> References: <1IZMIOuXSec2PYnGvp5rTDBFDatCsAh1lcZOhwTR2oM=.058bb44a-b228-41af-99fc-de0f602370fb@github.com> <8gavB4YcAInb0RiAoUsusYfbXxJgHizxZ0WMvbDUNOg=.ada34789-cc69-4474-918c-6ec8f50f3111@github.com> Message-ID: On Fri, 2 Feb 2024 17:38:00 GMT, Alexander Scherbatiy wrote: > This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! ------------- PR Comment: https://git.openjdk.org/jdk/pull/16166#issuecomment-2028433717 From prr at openjdk.org Sat Mar 30 21:20:31 2024 From: prr at openjdk.org (Phil Race) Date: Sat, 30 Mar 2024 21:20:31 GMT Subject: RFR: 8329352: Remove dead code in splashscreen_sys.c [v2] In-Reply-To: References: Message-ID: On Sat, 30 Mar 2024 02:56:58 GMT, Man Cao wrote: >> Hi all, >> >> Could anyone review this trivial change to remove dead code in splashscreen_sys.c? >> >> -Man > > Man Cao has updated the pull request incrementally with one additional commit since the last revision: > > Update copyright year /Reviewers 2 src/java.desktop/unix/native/libsplashscreen/splashscreen_sys.c line 393: > 391: pthread_mutex_init(&splash->lock, NULL); > 392: > 393: // We should not ignore any errors. The 2nd commented out call looks like it might have been doing something better than the default handler, but not by so much as to matter. The comment seems a bit inappropriate now and I'm puzzled why we need to reinstall the default handler (ie the call taking NULL), since we haven't installed a non-default handler anyway. I'd be inclined to remove the comment and the call. ------------- PR Comment: https://git.openjdk.org/jdk/pull/18556#issuecomment-2028470907 PR Review Comment: https://git.openjdk.org/jdk/pull/18556#discussion_r1545497667 From serb at openjdk.org Sun Mar 31 22:42:34 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Sun, 31 Mar 2024 22:42:34 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: Message-ID: On Fri, 15 Mar 2024 14:45:36 GMT, Alexey Ivanov wrote: >> I'm adding a regression test for [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8323670) and [JDK-8307091](https://bugs.openjdk.org/browse/JDK-8307091); it's also a regression test for [JDK-8240690](https://bugs.openjdk.org/browse/JDK-8240690). >> >> I referenced this test in PR #17462 in [this comment](https://github.com/openjdk/jdk/pull/17462#issuecomment-1914844026). I fine-tuned the test since that time. >> >> The test doesn't fail all the time without the fix for JDK-8323670, however, it fails sometimes. If you run the test several times, it will likely fail _without the fix_. >> >> For me, the test fails about 10 times from 40 runs in the CI. It fails on macOS more frequently than on Linux. >> >> When the test passes, it usually completes in 5 minutes. >> >> **How the test works** >> >> The test creates a temporary directory in the current directory and creates a number of files in it. (The number of files is controlled by `NUMBER_OF_THREADS` constant). Then the test creates `JFileChooser` in the temporary directory. >> >> The test starts several _scanner_ threads, the number is controlled by `NUMBER_OF_THREADS`, which repeatedly call `fileChooser.rescanCurrentDirectory()`. This results in calling `BasicDirectoryModel.validateFileCache` which starts a background thread ? "Basic L&F File Loading Thread" ? to enumerate the files. >> >> A timer is used to create new files in the directory that the file chooser is using. >> >> After enumerating the files, the File Loading Thread posts an event to EDT. The event updates `fileCache` and fires a `ListDataEvent`. >> >> If the File Loading Thread is iterating over `fileCache` using `Iterator` (when `fileCache.subList` or `fileCache.equals` is running; or a new `Vector` instance is created from a `fileCache` or its sublist) and `fileCache` is being updated on EDT, then `ConcurrentModificationException` is thrown. >> >> On Linux and on _headless_ macOS, `ShellFolder.invoke` is executed in the caller, which makes it easier to reproduce the issue. Because of [JDK-8325179](https://bugs.openjdk.org/browse/JDK-8325179), there are several File Loading Threads, which also helps to reproduce the issue. >> >> On _headful_ macOS, the `BasicDirectoryModel` is not used, so the test does not reproduce the issue. >> >> On Windows, the test does not fail or fails with `OutOfMemoryError`. It is because all the File Loading Threads are serialised on the COM thread, `ShellFolder.invoke` submits the task to the COM thread and waits for i... > > Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision: > > Suppress throwing exceptions while deleting files Marked as reviewed by serb (Reviewer). ------------- PR Review: https://git.openjdk.org/jdk/pull/18109#pullrequestreview-1970499628 From serb at openjdk.org Sun Mar 31 22:42:35 2024 From: serb at openjdk.org (Sergey Bylokhov) Date: Sun, 31 Mar 2024 22:42:35 GMT Subject: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel [v3] In-Reply-To: References: <6d2hOVnBZtRQHhxPoA6sHpdeIvH32SwJ0HZavVCP33E=.c6d37335-0420-467b-83aa-129abd47fd87@github.com> <2cuoh1-d70-IvJOpVIBJbBfMh8hAg-nYZpu-Do9p8hE=.e1f841a4-04b3-4fc4-a99f-679d63e464b7@github.com> Message-ID: On Fri, 29 Mar 2024 20:02:53 GMT, Alexey Ivanov wrote: >>> However, there are cases where instantiating and testing is safe on main thread. >> >> That is my point, make it less safe - when the component is created on one thread:EDT and then for some reason accessed on a different thread, the rescanCurrentDirectory should still work. > >> > However, there are cases where instantiating and testing is safe on main thread. >> >> That is my point, make it less safe - when the component is created on one thread:EDT and then for some reason accessed on a different thread, the rescanCurrentDirectory should still work. > > I got your idea! > > However, I still see no benefit for doing it. > > Yes, when `JFileChooser` is instantiated, it creates its UI delegates and the default model, `BasicDirectoryModel`. The constructor of the model calls `validateFileCache` which starts the background thread and will update `fileCache`. > > It does not make the initialisation less thread-safe: the same two threads are involved ? `FilesLoader` and EDT. Yet there's no race yet? > > The `ConcurrentModificationException` is thrown when the background `FilesLoader` is iterating over `fileCache` while EDT runs `DoChangeContents.run` which adds elements to `fileCache` or removes elements from it. > > By the time the `Scanner` threads start, a race becomes possible. If the initial `FilesLoader` completes and posts the `DoChangeContents` object to EDT, the `FilesLoader` threads created by the scanners will race? but `fileCache` is empty initially, thus iterating over it is very quick. > > Therefore getting `ConcurrentModificationException` is unlikely until `fileCache` contains a list of files. This state is reached later in the timeline of the test. > > The initial `FilesLoader` thread that's started when `JFileChooser` is instantiated plays a role too? Yet it's running concurrently with the `Scanner` threads whether the `JFileChooser` object is created on the current thread or on EDT. > > --- > > Taking the above into account, instantiating `JFileChooser` on EDT adds complexity to the test but brings no benefits. ok, I agree with you. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18109#discussion_r1545858033