On Mon, 11 Aug 2025 20:58:13 GMT, Anthony Scarpino <ascarp...@openjdk.org> wrote:
> This bug fix is to change PEMDecoder.decode(..., Class<>) using > PKCS8EncodedKeySpec and X509EncodedKeySpec will throw an > IllegalArgumentException when the decoded data does not match. It should be > ClassCastException. > > Thanks > > Tony This pull request has now been integrated. Changeset: 849570a9 Author: Anthony Scarpino <ascarp...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/849570a94a3178da7899e5cd36400ef03ad9ae29 Stats: 32 lines in 2 files changed: 26 ins; 0 del; 6 mod 8365288: PEMDecoder should throw ClassCastException Reviewed-by: weijun ------------- PR: https://git.openjdk.org/jdk/pull/26734