denny yao
unread,Jul 9, 2024, 3:34:32 PM (13 days ago) Jul 9Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Project Lombok
I have created a feature similar to Lombok based on the JSR-269 specification, which inserts new method declarations into the interface through specified annotations. It works fine in jdk1.8, but after upgrading to jdk17, an error message "module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module xxx" appears during compilation. Based on the solution found online, I added the --add-exports parameter during compilation, but the problem still persists. I have noticed that lower versions of Lombok (such as 1.18.14) also have the same issue in jdk17. But it was resolved in a higher version (such as 1.18.20). I have checked the latest Lombok source code, but I do not understand which part solved the problem. I hope someone can help me clarify this. Thanks