MoreElements.getLocalAndInheritedMethods or alternative should resolve type parameters if applicable
Offen
Component: common
P3
type=enhancement
- Vorherrschende Sprache
- Java
- Sterne
- 10.6k
- Forks
- 1.2k
- Ø Merge
- 6 Std. 32 Min.
- Gemergte PRs (30 T.)
- 13
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.