-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Wrong number of type arguments; required 3 #2359
Comments
Can confirm, but looking at the delombok output of the example, I must admit I don't know how the correct output should look like. |
It's only example :) But it's very close to my structure. I use Reactor project to share event from service, factory or other source. In common situation, passing a child type to a super type as generic parameter helps me confirm that the child inherits this super type and bounds the event type which can pass that child. I did't use delombok, so I also don't know how to repair this behavior. More precisely: I could bound the type directly in the generic definition and pass it to the super type (It works). But it's makes me to pass the generic parameter manually to the super type. Sorry for my english. |
I think I figured out how it should look like and found the problem. Working on a fix. Your English is good. No need to apologize even if it would be not so good: Most of the commenters here are not native speakers as well. |
…ious commit in changelog.
@rzwitserloot Will this be released soon? 1.18.12 does not contain this fix, or does it? |
No, it's not in 1.18.12. You could try the current edge release. |
1.18.12 was released in February. When can we expect a release that contains this fix? |
Is this resolved? still see it in 1.18.16 and plugin: 0.34-2020.2. Child.java:6
|
The type argument |
Interesting, that worked. Now, the custom override does not work :( inside a SuperBuilder. |
That question is about regular |
Makes sense. |
Description
Cannot use @SuperBuilder with nested Generic types. (With the latest release and edge-SNAPSHOT)
How to repeat
Generic.java
NestedGeneric.java
OtherGeneric.java
Exception desc:
If i replace this
... extend Generic<NestedGeneric<? extends otherGeneric<?>>>
like... extends Generic<NoGenericExtendsNestedGeneric>
or not use nested generic types, it will be successfully builded.The text was updated successfully, but these errors were encountered: