RFR: JDK-8314272: Improve java.util.prefs.BackingStoreException: Couldn't get file lock. [v2]
Matthias Baesken
mbaesken at openjdk.org
Mon Sep 4 12:00:42 UTC 2023
On Fri, 1 Sep 2023 13:27:58 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> > Hi Alan , Your assumption 'I assume the use of System.getProperty is problematic when running with a SM.' is most likely correct.
>
> You'll need to test with a SM that denies reading the system property to be sure. There are classes in many tool APIs (you've listed some) where this doesn't arise.
>
For
java.management/share/classes/sun/management/VMManagementImpl.java
I tried with a security manager and had to grant property access so that it worked properly.
For
java.desktop/share/classes/sun/awt/FontConfiguration.java
this can be called from all code working with fonts so it needs to be handled too (e.g. PrivilegedAction).
Should I file a JBS issue for those two ?
Some of the others listed might indeed fall into the tool APIs you mentioned.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15308#issuecomment-1705142502
More information about the core-libs-dev
mailing list