-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Default methods support on mappers, does not work for non-public mappers. #905
Comments
Hi @harawata , I've added return constructor.newInstance(declaringClass,
(MethodHandles.Lookup.PRIVATE | MethodHandles.Lookup.PACKAGE | MethodHandles.Lookup.PUBLIC))
.unreflectSpecial(method, declaringClass).bindTo(proxy).invokeWithArguments(args); It's work fine. This solution is good or bad ? |
Thank you for taking the time to report. @kazuki43zoo , For future reference, it throws an exception like this in 3.4.2.
|
@harawata i tried with my app, and everything worked fine with the snapshot. any idea when you releasing it? Thanks for the quick support. |
@mchiareli ,
It might take a while as 3.4.2 was released just a few weeks ago. |
Hi All, I am getting "org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)" error when I use default methods in mapper interfaces. Any suggestion and/or help is greatly appreciated Thank you. |
…essException if the mapper interface is not public.
The new support for default methods is not working for mapper with package modifiers,
I have a sample case in a fork here,
https://github.com/mchiareli/mybatis-3
I just changed the modifier of the mapper used to test the default methods, and the test breaks.
The text was updated successfully, but these errors were encountered: