Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal reflective access when invoking default mapper method #1636

Closed
ghost opened this issue Aug 21, 2019 · 2 comments · Fixed by #1637
Closed

Illegal reflective access when invoking default mapper method #1636

ghost opened this issue Aug 21, 2019 · 2 comments · Fixed by #1637
Assignees
Labels
enhancement Improve a feature or add a new feature
Milestone

Comments

@ghost
Copy link

ghost commented Aug 21, 2019

JDK-Version

BUILD_TYPE="commercial"
IMPLEMENTOR="Oracle Corporation"
JAVA_VERSION="12"
JAVA_VERSION_DATE="2019-03-19"

MyBatis version

3.5.2

Database vendor and version

MariaDB 10.4.7

Steps to reproduce

invoke a default Mapper-Method that invokes other Mapper-Method(s) as mentioned at stackoverflow

Produces

WARNING: Illegal reflective access by org.apache.ibatis.binding.MapperProxy (file:/.../WEB-INF/lib/mybatis-3.5.2.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
at org.apache.ibatis.binding.MapperProxy.invokeDefaultMethod(MapperProxy.java:69)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:51)
at com.sun.proxy.$Proxy60.save(Unknown Source)
...

Additional information

i'm not sure if this is already addressed by #1626

@harawata
Copy link
Member

This still is an issue, it seems. I'll look into it.
Thank you for the report, @chri-ma-ri !

@harawata harawata changed the title Illegal reflective access by org.apache.ibatis.binding.MapperProxy Illegal reflective access when invoking default mapper method Aug 22, 2019
@harawata
Copy link
Member

This should be fixed in the latest 3.5.3-SNAPSHOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve a feature or add a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant