Integrated: 8320948: NPE due to unreported compiler error
Vicente Romero
vromero at openjdk.org
Wed Dec 6 16:50:53 UTC 2023
On Fri, 1 Dec 2023 14:51:15 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> The compiler is using some heuristics to decide whether or not to report a compiler error while doing recovery on deferred types. For the erroneous code included in the test case, the current heuristics decide not to report the error so ASTs with null types manage to get up to the code generation phase. This fix's proposal is to look into the speculative types of a deferred type and if all the speculative types are erroneous, then use a recovery type as the target type, which later on in the pipeline will imply reporting errors if any
>
> TIA
This pull request has now been integrated.
Changeset: a9cb120d
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a9cb120d03e5b2efa244086e213d3b9e4706558a
Stats: 35 lines in 3 files changed: 34 ins; 0 del; 1 mod
8320948: NPE due to unreported compiler error
Reviewed-by: jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/16923
More information about the compiler-dev
mailing list