On Thu, 17 Feb 2022 19:42:30 GMT, Michael Osipov <d...@openjdk.java.net> wrote:
>> But in this case, we still have a place to provide the raw bytes. Maybe >> that's better? Or you'd rather be guaranteed that one particular otherName >> should always have a string there and there's no need to do an `instanceof` >> check? What if the tag is already wrong and I don't know it should be a >> string? > > @wangweij So you have selected to really swallow the exception here? Yes. I don't want to let the method fail. Since `instanceof String` should be called anyway the caller can decide how to fail. ------------- PR: https://git.openjdk.java.net/jdk/pull/7167