-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Backporting #40 to ognl-3-1-x branch. #41
Backporting #40 to ognl-3-1-x branch. #41
Conversation
When scanning super interfaces in `OgnlRuntime#getMethods(Class, boolean)`, only default methods should be collected instead of all declared methods. Also, super interfaces should be searched recursively so that it can handle deeper interface hierarchy.
LGTM 💯 & thank you :) |
OGNL 3.1.16 is out, could you test it and report any problems? |
Tested with Struts 2.6-SNAPSHOT on Java 8 and works :) |
Thank you, @lukaszlenart ! |
@lukaszlenart |
@harawata osm! Thank you so much for your contribution :) |
Hello, I'm sorry but I think the PR was missing important diffs since code added by harawata ( I'm a big fan of mybatipse by the way thank you for your hard work :D ) on class OgnlRuntime line 2150 to the getDeclaredMethods method included an interface default methods scanning routine which is missing of current master branch hence breaking unit Java8Test testGetDeclaredMethods as reported in issue 51 Could you please consider adding the mssing code in next minor release please as for today we were forced to ovveride the OgnlRuntime class to add the missing code :
} Thank you very much to both of you. |
Hi @YSavanier , That is one of the 'not-directly-related things' that I mentioned in #40 . And I'm glad you found the plugin useful! :) |
Yeah I didn't encountered the problem in MyBatis (for which by the way I'm also glad you took the lead after eduardo macaron took a break from it), I was using the engine on a JOpenDocument stack to generate documents using embeded expression language so it used another path to fill the cacheGetMethod map. |
Eduardo is the lead. He's just being busy right now. =) |
When scanning super interfaces in
OgnlRuntime#getMethods(Class, boolean)
, only default methods should be collected instead of all declared methods.Also, super interfaces should be searched recursively so that it can handle deeper interface hierarchy.