[jdk21u-dev] RFR: 8320948: NPE due to unreported compiler error
duke
duke at openjdk.org
Wed Apr 30 16:43:53 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.
@satyenme
Your change (at version 1c8e978bfab69ab0ffd2542c4e71f070cdf52038) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/1696#issuecomment-2842604553
More information about the jdk-updates-dev
mailing list