Im trying to create overloading methods in java:
private BasesResponse getResponse(List<ClassA> classA) {
...
}
private BasesResponse getResponse(List<ClassB> classB) {
...
}
But eclipse is complaining about: Method getResponse(List<ClassA>)
has the same erasure getResponse(List<E>)
as another method in type BasisInformationEndpoint.
I thought method signature is method name + parmeter list.... but how can List<ClassA>
be the same as List<ClassB>
? Doesnt make sense to me.