On Tue, 4 Nov 2025 06:57:46 GMT, Tejesh R <[email protected]> wrote: > Any reason for updating the test files with this PR ? I feel this PR should > be restricted to Util file updates alone, updating the test files can be > taken up separately.
This is a valid concern. I tend to agree. The test from which the `findComponent` method is moved to the `Util` class, `javax/swing/JFileChooser/FileSizeCheck.java`, isn't backported to any releases. Yet I expect this change to `Util` would be backported to all the supported releases. This is why I suggest submitting a new bug to update `FileSizeCheck.java`. (That new bug would be backported to 21u where the test `FileSizeCheck.java` exists.) Similarly, as [I just mentioned](https://github.com/openjdk/jdk/pull/27944#discussion_r2490547507), it makes sense to update `javax/swing/JFileChooser/bug4759934.java` in its own issue to keep the history clearer. Especially, if we replace all button clicks with programmatic `doClick` instead of using robot. ------------- PR Comment: https://git.openjdk.org/jdk/pull/27944#issuecomment-3486126889
