RFR: 8344994: Remove most uses of RuntimePermission checks in java.desktop

Alexander Zvegintsev azvegint at openjdk.org
Tue Nov 26 04:53:36 UTC 2024


On Mon, 25 Nov 2024 21:23:14 GMT, Phil Race <prr at openjdk.org> wrote:

> More clean up after JEP 486 (SecurityManager disabling).
> FilePermission is the most common RuntimePermission checked in java.desktop

This is outside the scope of this PR, but I took a look at what else can be done regarding SecurityManager removal in files affected by this PR:

----
`src/java.desktop/share/classes/java/awt/Font#hasTempPermission` already has an issue [JDK-8344146
](https://bugs.openjdk.org/browse/JDK-8344146)

---

I couldn't find JBS issues for the following two:

---
`src/java.desktop/macosx/classes/com/apple/eawt/Application.java` methods:

- setFileTypeAndCreator
- setFileType
- setFileCreato
- getFileType
- getFileCreator
- moveToTrash
- revealInFinder

---
`src/java.desktop/share/classes/sun/print/PrintJob2D.java#initPrintJob2D`

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

PR Comment: https://git.openjdk.org/jdk/pull/22373#issuecomment-2499652814


More information about the client-libs-dev mailing list