I was finally able to reproduce our other errors we noticed.
It has to do with Abstraction in combination with Lomboks SuperBuilder
Take this Code:
Class AbstractEntityId:
package test.test2;
import lombok.experimental.SuperBuilder;
@SuperBuilder
public abstract class AbstractEntityId {
private final String value;
protected AbstractEntityId(final String value) {
this.value = value;
}
public final String getValue() {
return value;
}
}
Class EntityId:
package test.test2;
import lombok.experimental.SuperBuilder;
@SuperBuilder
public class EntityId extends AbstractEntityId {
public EntityId(final String value) {
super(value);
}
}
Class TestMapper
package test.test2;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
@Mapper
public interface TestMapper {
@Mapping(target = "value", source = "id")
EntityId mapEntityId(String id);
}
"value" gets reported as "Cannot resolve symbol". The generated mapper is fine. If you remove the SuperBuilder annotation, the error will vanish.
Originally posted by @OlliL in #216
Originally posted by @OlliL in #216