RFR: JDK-8315897: some PrivilegedActions missing in JDK code for getting properties
Matthias Baesken
mbaesken at openjdk.org
Tue Sep 12 08:24:38 UTC 2023
On Fri, 8 Sep 2023 14:01:24 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
> > So what about FontConfiguration? Is that something using the class directly too?
>
> I think this is not needed either. As far as I can see, the instance of `FontConfiguration` is created from `doPrivileged`, therefore these two system properties are read inside `doPrivileged` already.
Hi there is a public constructor
` public FontConfiguration(SunFontManager fm) {`
calling setOsNameAndVersion(), so is it really always called from `doPrivileged` ? (however it is currently only exported in a qualified way)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15629#issuecomment-1715235616
More information about the serviceability-dev
mailing list