On Thu, 26 Feb 2026 23:01:22 GMT, Ben Perez <[email protected]> wrote:

>> But `paramSpec` is newly created and it won't be the same as the one defined 
>> in the class.
>> 
>> On the other hand, I do think we can compare `params` itself. It's only 
>> useful internally and these are only 2 instances.
>
> Good catch. You're correct that comparing `paramSpec` won't work but `params` 
> does.

Using `XECParameter.X448` is fine.

But I don't see why `paramSpec` wouldn't work as it is created from `params`.  
With params set to `XECParameter.X448`, `new 
NamedParameterSpec(XECParameter.X448.getName())` would return the static 
`NamedParameterSpec.X448`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29750#discussion_r2861873026

Reply via email to