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
Assignees
Labels
Milestone

Comments

@ghost
Copy link

@ghost 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

This comment has been minimized.

Copy link
Member

@harawata harawata commented Aug 21, 2019

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

This comment has been minimized.

Copy link
Member

@harawata harawata commented Aug 22, 2019

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
Projects
None yet
1 participant
You can’t perform that action at this time.