RFR: 8232765: NullPointerException at Types.eraseNotNeeded() when compiling a class [v4]
Guoxiong Li
gli at openjdk.java.net
Sun Apr 25 08:14:46 UTC 2021
> 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.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/2099/files
- new: https://git.openjdk.java.net/jdk/pull/2099/files/415e0efa..9e3d24bb
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2099&range=03
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2099&range=02-03
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/2099.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2099/head:pull/2099
PR: https://git.openjdk.java.net/jdk/pull/2099
More information about the compiler-dev
mailing list