[jdk11u-dev] RFR: 8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null

Daniel Jeliński djelinski at openjdk.org
Fri Jun 24 11:34:00 UTC 2022


On Fri, 24 Jun 2022 10:45:10 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:

> I backport this for parity with 11.0.17-oracle.

src/java.base/share/classes/sun/security/util/DisabledAlgorithmConstraints.java line 162:

> 160:             return false;
> 161:         }
> 162:         if (algorithm == null || algorithm.isEmpty()) {

The check for null algorithm needs to happen before `cachedCheckAlgorithm` is called

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

PR: https://git.openjdk.org/jdk11u-dev/pull/1182


More information about the jdk-updates-dev mailing list