[SPRNET-1409] Bug in MethodParametersCriteria.IsSatisfied() Method Created: 20/Dec/10 Updated: 04/Jan/11 Resolved: 04/Jan/11
|Fix Version/s:||2.0 M1|
|Reporter:||Marcus Chou||Assignee:||Steve Bohlen|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
It seems like a bug exists in the MethodParametersCriteria.IsStatisfied(object) method. The method looks to return true as long as the last parameter being checked against the target type is the same, ignoring all previous parameters.
So if I'm trying to find a method foo(string, Guid), the satisfied boolean would return true for foo(Guid, Guid) as well.
File with what I believe should be the correct implementation of the IsSatisfied() method is attached.
|Comment by Steve Bohlen [ 04/Jan/11 ]|
Good catch – the existing logic is indeed just plain wrong. Fix applied and test added to confirm proper behavior.