MyBatis version

3.5.4

Database vendor and version

Test case or example project

Steps to reproduce

1. 2. set *Mapper.xml
<cache eviction="LRU" size="2048" readOnly="false"/>` 3. run a search

Expected result

Actual result

search result entity ClassCastException

error code

org.apache.ibatis.executor.loader.AbstractSerialStateHolder.LookAheadObjectInputStream:159 return super.resolveClass(desc); -> return Resources.classForName(className);

Comment From: harawata

Hello @unjie ,

Please create a small demo project like these so that we can reproduce the exception quickly/reliably.

Comment From: harawata

No response.