RFR: 8344994: Remove most uses of RuntimePermission checks in java.desktop
Alexander Zvegintsev
azvegint at openjdk.org
Tue Nov 26 04:39: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
One test still uses runtime permission:
./test/jdk/java/awt/print/PrinterJob/PrintToDir.java:129: security.checkPermission(new FilePermission("<<ALL FILES>>", "read,write"));
./test/jdk/java/awt/print/PrinterJob/PrintToDir.java:130: security.checkPermission(new PropertyPermission("user.dir", "read"));
-------------
Marked as reviewed by azvegint (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/22373#pullrequestreview-2460273856
More information about the client-libs-dev
mailing list