I've a class Product:
@Data
@SuperBuilder
public class Product {
private String name;
private String manufacturer;
}
and an extended class
@Data
@SuperBuilder
public class Frame extends Product{
private String model;
}
I'm trying to create a Frame object using the builder:
return Frame.builder()
.name("Frame ABC")
.manufacturer("Manufacturer")
.model("Model 1")
.build();
I'm using IntelliJ 2019.1.1 with Lombok plugin but unfortunately the compiler marks as error the .name()
and .manufacturer()
methods.
I saw this issue opened and I'm wondering if there is a workaround to make my code to work.
@SuperBuilder
support has made it to release 0.27 of the IntelliJ Lombok plugin. – Miki