<i18n dev> RFR: 8344667: Remove most uses of AWT Permissions from the desktop module [v2]
Phil Race
prr at openjdk.org
Mon Nov 25 21:17:34 UTC 2024
On Mon, 25 Nov 2024 16:31:11 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
> A few places that probably need some attention:
>
> `./src/java.desktop/share/classes/java/awt/Composite.java:60: * to a screen device is governed by the {@code readDisplayPixels}`
If you take a look at https://github.com/openjdk/jdk/pull/22338/files you will see this text is being addressed there.
>
> doc update:
>
> ```
> `./src/java.desktop/share/classes/java/awt/doc-files/Modality.html:338: A special <code>AWTPermission</code>, <code>"toolkitModality"</code>,`
>
> <p>
> A special <code>AWTPermission</code>, <code>"toolkitModality"</code>,
> is required to show toolkit-modal
> dialogs. This would prevent, for example, blocking a browser or
> Java Web Start (JWS) by modal dialogs shown from applets.
> </p><p>
> The same permission is required to exclude a window from toolkit modality.
> This would prevent, for example, a dialog shown from an applet not to be
> blocked by a browser's or JWS's modal dialog.
> ```
thanks for reminding me about these doc-files. I've been meaning to check them.
Since those files are likely specification I'll add that to the upcoming fix to deprecate AWTPermission since I can bundle into the CSR for that. not here.
> ```
> ./test/jdk/lib/client/ExtendedRobot.java:71: * @throws SecurityException if {@code createRobot} permission is not granted
> ./test/jdk/lib/client/ExtendedRobot.java:75: * @see java.awt.AWTPermission
> ./test/jdk/lib/client/ExtendedRobot.java:102: * @throws SecurityException if {@code createRobot} permission is not granted
> ./test/jdk/lib/client/ExtendedRobot.java:107: * @see java.awt.AWTPermission
> ```
I guess I could do that. No spec. issue around that.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22350#issuecomment-2499042052
More information about the i18n-dev
mailing list