Re: RFR: 8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null [v2]

2022-04-27 Thread Xue-Lei Andrew Fan
On Wed, 27 Apr 2022 16:16:18 GMT, Daniel Jeliński  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.
>
> Daniel Jeliński has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Move check to permits method

Looks good to me.  Thanks!

-

Marked as reviewed by xuelei (Reviewer).

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


Re: RFR: 8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null [v2]

2022-04-27 Thread Daniel Jeliński
On Wed, 27 Apr 2022 15:37:27 GMT, Xue-Lei Andrew Fan  wrote:

> Maybe, the checking could be placed in permits() method (line 158-173) so 
> that it follows the spec, and easier to check.

Good point!

-

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


Re: RFR: 8285696: AlgorithmConstraints:permits not throwing IllegalArgumentException when 'alg' is null [v2]

2022-04-27 Thread Daniel Jeliński
> 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.

Daniel Jeliński has updated the pull request incrementally with one additional 
commit since the last revision:

  Move check to permits method

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8427/files
  - new: https://git.openjdk.java.net/jdk/pull/8427/files/35361a31..6eb0d50e

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=8427=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=8427=00-01

  Stats: 6 lines in 1 file changed: 3 ins; 3 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8427.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8427/head:pull/8427

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