Integrated: 8320001: javac crashes while adding type annotations to the return type of a constructor
Vicente Romero
vromero at openjdk.org
Mon Nov 27 16:26:32 UTC 2023
On Tue, 21 Nov 2023 22:28:11 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Fix for [1] introduced a regression that is making some internal tests fail. Basically fix for [1] is trying to add annotations read from the class file to the corresponding symbol. Constructors are a bit special given that its return type is `void` thus type annotations can't be added to them. This fix is proposing just dropping the type annotation if it applies to the return type of a constructor.
>
> TIA
> [1] https://bugs.openjdk.org/browse/JDK-8225377
This pull request has now been integrated.
Changeset: 5e24aaf4
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5e24aaf4f7f11862ec8ac9d5c3e65d614104fb2c
Stats: 143 lines in 2 files changed: 142 ins; 0 del; 1 mod
8320001: javac crashes while adding type annotations to the return type of a constructor
Reviewed-by: cushon, jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/16774
More information about the compiler-dev
mailing list