MoreElements.getLocalAndInheritedMethods or alternative should resolve type parameters if applicable
Abierto
Component: common
P3
type=enhancement
- Lenguaje dominante
- Java
- Estrellas
- 10.6k
- Forks
- 1.2k
- Merge medio
- 6 h 32 min
- PR fusionados (30 d)
- 13
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.