RFR: JDK-8344368 : IndependenceSwingTest.java and IndependenceAWTTest.java failed: Selected text & clipboard contents differs [v3]

Harshitha Onkar honkar at openjdk.org
Tue Dec 3 02:09:41 UTC 2024


On Mon, 2 Dec 2024 19:19:42 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   frame title
>
> test/jdk/java/awt/datatransfer/Independence/IndependenceAWTTest.java line 114:
> 
>> 112:             if (primaryClip == null) {
>> 113:                 throw new RuntimeException("Method getSystemSelection() is returning null"
>> 114:                                            + " on Linux platform");
> 
> In previous version it was mentioning X11 platform. Do we know if the system selection works the same way on Wayland as it was on X11?

@azuev-java getSystemSelection() works the same for X11 and Wayland (goes through XToolkit's getSystemSelection() for both). I think the original test was added before wayland was introduced (going by the test's copyright year 1999, no associated `@bug` tag though) hence x11 was mentioned explicitly.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22490#discussion_r1866881392


More information about the client-libs-dev mailing list