Assuming we have an interface TestInterface in an external artifact, that we cannot change:
public interface TestInterface {
Boolean isTest();
//more getter and setter methods
}
and an implementation of this interface, with more members corresponding to the parent interface. Lombok's generated getters/ setters are not recognized by the compiler, so I must add the actual getter method to make the following class compilable.
@Getter
@Setter
public class TestImplementation implements TestInterface {
Boolean test;
//more members
}
The compilation error is the standard error you get when a method of the interface is not implemented:
my.package.TestImplementation is not abstract and does not override abstract method isTest() in my.package.TestInterface
Supposing that Lombok's getters and setters are generated after compilation time, I don't understand why the normal call of getters (that are generated by Lombok) are compilable.