Skip to content

WARNING: An illegal reflective access operation has occurred -> when using public method in non public class #2392

Closed
@filiphr

Description

@filiphr

MyBatis version

3.5.6

Database vendor and version

Not important

Steps to reproduce

  1. Create input parameter to be Collections.emptyList()
  2. 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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions