RFR: JDK-6725221 Standardize obtaining boolean properties with defaults
Bradford Wetmore
wetmore at openjdk.java.net
Sat May 7 00:08:45 UTC 2022
On Thu, 5 May 2022 16:49:07 GMT, Mark Powers <duke at openjdk.java.net> wrote:
> JDK-6725221 Standardize obtaining boolean properties with defaults
Sorry for the confusion.
The original intent of this bug 14 years ago was to standardize the seclibs code where simple getProperty calls were needed in the context of an AccessController, without having to provide the doProvided calls. i.e. GetBooleanAction.privilegedGetProperty(). This was not intended not other parts of the JDK.
For example: ChannelImpl.java provides a getBooleanProperty() method, which is very similar to GetBooleanAction. I noticed other places in the security where this was being done.
Some of the classes like Debug have been rewritten (SSLLogger), so the issue does not appear to exist there any logger.
The certpath code is working with Security.getProperty(), so that was a red herring.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8559
More information about the security-dev
mailing list