RFR: 8365288: PEMDecoder should throw ClassCastException [v4]

Anthony Scarpino ascarpino at openjdk.org
Thu Aug 28 16:20:01 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:

  add EKS-related non-supported classes to CCE

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/26734/files
  - new: https://git.openjdk.org/jdk/pull/26734/files/00a86c76..67710dbf

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=26734&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=26734&range=02-03

  Stats: 14 lines in 2 files changed: 13 ins; 0 del; 1 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