On Wed, 8 Oct 2025 00:18:09 GMT, Anthony Scarpino <[email protected]> wrote:

>> src/java.base/share/classes/java/security/PEMDecoder.java line 391:
>> 
>>> 389:      *   {@code DEREncodable}.
>>> 390:      * @return a {@code DEREncodable} typecast to {@code tClass}
>>> 391:      * @throws IOException on IO or PEM syntax error where the
>> 
>> Why would bad PEM syntax be an IOE? Should this be an IAE, similar to a 
>> decoding error?
>
> This was a @wangweij comment from the first preview that syntax error are not 
> recoverable and should be IOE.

You mean they are recoverable? Otherwise it should probably be an IAE.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27147#discussion_r2432436920

Reply via email to