RFR: 8320144: Compilation crashes when a custom annotation with invalid default value is used [v2]

Aggelos Biboudis abimpoudis at openjdk.org
Tue Dec 5 22:04:48 UTC 2023


> 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.

Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:

  Address review

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/16977/files
  - new: https://git.openjdk.org/jdk/pull/16977/files/20c3ca05..c746af14

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

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/16977.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16977/head:pull/16977

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


More information about the compiler-dev mailing list