Integrated: 8320144: Compilation crashes when a custom annotation with invalid default value is used
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Dec 6 15:37:51 UTC 2023
On Tue, 5 Dec 2023 16:34:03 GMT, Aggelos Biboudis <abimpoudis at openjdk.org> wrote:
> The erroneous case of:
>
> `public String[] excludeModules() default new String[0];`
>
> was not short-circuited in the compiler and we were getting an NPE in `l.nonEmpty()` for `l`. Now, `getAnnotationArrayValue` returns the error attribute, if that case is detected.
This pull request has now been integrated.
Changeset: 90e433d7
Author: Aggelos Biboudis <abimpoudis at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/90e433d72e73abf3252969f535451b56ecacc952
Stats: 29 lines in 3 files changed: 27 ins; 1 del; 1 mod
8320144: Compilation crashes when a custom annotation with invalid default value is used
Reviewed-by: vromero, jlahoda
-------------
PR: https://git.openjdk.org/jdk/pull/16977
More information about the compiler-dev
mailing list