INRIA / INRIA/spoon

setImplicit should be recursive

Open
#2,872 7 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.