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

Vicente Romero vromero at openjdk.org
Fri Oct 13 23:16:39 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 incrementally with one additional commit since the last revision:

  minor test change

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15974/files
  - new: https://git.openjdk.org/jdk/pull/15974/files/3620f2e6..eb76ab40

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

  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 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