MoreElements.getLocalAndInheritedMethods or alternative should resolve type parameters if applicable
Ouverte
Component: common
P3
type=enhancement
- Langage dominant
- Java
- Étoiles
- 10.6k
- Forks
- 1.2k
- Merge moyen
- 6 h 32 min
- PR mergées (30 j)
- 13
Description
I have the following class hierarchy:
```
public interface ASuperInterface {
void test(A a);
}
public interface AnInterface extends ASuperInterface {
void test();
}
```
Calling `MoreElements.getLocalAndInheritedMethods` on the element representing `AnInterface` gives me a method `void test(A a)` instead of a method `void test(String a)`.
If this is intended and there is no other recommended way to resolve type parameters like this, I think auto-common should include an helper to do so.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.