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

How Lombok solves the error of( cannot access class com.sun.tools.javac.)? #3719

Open
Headachy-FanFan opened this issue Aug 9, 2024 · 3 comments

Comments

@Headachy-FanFan
Copy link

Headachy-FanFan commented Aug 9, 2024

I tried customizing the getset method for implementing Lombok in Java21, but my annotation processor reported an error. I tried using the method (addOpensForLombok) in LombokProcessor.java to open some packages, but it doesn't seem to be effective.I also added -- add exports and -- add opens, but the error still persists.
I want to know how Lombok solved this error and how I can solve it. I hope someone can help me. Thank you
image
image
When I create a jar file and reference it in another project, an error will occur
image

@carlossanchez776
Copy link

Hi, @Headachy-FanFan I have the same problem. Any fix?

@Headachy-FanFan
Copy link
Author

Hi, @Headachy-FanFan I have the same problem. Any fix?

No, I still haven't solved this problem

@Headachy-FanFan
Copy link
Author

Hi, @Headachy-FanFan I have the same problem. Any fix?

hey, I have solved this problem, do you still need help?

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