RFR: 8365288: PEMDecoder should throw ClassCastException [v5]
Anthony Scarpino
ascarpino at openjdk.org
Thu Aug 28 21:26:27 UTC 2025
> 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
Anthony Scarpino has updated the pull request incrementally with one additional commit since the last revision:
nits
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26734/files
- new: https://git.openjdk.org/jdk/pull/26734/files/67710dbf..5b95a2ea
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26734&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26734&range=03-04
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/26734.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26734/head:pull/26734
PR: https://git.openjdk.org/jdk/pull/26734
More information about the security-dev
mailing list