-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
acceptedThe issue/enhancement is valid, sensible, and explained in sufficient detailThe issue/enhancement is valid, sensible, and explained in sufficient detailbug
Milestone
Description
Describe the bug
Compilation fails when the annotation @log is set on a nested enum.
To Reproduce
Here is an example:
class Example {
@Log
enum Status { OK, KO }
}
The following error appears during compilation:
@Log is not supported on non-static nested classes.
Expected behavior
Should compile without error.
Was working fine in 1.18.20
Version info (please complete the following information):
- Lombok 1.18.22
- all platforms
Additional context
Addind the keyword static
to the enum seems to workaround the problem.
Metadata
Metadata
Assignees
Labels
acceptedThe issue/enhancement is valid, sensible, and explained in sufficient detailThe issue/enhancement is valid, sensible, and explained in sufficient detailbug