On Tue, 12 Aug 2025 14:43:36 GMT, Chen Liang <li...@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

Reply via email to