Integrated: 8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null

Daniel Jeliński djelinski at openjdk.java.net
Thu Apr 28 06:25:37 UTC 2022


On Wed, 27 Apr 2022 14:03:15 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:

> Please review this follow up to #8349.
> 
> As JCK pointed out, `permits` is supposed to throw IAE on null input. However, now that we're looking up the result in a `ConcurrentHashMap`, a `NullPointerException` is thrown. This patch restores the original behavior.
> 
> Verified that the JCK test passes with this change.

This pull request has now been integrated.

Changeset: 47951655
Author:    Daniel Jeliński <djelinski at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/47951655acacba515c0d69f5192257664f887dba
Stats:     3 lines in 1 file changed: 3 ins; 0 del; 0 mod

8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg'  is null

Reviewed-by: jpai, xuelei

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

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



More information about the security-dev mailing list