-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
@evfool
Description
MyBatis version
3.4.1-SNAPSHOT/master
Test case or example project
o.a.i.submitted.overload.OverloadTest - See pull request #704 for the testcase and more details.
Steps to reproduce
Given
- a mapper interface with two methods with the same name but different parameter sets (e.g. one and two parameters)
- a mapper xml with a single statement with the same name as the interface method, using all parameters from the interface, but properly checking for null values
Expected result
One can use both methods, both being properly mapped to the sql statement from the mapper xmlActual result
Trying to execute the method not having all parameters used in the mapper xml statement will result in a BindingException