## MyBatis version 3.4.6 ## Database vendor and version hsqldb ## Test case or example project https://github.com/zerda/mybatis-3/tree/param-name-resolve/src/test/java/org/apache/ibatis/submitted/param_name_resolve ## Steps to reproduce See test case. 1. Create a mapper function with only one parameter, no annotation. 1. Reference this parameter in sql. 1. Compile it with `-parameters`. 1. Call this function, get the result. ## Expected result Get the correct result `3`. ## Actual result An Exception raised. ``` org.apache.ibatis.binding.BindingException: Parameter 'ids' not found. Available parameters are [collection, list] ``` ## Quick debug At [`ParamNameResolver.getNamedParams`](https://github.com/mybatis/mybatis-3/blob/d30f6478153169dc57aa9f308d0c6f021a5bf7a2/src/main/java/org/apache/ibatis/reflection/ParamNameResolver.java#L117), it may not correctly handle the case when parameter come with name, but not annotated.