RFR: 8305971: NPE in JavacProcessingEnvironment for missing enum constructor body [v3]

Vicente Romero vromero at openjdk.org
Fri Oct 13 16:04:45 UTC 2023


> Please review this simple fix that is averting a NPE in JavacProcessingEnvironment if a an annotation processor is used while compiling this erroneous code:
> 
> 
> enum T {
>   ONE("");
> 
>   T(String one);  // missing constructor body
> 
>   final String one;
> }
> 
> the fix is a one liner
> TIA

Vicente Romero has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' into JDK-8305971
 - addressing review comments
 - 8305971: NPE in JavacProcessingEnvironment for missing enum constructor body

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15974/files
  - new: https://git.openjdk.org/jdk/pull/15974/files/2902b04d..222287d6

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

  Stats: 24206 lines in 808 files changed: 12768 ins; 5698 del; 5740 mod
  Patch: https://git.openjdk.org/jdk/pull/15974.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15974/head:pull/15974

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


More information about the compiler-dev mailing list