[jdk23u] RFR: 8337998: CompletionFailure in getEnclosingType attaching type annotations

Liam Miller-Cushon cushon at openjdk.org
Tue Aug 13 17:39:05 UTC 2024


This change fixes a javac crash when classes are missing from the classpath. The fix causes javac to instead report a non-crash error diagnostic. The change improves logic first added in JDK 22 as part of the fix for JDK-8225377.

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

Commit messages:
 - Backport 9e282e5c966a9c065de8b901b7d30bb5c9ccf243

Changes: https://git.openjdk.org/jdk23u/pull/68/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk23u&pr=68&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337998
  Stats: 116 lines in 4 files changed: 113 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk23u/pull/68.diff
  Fetch: git fetch https://git.openjdk.org/jdk23u.git pull/68/head:pull/68

PR: https://git.openjdk.org/jdk23u/pull/68


More information about the jdk-updates-dev mailing list