MyBatis version
3.5.4
Database vendor and version
hsqldb
Test case or example project
unit test for cachenamespaceref #1873 https://github.com/mybatis/mybatis-3/pull/1873
Steps to reproduce
Annotated mapper with @CacheNamespaceRef,when the mapper class is parsed before the definer mapper of the refered cache,this may happen.
Expected result
unit test passed
Actual result
throws exception: java.lang.IllegalArgumentException: Result Maps collection already contains value for dao.BusinessDao.selectUsers-void
Comment From: harawata
Thank you for the report and the test, @xingxingup88 ! I will look into it.
Comment From: harawata
@xingxingup88 , The fix has already been committed and is verifiable in the latest 3.5.5-SNAPSHOT. Let me know if you noticed anything. Thanks again for your work!