MoreElements.getLocalAndInheritedMethods or alternative should resolve type parameters if applicable
Open
Component: common
P3
type=enhancement
- Dominant language
- Java
- Stars
- 10.6k
- Forks
- 1.2k
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 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.
Contributor guide
Assessment
This issue has not been assessed yet.