Greetings,
I first reported this issue in mybatis/mybatis-3#2421 but then I realized it might be more appropriate here.
When I have some sql statements containing <if test="_parameter.containsKey('foo')"> and the parameters are in a Collections.singletonMap I get the following warning in the console:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by ognl.AccessibleObjectHandlerPreJDK9 (file:/C:/Users/shenz/.m2/repository/ognl/ognl/3.3.1/ognl-3.3.1.jar) to method java.util.Collections$SingletonMap.containsKey(java.lang.Object)
WARNING: Please consider reporting this to the maintainers of 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
This does not happen when using java.util.Map.
I am using Java 11.0.13.