Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong method call when 2 similar methods exist #9

Open
MarneusCalgarXP opened this issue Apr 2, 2013 · 0 comments
Open

wrong method call when 2 similar methods exist #9

MarneusCalgarXP opened this issue Apr 2, 2013 · 0 comments

Comments

@MarneusCalgarXP
Copy link

When there are 2 similar methods (same name & same parameter count), the amqp hessian proxy calls sometimes the wrong method.

ie:

@Override
public  List requestSimpleOr(String indexName, String documentType, String keyWords, Class expectedClass, Sort sort) {
    return faceted_requester.requestSimpleOr(indexName, documentType, keyWords, expectedClass, sort).getResults();
}

@Override
public  Page requestSimpleOr(String indexName, String documentType, String keyWords, Class expectedClass, Pageable pageable) {
    return faceted_requester.requestSimpleOr(indexName, documentType, keyWords, expectedClass, pageable).getResults();
}

The only solution for now is to rename one of the two methods, to avoid method collision problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant