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

javac doesn't work with lombok #955

Closed
snjeza opened this issue Nov 18, 2024 · 2 comments · Fixed by #992
Closed

javac doesn't work with lombok #955

snjeza opened this issue Nov 18, 2024 · 2 comments · Fixed by #992
Assignees

Comments

@snjeza
Copy link

snjeza commented Nov 18, 2024

Steps to reproduce:

  • start Eclipse with javac and the lombok agent
  • create
package com.example;
import lombok.AllArgsConstructor;
import lombok.Data;
public class Main {
	public void test() {
		Person p = new Person(10, "abc");
		System.out.println(p.getAge() + p.getName());
		System.out.println(p.getAge() + p.getName());
		System.out.println(p.getAge() + p.getName());
	}
	@Data
	@AllArgsConstructor
	class Person {
		private Integer age;
		private String name;

	}
}

you will get seven errors and two warnings

@mickaelistria
Copy link

you don't need the lombok agent at Eclipse startup, lombok just has to be part of the classpath. Can you please try it?

@snjeza
Copy link
Author

snjeza commented Nov 18, 2024

you don't need the lombok agent at Eclipse startup, lombok just has to be part of the classpath. Can you please try it?

I have tried it. The issue is the same. Lombok doesn't work.
The lombok agent is required for ecj.

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

Successfully merging a pull request may close this issue.

2 participants