Skip to content

Compile with Lombok Annotations #329

@Mom0aut

Description

@Mom0aut

Hello,

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4type=otherMiscellaneous activities not covered by other type= labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions