I have 2 classes:
import lombok.Builder;
@Builder
public class B extends A {
}
and
import lombok.Builder;
@Builder
public class A {
}
on the @Builder
on B
I get the message:
The return type is incompatible with A.builder().
Is this a limitation of lombok? or something I'm doing wrong?
If I leave the @Builder
off A
, then the Builder on B
doesn't seem to consider the fields in A
in the constructors for B
.