-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
@Slf4j doesn't work if class has an org
field
#1400
Comments
BTW, you are likely to run into this same problem if you import both |
I didn't find any. so, had to replace |
Actually you might maybe get away with just adding the missing import to make this compile. |
There is a problem in the java language where using fully qualified names and the presence of a field with a name that is the same as the first part of the fully qualified names gives a compiler error. Also, in our generated we use fully qualified names for several important reasons:
|
This produces a compiler error "non-static variable org cannot be referenced from a static context". It makes sense; the
= org.slf4j.LoggerFactory.getLogger(...
is ambiguous. Is there any way to make@Slf4j
work?The text was updated successfully, but these errors were encountered: