RFR: 8365288: PEMDecoder should throw ClassCastException
Anthony Scarpino
ascarpino at openjdk.org
Tue Aug 12 17:38:10 UTC 2025
On Tue, 12 Aug 2025 14:43:36 GMT, Chen Liang <liach at openjdk.org> wrote:
>> I cannot say the name is confusing because I actually don't know what it means. Over the years I've learnt to read it as `isParentOf`.
>
> I think it refers to the concept of
>
> Exception ex = new ClassCastException();
>
> So `Exception.class.isAssignableFrom(ClassCastException.class)` is true.
>
> I agree this name is confusing indeed.
`ec.isInstance(e)` make sense here
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26734#discussion_r2270651868
More information about the security-dev
mailing list