resthub / spring-amqp-hessian

Spring RPC based on RabbitMQ and Hessian
Apache License 2.0
10 stars 9 forks source link

wrong method call when 2 similar methods exist #9

Open MarneusCalgarXP opened 11 years ago

MarneusCalgarXP commented 11 years ago

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