Skip to content
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

UI Error when a generated Field (lombok) is used on annotation #865

Closed
c-koell opened this issue Oct 19, 2023 · 3 comments
Closed

UI Error when a generated Field (lombok) is used on annotation #865

c-koell opened this issue Oct 19, 2023 · 3 comments

Comments

@c-koell
Copy link

c-koell commented Oct 19, 2023

We are using lombok 1.18.30 within eclipse 2023-09.

If we use the @FieldNameConstants Annotation a InnerClass with static final Fields will be generated.

There is no Compile Error but we see a Error on the Classs itself
Eclipse IDE

The Problems View is empty, and the code works if you run it ...

You will find a sample eclipse project here
Sample-Project.zip

You must start eclipse with lombok installed
Sample eclipse.ini

-javaagent:C:/Temp/lombok-1.18.30.jar
-Xbootclasspath/a:C:/Temp/lombok-1.18.30.jar

You will also find here the docu regarding installation.

@iloveeclipse
Copy link
Member

I assume Lombock rewrites class files "under der hood" and JDT UI isn't notified about that or uses what AST sees in the source of the Person.java which doesn't contain any "Fields" inner class. Not sure if that can be fixed in JDT UI.
Probably you should open an issue at Lombock tracker https://github.com/projectlombok/lombok/issues for the Eclipse integration part of Lombok.

@c-koell
Copy link
Author

c-koell commented Oct 24, 2023

Created a issue in lombok project projectlombok/lombok#3529

@c-koell
Copy link
Author

c-koell commented Nov 16, 2023

This Bug will be fixed in Lombok .. thanks

@c-koell c-koell closed this as completed Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants