Skip to content

Commit 7889bd2

Browse files
martinuyfranferrax
andcommitted
Add a debug message to inform the Filter property value read.
See more in https://mail.openjdk.org/pipermail/security-dev/2024-October/041800.html Co-authored-by: Martin Balao Alonso <[email protected]> Co-authored-by: Francisco Ferrari Bihurriet <[email protected]>
1 parent 73d75e9 commit 7889bd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/java.base/share/classes/sun/security/jca/ProvidersFilter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,12 @@ public String toString() {
671671
static {
672672
Filter tmpFilter = null;
673673
String fStr = SecurityProperties.getOverridableProperty(FILTER_PROP);
674+
if (debug != null) {
675+
debug.println("Filter property value read at this point:");
676+
for (StackTraceElement ste : new Exception().getStackTrace()) {
677+
debug.println(" ".repeat(4) + ste);
678+
}
679+
}
674680
if (fStr != null && !fStr.isEmpty()) {
675681
tmpFilter = new Filter(fStr);
676682
}

0 commit comments

Comments
 (0)