[SPRNET-1409] Bug in MethodParametersCriteria.IsSatisfied() Method Created: 20/Dec/10  Updated: 04/Jan/11  Resolved: 04/Jan/11

Status: Resolved
Project: Spring.NET
Component/s: Spring-NET-CORE
Affects Version/s: 1.3.1
Fix Version/s: 2.0 M1

Type: Bug Priority: Major
Reporter: Marcus Chou Assignee: Steve Bohlen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File MethodParametersCriteria.cs    
Reference URL: http://forum.springframework.net/showthread.php?t=7407


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.

Generated at Sat Jul 11 04:58:49 UTC 2020 using Jira 8.5.4#805004-sha1:0444eab799707f9ad7b248d69f858774aadfd250.