On Tue, 15 Oct 2024 22:16:27 GMT, Sean Mullan <[email protected]> wrote:
>> src/java.desktop/share/classes/java/awt/Robot.java line 433:
>>
>>> 431: * then a {@code SecurityException} may be thrown,
>>> 432: * or the content of the returned {@code Color} is undefined.
>>> 433: * </p>
>>
>> This text should not have been removed. It pertains to the desktop
>> permissions as well as the Java SecurityManager.
>
> Ok, I will revert it.
The description for the SecurityException thrown by these methods were adjusted
to "if access to the screen is denied by desktop environment". If you bring
back the paragraphs that were removed then you might have to adjust the wording
a bit as otherwise the word "permissions" is ambiguous.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21498#discussion_r1802471843