RFR: 8232765: NullPointerException at Types.eraseNotNeeded() when compiling a class [v4]

Maurizio Cimadamore mcimadamore at openjdk.java.net
Mon Apr 26 13:58:28 UTC 2021

On Sun, 25 Apr 2021 08:14:46 GMT, Guoxiong Li <gli at openjdk.org> wrote:

>> Hi all,
>> The method `types::asSuper` may return `null` so that `types.erasure(types.asSuper(iterator.type.getReturnType(), syms.iteratorType.tsym))` throws `NPE`.
>> This patch sets the return type and outputs the corresponding error message if `types::asSuper` returns `null`.
>> Thank you for taking the time to review.
>> Best Regards.
> Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:
>   Revert copyright.

Thanks for the stress test - looks good.


Marked as reviewed by mcimadamore (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/2099

More information about the compiler-dev mailing list