RFR: JDK-6725221 Standardize obtaining boolean properties with defaults

Alan Bateman alanb at openjdk.java.net
Fri May 6 17:59:50 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

src/java.base/share/classes/java/lang/reflect/AccessibleObject.java line 777:

> 775:         if (!printStackPropertiesSet && VM.initLevel() >= 1) {
> 776:             printStackWhenAccessFails = GetBooleanAction.
> 777:                 privilegedGetProperty("sun.reflect.debugModuleAccessChecks");

Running with `-Dsun.reflect.debugModuleAccessChecks` should set printStackWhenAccessFails to true, not false.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8559



More information about the security-dev mailing list