Integrated: 8305971: NPE in JavacProcessingEnvironment for missing enum constructor body

Vicente Romero vromero at openjdk.org
Sat Oct 14 22:13:31 UTC 2023


On Thu, 28 Sep 2023 21:23:54 GMT, Vicente Romero <vromero at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 01ea1eff
Author:    Vicente Romero <vromero at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/01ea1eff66e43f106640ecfd19fadf2c8245a1ad
Stats:     132 lines in 2 files changed: 131 ins; 0 del; 1 mod

8305971: NPE in JavacProcessingEnvironment for missing enum constructor body

Reviewed-by: darcy

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

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


More information about the compiler-dev mailing list