RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties
Matthias Baesken
mbaesken at openjdk.org
Fri Sep 8 08:33:08 UTC 2023
There are some remaining places in 'general' JDK code (= code not related to e.g. a specific tool) getting properties like :
osName = System.getProperty(os.name)
https://github.com/openjdk/jdk/blob/master/src/java.management/share/classes/sun/management/VMManagementImpl.java#L225
https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/sun/awt/FontConfiguration.java#L134
Those should be a PrivilegedAction .
-------------
Commit messages:
- JDK-8315897
Changes: https://git.openjdk.org/jdk/pull/15629/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15629&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8315897
Stats: 57 lines in 2 files changed: 36 ins; 4 del; 17 mod
Patch: https://git.openjdk.org/jdk/pull/15629.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15629/head:pull/15629
PR: https://git.openjdk.org/jdk/pull/15629
More information about the serviceability-dev
mailing list