Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] @SuperBuilder with generic with inner static class produces CE #2262

Closed
agackovka opened this issue Oct 18, 2019 · 5 comments
Closed

Comments

@agackovka
Copy link

agackovka commented Oct 18, 2019

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


import lombok.experimental.SuperBuilder;

@SuperBuilder
public class Parent extends Base<Parent.SomeInnerStaticClass> {

    private String parentString;

    public static class SomeInnerStaticClass { }
}

@SuperBuilder
class Base<T> {
    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

@janrieke
Copy link
Contributor

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

@Lekanich
Copy link
Contributor

It's reproduced with maven.

@rzwitserloot
Copy link
Collaborator

This is fixed via #2278, thanks @Lekanich!

Will be in next stable.

@Vyacheslav-Lapin
Copy link

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

@janrieke
Copy link
Contributor

Since 2020-01-15, it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants