Skip to content
Permalink
Browse files
8274143: Disable "invalid entry for security.provider.X" error messag…
…e in log file when security.provider.X is empty

Reviewed-by: weijun
  • Loading branch information
djelinski authored and wangweij committed Sep 25, 2021
1 parent ab28db1 commit 4838a2ca7c8e75b95c1c68ada7523e2a94815f45
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/java.base/share/classes/sun/security/jca/ProviderList.java
@@ -178,8 +178,10 @@ private ProviderList() {
while ((entry = Security.getProperty("security.provider." + i)) != null) {
entry = entry.trim();
if (entry.isEmpty()) {
System.err.println("invalid entry for " +
if (debug != null) {
debug.println("empty entry for " +
"security.provider." + i);
}
break;
}
int k = entry.indexOf(' ');

3 comments on commit 4838a2c

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot replied Sep 25, 2021

@djelinski

This comment has been minimized.

Copy link
Contributor Author

@djelinski djelinski replied Sep 30, 2021

/backport jdk17u
/backport jdk11u-dev

@openjdk

This comment has been minimized.

Copy link

@openjdk openjdk bot replied Sep 30, 2021

@djelinski only OpenJDK contributors can use the /backport command

Please sign in to comment.