Integrated: 8356441: IllegalStateException in RichDiagnosticFormatter after JDK-8355065
Liam Miller-Cushon
cushon at openjdk.org
Fri May 9 15:47:58 UTC 2025
On Wed, 7 May 2025 19:25:03 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
> [JDK-8355065](https://bugs.openjdk.org/browse/JDK-8355065) fixed an issue where if RichDiagnosticFormatter was used recursively, it would overwrite instance state. That fix added guards to prevent the logic from being used recursively. As reported in [JDK-8356441](https://bugs.openjdk.org/browse/JDK-8356441) there are other situations where RichDiagnosticFormatter is used recursively. This fixes updates it to support being used recursively, by saving and restoring instance state on recursive calls.
This pull request has now been integrated.
Changeset: 0e0bd642
Author: Liam Miller-Cushon <cushon at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0e0bd642aba3ac859043fc9505343d06d780f13a
Stats: 143 lines in 2 files changed: 123 ins; 13 del; 7 mod
8356441: IllegalStateException in RichDiagnosticFormatter after JDK-8355065
Reviewed-by: liach, mcimadamore
-------------
PR: https://git.openjdk.org/jdk/pull/25105
More information about the compiler-dev
mailing list