MoreElements.getLocalAndInheritedMethods or alternative should resolve type parameters if applicable
Aperta
Component: common
P3
type=enhancement
- Lingua principale
- Java
- Stelle
- 10.6k
- Fork
- 1.2k
- Merge medio
- 6h 32m
- PR unite (30g)
- 13
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.