这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG] @Log fails on nested enums #2990

@charphi

Description

@charphi

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 detailbug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions