-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Builder on a nested class inside an generic interface in Eclipse #2369
Milestone
Comments
It's a bug in lombok. What's more surprising to me is that it seems to work fine in javac, though. Perhaps the java parser already marks that one as static. The fully qualified type generator needs to be updated to know that inner classes are inherently static if the enclosing type is an enum or interface (or record, I guess?) |
Febell
pushed a commit
to Febell/lombok
that referenced
this issue
Mar 1, 2020
…ed as static if in interface/enum.
Febell
pushed a commit
to Febell/lombok
that referenced
this issue
Mar 1, 2020
…d static no longer cause issues in ecj.
This was referenced Mar 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Nested class annotated
@Builder
in an interface which has a generic parameter compiles in Eclipse only if the class is explicitly declaredstatic
.To Reproduce
This minimal example does not work in Eclipse:
The error is:
It works if the class is marked as
static
(which is the default modifier for classes within an interfaces).There is no error when building the class with Gradle, so I assume it is ECJ specific.
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: