[jdk21u-dev] Integrated: 8320948: NPE due to unreported compiler error

Satyen Subramaniam ssubramaniam at openjdk.org
Wed Apr 30 20:42:01 UTC 2025


On Tue, 22 Apr 2025 19:15:45 GMT, Satyen Subramaniam <ssubramaniam at openjdk.org> wrote:

> Backporting JDK-8320948: NPE due to unreported compiler error. The compiler decides not to report compiler error while doing recovery on deferred types - this fix looks 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. Adds test. Ran GHA Sanity Checks, local Tier 1 and 2, and new `test/langtools/tools/javac/recovery/CrashDueToUnreportedError.java` tests. Patch is clean.

This pull request has now been integrated.

Changeset: c2228cc0
Author:    Satyen Subramaniam <ssubramaniam at openjdk.org>
Committer: Victor Rudometov <vrudomet at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/c2228cc099d300edfb90958ae1d98acd698f9ff9
Stats:     35 lines in 3 files changed: 34 ins; 0 del; 1 mod

8320948: NPE due to unreported compiler error

Backport-of: a9cb120d03e5b2efa244086e213d3b9e4706558a

-------------

PR: https://git.openjdk.org/jdk21u-dev/pull/1696


More information about the jdk-updates-dev mailing list