Lombok: [BUG] @SuperBuilder with generic with inner static class produces CE

Created on 18 Oct 2019  路  5Comments  路  Source: projectlombok/lombok

Describe the bug
Base class has generic parameter
Parent class extends Base class with any inner static class generic
get Compile Error

Error:(5, 1) java: wrong number of type arguments; required 3

To Reproduce
```package reproducing;

import lombok.experimental.SuperBuilder;

@SuperBuilder
public class Parent extends Base {

private String parentString;

public static class SomeInnerStaticClass { }

}

@SuperBuilder
class Base {
private final String baseString;
}
```

Expected behavior
Should compile

Version info (please complete the following information):

  • Lombok version 1.18.10
  • Platform 1.8.201

Describe the bug
Maybe it's an Intllij Idea problem, but if you use not inner static class it works fine

Most helpful comment

Since 2020-01-15, it is.

All 5 comments

Could you try it without IntelliJ, i.e. using maven/gradle/javac?

It's reproduced with maven.

This is fixed via #2278, thanks @Lekanich!

Will be in next stable.

Is it in version "edge-SNAPSHOT" (https://projectlombok.org/download-edge) already? With that version I have this problem too... :(

Since 2020-01-15, it is.

Was this page helpful?
0 / 5 - 0 ratings