On Tue, 15 Nov 2022 00:49:23 GMT, Valerie Peng <valer...@openjdk.org> wrote:

>> You mean comparing it with the original value? I tried that but not always 
>> the same. For example, a string might be an IA5String at the beginning but 
>> becomes a UTF8String after re-encoding.
>
> I see, not surprising, perhaps just checking that it's not empty? Or even 
> that may not hold true?

That should be true. The constructor on bytes ensures either a value is 
assigned or an exception is thrown. I'll add a check.

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

PR: https://git.openjdk.org/jdk/pull/11070

Reply via email to