RFR: 8326712: Robot tests fail on XWayland

Alexander Zvegintsev azvegint at openjdk.org
Fri Jun 28 10:08:27 UTC 2024


On Fri, 28 Jun 2024 09:44:03 GMT, Johan Vos <jvos at openjdk.org> wrote:

> If the SecurityException is not thrown, how does the caller of getRGBPixels knows that the result will not be correct because of the missing permission? (as opposed to being incorrect due to a failure)

He won't know it. An indirect result of failure can be a black image.
The [current documentation](https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/javafx/scene/robot/Robot.java#L240) documentation specifies only IllegalStateException and NullPointerException.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1490#discussion_r1658462409


More information about the openjfx-dev mailing list