On Thu, 14 Aug 2025 16:02:02 GMT, Artur Barashev <abaras...@openjdk.org> wrote:

>> Weijun Wang has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   remove HPKEParameters
>
> src/java.base/share/classes/javax/crypto/spec/HPKEParameterSpec.java line 402:
> 
>> 400:                 ", kdf_id=" + kdf_id +
>> 401:                 ", aead_id=" + aead_id +
>> 402:                 ", info=" + HexFormat.of().formatHex(info) +
> 
> Nit: We can try to convert `info` to UTF-8 string first and print it as a hex 
> number only if such conversion fails. Then if we do print it as a hex number 
> we should prepend `0x` to it so it's clear what format it is.

Sounds good. How is this worth doing? I'll need a `CharsetDecoder` with all 
error input reporting on and then  catch the exception.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18411#discussion_r2277179343

Reply via email to