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

[BUG] @Builder with Javadoc causes error markers in Java editor with Eclipse 2024-09 (4.33.0) #3757

Open
meldorq opened this issue Sep 27, 2024 · 1 comment

Comments

@meldorq
Copy link

meldorq commented Sep 27, 2024

Describe the bug

Since the upgrade to Eclipse 2024-09 (4.33) the @Builder annotation leads to error markers in the Java editor under special circumstances.

To Reproduce

Create a simple maven project in Eclipse containing these two classes:

MyClass.java

package test;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class MyClass {

    /**
     * .
     */
    private String name;

}

MyClass2.java

package test;

public class MyClass2 {

    public void myMethod() {

        MyClass x = MyClass.builder().build();
    }

}

The reference to builder() in MyClass2 is underlined red with the error message 'The method builder() is undefined for the type MyClass'

When I remove the Javadoc comment from name in MyClass, the error goes away.

Expected behavior

There shouldn't be an error.

Version info (please complete the following information):

  • Lombok version: 1.18.34
  • Platform: Eclipse 2024-09 (4.33)
@mduggen
Copy link

mduggen commented Oct 2, 2024

Also with:

  • Lombok version: 1.18.34
  • Platform: Eclipse 2024-06 (4.32)

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