RFR: 8269630: Bad clipboard data causes JVM to crash
Lukasz Kostyra
lkostyra at openjdk.org
Fri Dec 5 13:57:45 UTC 2025
On Fri, 5 Dec 2025 13:48:34 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
> Can you turn the test case from the bug report into an automated test?
I was not sure about this, mostly because of difference in behavior between platforms. For now I could add a test that simply sets `ClipboardContent` and then tries to put it on the Clipboard, but because each platform behaves differently I can't double-check if Clipboard was correctly (not) updated - Windows will return a valid object, while Linux will return null.
I can also write a proper test, make it work only on Linux assuming this is the behavior we want to follow and exclude it on other platforms, that way [JDK-8373090](https://bugs.openjdk.org/browse/JDK-8373090) will have it mostly ready to go.
Which option do you prefer?
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1999#issuecomment-3617026020
More information about the openjfx-dev
mailing list