setImplicit should be recursive
Open
discussion
- Dominant language
- Java
- Stars
- 2k
- Forks
- 392
- Avg merge
- 11h 24m
- Merged PRs (30d)
- 36
Description
The `setImplicit` method of the `CtTypeReference` implementations should be recursive.
If not, it may affect code rendering, for example, if we have a class `A` and we want to generate a call to the generic method `m` of `A` we get
`A.>m()` instead of `A.>m()`
even when we set `setImplicit(false)` for the instance of `CtTypeReference` representing `>`
The solution is to make `setImplicit` recursive, that is, it should also affect the component type ia array references and all type arguments in generic type references.
Contributor guide
Assessment
This issue has not been assessed yet.