Closed
Description
MyBatis version
3.5.6
Database vendor and version
Not important
Steps to reproduce
- Create input parameter to be
Collections.emptyList()
- Use input parameter in a
test
expression in XML e.g.parameter.isEmpty()
Expected result
No illegal reflective access warning
Actual result
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.ibatis.ognl.AccessibleObjectHandlerPreJDK9 (file:/~/.m2/repository/org/mybatis/mybatis/3.5.6/mybatis-3.5.6.jar) to method java.util.Collections$EmptyList.isEmpty()
WARNING: Please consider reporting this to the maintainers of org.apache.ibatis.ognl.AccessibleObjectHandlerPreJDK9
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release