[jdk21u-dev] RFR: 8334756: javac crashed on call to non-existent generic method with explicit annotated type arg [v2]

Satyen Subramaniam ssubramaniam at openjdk.org
Mon Sep 22 18:32:36 UTC 2025


> Backporting JDK-8334756: javac crashed on call to non-existent generic method with explicit annotated type arg. Adjusts code to avoid a ClassCastException in javac while compiling a non-existent method annotated with type annotations. Rather than encouraging users to file a JBS issue, directly identify the problematic annotations. Ran GHA Sanity Checks, local Tier 1 and 2, and new test directly. Patch is clean.

Satyen Subramaniam has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'openjdk:master' into 8334756
 - Backport abcd23f4d65698f47fd79a95aed197a12edf2784

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

Changes:
  - all: https://git.openjdk.org/jdk21u-dev/pull/1859/files
  - new: https://git.openjdk.org/jdk21u-dev/pull/1859/files/a0d5cc8b..465d632f

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1859&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1859&range=00-01

  Stats: 59181 lines in 1271 files changed: 38484 ins; 15824 del; 4873 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1859.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1859/head:pull/1859

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


More information about the jdk-updates-dev mailing list