On Thu, 11 Jan 2024 13:33:54 GMT, John Jiang <jji...@openjdk.org> wrote:
> ECDHKeyAgreement should validate the parameters before assigning them to the > fields. src/java.base/share/classes/sun/security/ec/ECDHKeyAgreement.java line 83: > 81: privateKey = null; > 82: privateKeyOps = null; > 83: publicKey = null; The fields should be initialized to null, so I don't think you need these lines. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/17373#discussion_r1450474761