Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Harshitha Onkar
On Wed, 11 Jun 2025 05:08:29 GMT, Harshitha Onkar wrote: >> test/jdk/java/awt/Cursor/CursorDragTest/ListDragCursor.java line 52: >> >>> 50: pass the test. This test fails if the cursor updates >>> 51: when pointing over the different components before >>> 52:

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Harshitha Onkar
On Tue, 10 Jun 2025 00:42:21 GMT, Harshitha Onkar wrote: >> Damon Nguyen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update PL num. Clarify instructions. > > test/jdk/java/awt/Cursor/CursorDragTest/ListDragCursor.java line 52: > >>

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 22:23:32 GMT, Alexey Ivanov wrote: >> I have been looking at it and fiddling with the standalone >> (non-PassFailJFrame) test to see if I can re-create the behavior without >> `PassFailJFrame`. I suspected AWT components being the issue but I can't see >> why. >> >> I trie

Re: Backport Candidate: JDK-8332271/ JDK-8353950 (PR #24614)

2025-06-10 Thread Philip Race
It seems to me like a candidate based on being a recent 'regression' and the use case and potential impact. I just have not looked at or tested the code myself, and clipboard tests are at least in some part manual, so I don't know how well it has been tested. Did anyone run at least the automat

Re: RFR: 8055461: getNextID in ImageIcon class can lead to overflow

2025-06-10 Thread Prasanta Sadhukhan
On Tue, 10 Jun 2025 13:12:20 GMT, Alexey Ivanov wrote: > I think a better solution is to create a new `MediaTracker`, and start anew > with id of zero. > > The `TRACKER_KEY` is used only by `ImageIcon`, so it shouldn't break any apps. If we create a new MediaTracker in ImageIcon and start anew

[jdk25] Withdrawn: 8358452: JNI exception pending in Java_sun_awt_screencast_ScreencastHelper_remoteDesktopKeyImpl of screencast_pipewire.c:1214 (ID: 51119)

2025-06-10 Thread Renjith Kannath Pariyangad
On Tue, 10 Jun 2025 16:09:13 GMT, Renjith Kannath Pariyangad wrote: > Hi all, > > This pull request contains a backport of commit > [2103dc15](https://github.com/openjdk/jdk/commit/2103dc15cb662fd8795b1b51d9cb61c389bed7a0) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v4]

2025-06-10 Thread Sergey Bylokhov
On Wed, 11 Jun 2025 02:34:04 GMT, Anass Baya wrote: >> I still suggest this order. >> >> Also, please add the new bug ID to the GetGraphicsStressTest. >> btw I'm still looking into the new test - it always passes for me. Can we >> tweak it to reproduce the bug more reliably? > > I cant reproduc

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v4]

2025-06-10 Thread Anass Baya
On Wed, 11 Jun 2025 02:05:33 GMT, Sergey Bylokhov wrote: >> src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 2507: >> >>> 2505: // before our java peer - if we're dispose()d, for instance. >>> 2506: // Return the default screen. >>> 2507: JNI_CHECK_PEER_GOTO(self, r

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v6]

2025-06-10 Thread Anass Baya
> **Analysis:** > > We are encountering a race condition in the native code. While retrieving the > screen number by calling _getScreenImOn(), the window is disposed. As a > result, the AWT-Windows event loop processes the Dispose() call, which > triggers UnlinkObjects(). > The race condition b

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v4]

2025-06-10 Thread Sergey Bylokhov
On Tue, 10 Jun 2025 23:51:09 GMT, Sergey Bylokhov wrote: >> Anass Baya has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove global lock > > src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 2507: > >> 2505: // bef

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v4]

2025-06-10 Thread Anass Baya
On Tue, 10 Jun 2025 23:53:04 GMT, Sergey Bylokhov wrote: >> Anass Baya has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove global lock > > src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 2505: > >> 2503: >> 2504:

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v5]

2025-06-10 Thread Anass Baya
> **Analysis:** > > We are encountering a race condition in the native code. While retrieving the > screen number by calling _getScreenImOn(), the window is disposed. As a > result, the AWT-Windows event loop processes the Dispose() call, which > triggers UnlinkObjects(). > The race condition b

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v4]

2025-06-10 Thread Sergey Bylokhov
On Tue, 10 Jun 2025 22:17:13 GMT, Anass Baya wrote: >> **Analysis:** >> >> We are encountering a race condition in the native code. While retrieving >> the screen number by calling _getScreenImOn(), the window is disposed. As a >> result, the AWT-Windows event loop processes the Dispose() call

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v3]

2025-06-10 Thread Phil Race
On Tue, 10 Jun 2025 21:33:22 GMT, Kevin Rushforth wrote: > The following files still reference the now-removed applet classes and will > fail to compile. Are they not included in any tier testing? > > ``` > test/hotspot/jtreg/vmTestbase/jit/misctests/fpustack/GraphApplet.java > test/hotspot/jtre

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v4]

2025-06-10 Thread Kevin Rushforth
On Tue, 10 Jun 2025 22:44:16 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v4]

2025-06-10 Thread Phil Race
> This is the implementation of JEP 504 - Remove the Applet API. > API changes are > - Remove the entire java.applet package > - Remove the javax/swing/JApplet class > - Remove applet related APIs in java.beans > - Update javadoc referring to applets, including one gif image - now changed > to an

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 21:23:42 GMT, Damon Nguyen wrote: >> I guess it's not the first time that we've encountered such an issue where >> using `PassFailJFrame` changes the behaviour of the test. Was it >> @TejeshR13's test? >> >> I'm confused because `PassFailJFrame` does nothing more than provi

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v4]

2025-06-10 Thread Anass Baya
> **Analysis:** > > We are encountering a race condition in the native code. While retrieving the > screen number by calling _getScreenImOn(), the window is disposed. As a > result, the AWT-Windows event loop processes the Dispose() call, which > triggers UnlinkObjects(). > The race condition b

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v3]

2025-06-10 Thread Kevin Rushforth
On Tue, 10 Jun 2025 21:28:56 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring

Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v19]

2025-06-10 Thread Alisen Chung
> Some useful methods in ExtendedRobot should be migrated into Robot itself so > that ExtendedRobot can be removed in the future. The tests using > ExtendedRobot for these migrated methods are changed to use only Robot > (removing unnecessary building of ExtendedRobot). Alisen Chung has updated

Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v18]

2025-06-10 Thread Alisen Chung
On Mon, 24 Feb 2025 21:22:48 GMT, Alexander Zvegintsev wrote: >> Alisen Chung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> migrate type(char) method > > test/jdk/lib/client/ExtendedRobot.java line 368: > >> 366: * @see java

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v3]

2025-06-10 Thread Kevin Rushforth
On Tue, 10 Jun 2025 21:28:56 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring

Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v18]

2025-06-10 Thread Alisen Chung
> Some useful methods in ExtendedRobot should be migrated into Robot itself so > that ExtendedRobot can be removed in the future. The tests using > ExtendedRobot for these migrated methods are changed to use only Robot > (removing unnecessary building of ExtendedRobot). Alisen Chung has updated

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v3]

2025-06-10 Thread Sergey Bylokhov
On Tue, 10 Jun 2025 11:32:58 GMT, Anass Baya wrote: >> check how the _SetFocusableWindow is implemented below. > > Hello @mrserb, > >> I think the only thing you should do is to replace the usage of >> JNI_GET_PDATA by the JNI_CHECK_PEER_GOTO and add a label "ret" at the end so >> default valu

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Phil Race
On Tue, 10 Jun 2025 20:50:07 GMT, Alisen Chung wrote: >> Phil Race has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8359053 > > src/java.desktop/share/classes/java/awt/Polygon.java line 163: > >> 161: throw new NegativeArrayS

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v3]

2025-06-10 Thread Phil Race
> This is the implementation of JEP 504 - Remove the Applet API. > API changes are > - Remove the entire java.applet package > - Remove the javax/swing/JApplet class > - Remove applet related APIs in java.beans > - Update javadoc referring to applets, including one gif image - now changed > to an

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 21:14:38 GMT, Alexey Ivanov wrote: >> I have attached the standalone test to the issue. I tried altering how >> `ListDragCursor.java` creates the UI but it seems that no matter what I do, >> the cursor still updates after 1 second. I'm looking into what >> `PassFailJFrame`

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 21:17:46 GMT, Alexey Ivanov wrote: >> Currently, you problem-listing the test referencing the bug JDK-8359061, >> which is being fixed by this PR. Once you integrate it, JDK-8359061 will be >> resolved. Thus, the problem-list entry refers to the bug that's already >> resolv

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 21:10:09 GMT, Alexey Ivanov wrote: >> Should I update the issue number here to >> [7177297](https://bugs.openjdk.org/browse/JDK-7177297)? I'm not fully >> grasping the Skara bot's error message. > > Currently, you problem-listing the test referencing the bug JDK-8359061, >

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java [v2]

2025-06-10 Thread Damon Nguyen
> This change is to restore the original intent of the test by updating the > instructions to check that the type of Cursor is preserved when clicked and > dragged. Now the test correctly has instructions to check that an I-beam > cursor stays an I-beam until released over a List with its cursor

Re: RFR: 8150564: Migrate useful ExtendedRobot methods into awt.Robot [v17]

2025-06-10 Thread Alisen Chung
> Some useful methods in ExtendedRobot should be migrated into Robot itself so > that ExtendedRobot can be removed in the future. The tests using > ExtendedRobot for these migrated methods are changed to use only Robot > (removing unnecessary building of ExtendedRobot). Alisen Chung has updated

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 19:56:13 GMT, Damon Nguyen wrote: >> It seems like there's a bug with this test when using it in a >> `PassFailJFrame`. When I move the `createUI` logic into a standalone java >> class's main method and add `setVisible(true)`, the test works as expected >> for all OS's exce

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Phil Race
On Mon, 9 Jun 2025 21:48:59 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring t

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 19:35:45 GMT, Damon Nguyen wrote: >> Doesn't seem right either. There's a warning about this from the Skara bot. > > Should I update the issue number here to > [7177297](https://bugs.openjdk.org/browse/JDK-7177297)? I'm not fully > grasping the Skara bot's error message. Cu

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Alisen Chung
On Mon, 9 Jun 2025 21:48:59 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring t

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 19:32:51 GMT, Damon Nguyen wrote: >> Perhaps, the instructions need to be adjusted for each OS, or the test >> should be limited to a specific OS only. > > It seems like there's a bug with this test when using it in a > `PassFailJFrame`. When I move the `createUI` logic into

Backport Candidate: JDK-8332271/ JDK-8353950 (PR #24614)

2025-06-10 Thread Matthias Bläsing
Hello, I'd like to ask whether a backport of: https://github.com/openjdk/jdk/pull/24614 to the stabilisation branch of JDK-25 would have a chance to be accepted. The PR fixes two issues: JDK-8332271: Reading data from the clipboard from multiple threads crashes the JVM (P3) JDK-8353950: Clipbo

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 13:21:58 GMT, Alexey Ivanov wrote: >> test/jdk/ProblemList.txt line 837: >> >>> 835: java/awt/Menu/MenuVisibilityTest.java 8161110 macosx-all >>> 836: java/awt/Modal/NativeDialogToFrontBackTest.java 7188049 >>> windows-all,linux-all >>> 837: java/awt/Cursor/CursorDragTest/Li

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 13:19:40 GMT, Alexey Ivanov wrote: >> test/jdk/java/awt/Cursor/CursorDragTest/ListDragCursor.java line 52: >> >>> 50: pass the test. This test fails if the cursor updates >>> 51: when pointing over the different components before >>> 52:

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Damon Nguyen
On Tue, 10 Jun 2025 13:21:14 GMT, Alexey Ivanov wrote: >> This change is to restore the original intent of the test by updating the >> instructions to check that the type of Cursor is preserved when clicked and >> dragged. Now the test correctly has instructions to check that an I-beam >> curs

Re: RFR: 8354646: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text [v17]

2025-06-10 Thread duke
On Tue, 10 Jun 2025 16:22:52 GMT, Jeremy Wood wrote: >> Make sure AquaTextPasswordFieldUI can't use selectWordAction. >> >> The core problem here was we could call selectWordAction in the Aqua LAF on >> a JPasswordField. This problem was already solved in the >> BasicPasswordFieldUI . The same

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Phil Race
On Tue, 10 Jun 2025 11:41:15 GMT, Alexey Ivanov wrote: >> Since the code isn't conditionalised on applets, I don't think it should be >> changed as part of this PR > > Shall I submit a bug to consider removing this code? > > Without the comment and an issue to track it, no one will ever remembe

Re: [jdk25] RFR: 8358452: JNI exception pending in Java_sun_awt_screencast_ScreencastHelper_remoteDesktopKeyImpl of screencast_pipewire.c:1214 (ID: 51119)

2025-06-10 Thread Phil Race
On Tue, 10 Jun 2025 16:09:13 GMT, Renjith Kannath Pariyangad wrote: > Hi all, > > This pull request contains a backport of commit > [2103dc15](https://github.com/openjdk/jdk/commit/2103dc15cb662fd8795b1b51d9cb61c389bed7a0) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >

Re: RFR: 8354646: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text [v17]

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 16:22:52 GMT, Jeremy Wood wrote: >> Make sure AquaTextPasswordFieldUI can't use selectWordAction. >> >> The core problem here was we could call selectWordAction in the Aqua LAF on >> a JPasswordField. This problem was already solved in the >> BasicPasswordFieldUI . The same

Re: [jdk25] RFR: 8358452: JNI exception pending in Java_sun_awt_screencast_ScreencastHelper_remoteDesktopKeyImpl of screencast_pipewire.c:1214 (ID: 51119)

2025-06-10 Thread duke
On Tue, 10 Jun 2025 16:09:13 GMT, Renjith Kannath Pariyangad wrote: > Hi all, > > This pull request contains a backport of commit > [2103dc15](https://github.com/openjdk/jdk/commit/2103dc15cb662fd8795b1b51d9cb61c389bed7a0) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >

Re: [jdk25] RFR: 8358452: JNI exception pending in Java_sun_awt_screencast_ScreencastHelper_remoteDesktopKeyImpl of screencast_pipewire.c:1214 (ID: 51119)

2025-06-10 Thread Renjith Kannath Pariyangad
On Tue, 10 Jun 2025 16:20:58 GMT, Alexander Zvegintsev wrote: >> Hi all, >> >> This pull request contains a backport of commit >> [2103dc15](https://github.com/openjdk/jdk/commit/2103dc15cb662fd8795b1b51d9cb61c389bed7a0) >> from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >>

Re: [jdk25] RFR: 8358452: JNI exception pending in Java_sun_awt_screencast_ScreencastHelper_remoteDesktopKeyImpl of screencast_pipewire.c:1214 (ID: 51119)

2025-06-10 Thread Alexander Zvegintsev
On Tue, 10 Jun 2025 16:09:13 GMT, Renjith Kannath Pariyangad wrote: > Hi all, > > This pull request contains a backport of commit > [2103dc15](https://github.com/openjdk/jdk/commit/2103dc15cb662fd8795b1b51d9cb61c389bed7a0) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. >

Re: RFR: 8354646: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text [v16]

2025-06-10 Thread Jeremy Wood
On Tue, 10 Jun 2025 13:25:20 GMT, Alexey Ivanov wrote: >> Jeremy Wood has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8354646: moving test file back to basic package >> >> This is in response to: >> https://github.com/openjdk/jdk/

Re: RFR: 8354646: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text [v17]

2025-06-10 Thread Jeremy Wood
> Make sure AquaTextPasswordFieldUI can't use selectWordAction. > > The core problem here was we could call selectWordAction in the Aqua LAF on a > JPasswordField. This problem was already solved in the BasicPasswordFieldUI . > The same solution was copied and pasted into the SynthPasswordFieldU

[jdk25] RFR: 8358452: JNI exception pending in Java_sun_awt_screencast_ScreencastHelper_remoteDesktopKeyImpl of screencast_pipewire.c:1214 (ID: 51119)

2025-06-10 Thread Renjith Kannath Pariyangad
Hi all, This pull request contains a backport of commit [2103dc15](https://github.com/openjdk/jdk/commit/2103dc15cb662fd8795b1b51d9cb61c389bed7a0) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. The commit being backported was authored by Alexander Zvegintsev on 9 Jun 2025

Re: RFR: 8353950: Clipboard interaction on Windows is unstable [v6]

2025-06-10 Thread Antonio Vieiro
On Tue, 10 Jun 2025 15:48:17 GMT, Matthias Bläsing wrote: >> Matthias Bläsing has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Limit running test only on windows > > Thank you all for helping to get this in! Thank you @matthiasblaesing

Re: RFR: 8353950: Clipboard interaction on Windows is unstable [v6]

2025-06-10 Thread Matthias Bläsing
On Wed, 4 Jun 2025 17:14:15 GMT, Matthias Bläsing wrote: >> - Introduce a lock into WClipboard that protects the code between >> openClipboard/closeClipboard invocations. >> The native side does not allow to open the clipboard multiple >> times or share the opened clipboard between multiple

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Alexander Zuev
On Mon, 9 Jun 2025 21:48:59 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring t

Re: RFR: 8354646: java.awt.TextField allows to identify the spaces in a password when double clicked at the starting and end of the text [v16]

2025-06-10 Thread Alexey Ivanov
On Mon, 9 Jun 2025 21:41:12 GMT, Jeremy Wood wrote: >> Make sure AquaTextPasswordFieldUI can't use selectWordAction. >> >> The core problem here was we could call selectWordAction in the Aqua LAF on >> a JPasswordField. This problem was already solved in the >> BasicPasswordFieldUI . The same

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Alexey Ivanov
On Mon, 9 Jun 2025 21:17:22 GMT, Damon Nguyen wrote: > This change is to restore the original intent of the test by updating the > instructions to check that the type of Cursor is preserved when clicked and > dragged. Now the test correctly has instructions to check that an I-beam > cursor sta

Re: RFR: 8359061: Update and ProblemList manual test java/awt/Cursor/CursorDragTest/ListDragCursor.java

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 00:36:24 GMT, Harshitha Onkar wrote: >> This change is to restore the original intent of the test by updating the >> instructions to check that the type of Cursor is preserved when clicked and >> dragged. Now the test correctly has instructions to check that an I-beam >> cu

Re: RFR: 8055461: getNextID in ImageIcon class can lead to overflow

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 07:27:41 GMT, Prasanta Sadhukhan wrote: >>> What condition? >> >> I just meant the int overflow condition. That test is not meant to >> demonstrate an OOM. >> >> I understand why an OOM feels related to this ticket (and maybe that really >> is the compelling concern here

Re: RFR: 8055461: getNextID in ImageIcon class can lead to overflow

2025-06-10 Thread Alexey Ivanov
On Fri, 6 Jun 2025 03:29:47 GMT, Prasanta Sadhukhan wrote: > ImageIcon.getNextID uses `mediaTrackerID ` which do not detect overflow. > > Theoretically there is a possibility that there can be overflow in the long > time run or for large number of created "imageIcon" > > Made sure there is no

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Alexey Ivanov
On Mon, 9 Jun 2025 21:48:59 GMT, Phil Race wrote: >> This is the implementation of JEP 504 - Remove the Applet API. >> API changes are >> - Remove the entire java.applet package >> - Remove the javax/swing/JApplet class >> - Remove applet related APIs in java.beans >> - Update javadoc referring t

Re: RFR: 8357799: Improve instructions for JFileChooser/HTMLFileName.java [v3]

2025-06-10 Thread Alexey Ivanov
On Tue, 3 Jun 2025 17:11:12 GMT, Alexey Ivanov wrote: >> The instructions for the `javax/swing/JFileChooser/HTMLFileName.java` test >> are still not as clear. >> >> The file name in the instructions is rendered as HTML, which, I believe, is >> unexpected. It should be displayed as the plain te

Re: RFR: 8358532: JFileChooser in GTK L&F still displays HTML filename

2025-06-10 Thread Alexey Ivanov
On Tue, 10 Jun 2025 04:41:54 GMT, Tejesh R wrote: > Test for the fix : test/jdk/javax/swing/JFileChooser/HTMLFileName.java I add 8358532 to the `@bug` tag of `HTMLFileName.java`. - Changes requested by aivanov (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/25707#pullreque

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Alexey Ivanov
On Mon, 9 Jun 2025 20:50:24 GMT, Phil Race wrote: >> src/java.desktop/share/classes/com/sun/java/swing/SwingUtilities3.java line >> 108: >> >>> 106: * Checks if vsync painting is requested for {@code rootContainer} >>> 107: * >>> 108: * @param rootContainer topmost container. Sho

Re: RFR: 8359053: Implement JEP 504 - Remove the Applet API [v2]

2025-06-10 Thread Alexey Ivanov
On Mon, 9 Jun 2025 20:48:47 GMT, Phil Race wrote: >> src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java line >> 437: >> >>> 435: styleBits = SET(styleBits, TEXTURED, false); >>> 436: styleBits = SET(styleBits, NONACTIVATING, true); >>> 437:

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v3]

2025-06-10 Thread Anass Baya
On Tue, 10 Jun 2025 07:40:07 GMT, Sergey Bylokhov wrote: >>> Yes, we can do that. I had the idea to use it so that UnlinkObjects() would >>> be invoked by the EDT, which would eliminate the race condition. >> >> Looks like the UnlinkObjects and _GetScreenImOn is already executed under >> the

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v3]

2025-06-10 Thread Sergey Bylokhov
On Tue, 10 Jun 2025 03:18:25 GMT, Anass Baya wrote: > Yes, we can do that. I had the idea to use it so that UnlinkObjects() would > be invoked by the EDT, which would eliminate the race condition. Looks like the UnlinkObjects and _GetScreenImOn is already executed under the same lock: - WCom

Re: RFR: 8346952 : GetGraphicsStressTest.java fails: Native resources unavailable [v3]

2025-06-10 Thread Sergey Bylokhov
On Tue, 10 Jun 2025 07:14:06 GMT, Sergey Bylokhov wrote: >> Hello @mrserb, >> Yes, we can do that. I had the idea to use it so that UnlinkObjects() would >> be invoked by the EDT, which would eliminate the race condition. >> I didn’t proceed with it initially because I saw in that file that this

Re: RFR: 8055461: getNextID in ImageIcon class can lead to overflow

2025-06-10 Thread Prasanta Sadhukhan
On Tue, 10 Jun 2025 05:59:07 GMT, Jeremy Wood wrote: > OK. This feels too theoretical for me to invest strongly in a recommendation. That's why I mentioned in the description itself > Theoretically there is a possibility that there can be overflow in the long > time run or for large number of