RFR: 8334757: AssertionError: Missing type variable in where clause [v2]

Liam Miller-Cushon cushon at openjdk.org
Mon Jul 8 17:29:03 UTC 2024


> Please consider this fix for [JDK-8334757](https://bugs.openjdk.org/browse/JDK-8334757).
> 
> This adds a missing case to argument preprocessing in `RichDiagnosticFormatter` to handle the `JCDiagnostic.AnnotatedType` wrapper types, which avoids a crash when types with type variables appear as arguments for diagnostics that use `JCDiagnostic.AnnotatedType`.
> 
> The wrapper type was introduced by [JDK-8291643](https://bugs.openjdk.org/browse/JDK-8291643) and is only used by the diagnostics introduced in [JDK-8043226](https://bugs.openjdk.org/browse/JDK-8043226), so backing out JDK-8043226 could also be considered.

Liam Miller-Cushon 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 remote-tracking branch 'origin/master' into JDK-8334757
 - 8334757: AssertionError: Missing type variable in where clause

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19840/files
  - new: https://git.openjdk.org/jdk/pull/19840/files/895c852c..61aa86bf

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19840&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19840&range=00-01

  Stats: 22769 lines in 711 files changed: 14997 ins; 4875 del; 2897 mod
  Patch: https://git.openjdk.org/jdk/pull/19840.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19840/head:pull/19840

PR: https://git.openjdk.org/jdk/pull/19840


More information about the compiler-dev mailing list