Reputation: 77
I'm trying to call a method using parameters that definitely match my args, yet I get this error...
The method getAdministratablePaging(Long, ContentFilter, int, int, Integer, Integer) in the type ContentService is not applicable for the arguments (Long, ContentFilter, int, int, Integer, Integer)
The code is...
ResultPage knowledgeCenters = _kcs.getAdministratablePaging(ContentConstants.KNOWLEDGE_ROOT, filter, 0, Constants.COUNT_ALL, ContentConstants.COLUMN_SIZE, Constants.SORT_ORDER_ASCENDING);
I'm working in Eclipse and have tried Clean and rebooting the IDE. Suggestions much appreciated!
Upvotes: 3
Views: 3637
Reputation: 10810
Just putting my comment as an answer in case it can help somebody seeing this question in the future.
When you see a message like this, then the only possibility is that there are multiple types of one of the parameter objects. In this case, @nscoppin had two different definitions for ContentFilter
. Either import the correct one, or use the fully qualified name in the method call, ie
someMethod(com.packageA.subPackage.ContentFilter);
Upvotes: 4