Compile with Lombok Annotations
See original GitHub issueHello,
i generate Java Files with Lombok Annotations from my own Annotation Processor, when testing i get the following compile error : “is not abstract and does not override abstract method”.
Test Case
void process() {
ReleationProcessor releationProcessor = new ReleationProcessor();
Compilation compilation = javac()
.withProcessors(releationProcessor)
.compile(JavaFileObjects.forResource("TestFile.java"));
CompilationSubject.assertThat(compilation).succeeded();
Generated File from Annotation Processor
@Setter
@Getter
public final class Testing implements Model {
private String targetType;
}
On my normal build everything works fine. Is there some way to ignore the compile error or add an option for Lombok Annotations.
Ty Mom0
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Can't compile project when I'm using Lombok under IntelliJ IDEA
If you still have annotation not recognized, place cursor on it, hit ALT+ENTER (or OPTION+ENTER) and see if you have a menu option...
Read more >Setting up Lombok with Eclipse and Intellij - Baeldung
Lombok uses annotation processing through APT. So, when the compiler calls it, the library generates new source files based on annotations ...
Read more >A Complete Guide to Lombok - Auth0
Lombok offers various annotations aimed at replacing Java code that is well known for being boilerplate, repetitive, or tedious to write.
Read more >Lombok annotations do not compile under Intellij idea
Lombok annotations do not compile under Intellij idea. What steps will reproduce the problem? 1. enabled Lombok and appended to classpath through maven...
Read more >Lombok Execution Path
With javac (and netbeans, maven, gradle, and most other build systems), lombok runs as an annotation processor. Lombok is on the classpath, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tbroyer How? What is the Lombok processor class name?
Fwiw, you would have to add the Lombok processor to the
withProcessors
so it can do its (black) magic.