Integrated: 8355065: ConcurrentModificationException in RichDiagnosticFormatter

Liam Miller-Cushon cushon at openjdk.org
Tue Apr 29 14:35:54 UTC 2025


On Sat, 19 Apr 2025 18:59:57 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:

> Hi, please consider this fix for [JDK-8355065](https://bugs.openjdk.org/browse/JDK-8355065). RichDiagnosticFormatter is comparing type variables by their `toString` representation, and in this example the comparison fails due to type annotations. Replacing a call to `stripMetadataIfNeeded` with `stripMetadata` allows the comparison to succeed, and is consistent with the approach used in other parts of RichDiagnosticFormatter (e.g. for [the fix for JDK-8144580](https://github.com/openjdk/jdk/commit/570883e4dc5f769e17b3fcd8f2bbeb369dfe3a5d)).

This pull request has now been integrated.

Changeset: b5156bb1
Author:    Liam Miller-Cushon <cushon at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b5156bb16aade1ff40f20ed6ce6faafe7becb671
Stats:     192 lines in 2 files changed: 169 ins; 4 del; 19 mod

8355065: ConcurrentModificationException in RichDiagnosticFormatter

Reviewed-by: vromero

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

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


More information about the compiler-dev mailing list