New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Nested enum causes "@Slf4j is not supported on non-static nested classes" in 1.18.21 and higher #3069
Comments
Thanks for the report, this is a duplicate of #2990 |
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
varkart
added a commit
to varkart/lombok
that referenced
this issue
Feb 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using
@Slf4j
on a nestedenum
, I get the following error:The code is here:
https://github.com/oracle/oci-java-sdk/blob/master/bmc-resourcesearch/src/main/java/com/oracle/bmc/resourcesearch/model/QueryableFieldDescription.java#L100
This works in
1.18.20
and lower, but breaks on1.18.21
and1.18.22
.To Reproduce
Declare a class with a nested
enum
in it. Annotate the nestedenum
with@Slf4j
.To reproduce in our codebase, update this property to
1.18.21
or higher.https://github.com/oracle/oci-java-sdk/blob/master/pom.xml#L42
Expected behavior
Since an
enum
is always static, this should compile, just like it did in1.18.20
and lower.Version info (please complete the following information):
1.18.21
or higher.javac 1.8.0_121
Additional context
None.
The text was updated successfully, but these errors were encountered: