Closed janinko closed 3 years ago
This one is strange. I can reproduce it in Eclipse, Maven, and delombok. However, everything works fine in a unit test.
The problem is that the extends
clause of the MavenArtifact.Builder
references Artifact.ArtifactBuilder<C, B>
and not Artifact.Builder<C, B>
.
@janrieke I can reproduce it using this super simple unit test:
//CONF: lombok.builder.className = Builder
@lombok.experimental.SuperBuilder
class Parent {
private final int parent;
}
@lombok.experimental.SuperBuilder
class Child extends Parent {
private final int child;
}
The parent builder name seems to be hardcoded: https://github.com/rzwitserloot/lombok/blob/734b91ea97b825a8c323dabeba43ab45f5a54669/src/core/lombok/javac/handlers/HandleSuperBuilder.java#L258-L265
Describe the bug When building project with SuperBuilder classes and
lombok.builder.className=Builder
in config, I get compilation issues:To Reproduce
Building these two files with
lombok.builder.className=Builder
fails, building them withlombok.builder.className=*Builder
succeds.Expected behavior SuperBuilder produces
Artifact.Builder
,Artifact.BuilderImpl
,MavenArtifact.Builder
andMavenArtifact.BuilderImpl
classes.Version info (please complete the following information):