RFR: 8360564: Implement JEP 524: PEM Encodings of Cryptographic Objects (Second Preview) [v4]
Sean Mullan
mullan at openjdk.org
Wed Oct 15 14:04:20 UTC 2025
On Wed, 8 Oct 2025 00:18:09 GMT, Anthony Scarpino <ascarpino at openjdk.org> 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
More information about the security-dev
mailing list