-
Notifications
You must be signed in to change notification settings - Fork 91
Fixes #343 withincode doesn't work as specified #345
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
base: master
Are you sure you want to change the base?
Conversation
My doubt here is whether withincode should match initialization joinpoints or not, as explained in the comment. What do you think @kriegaex? |
@jafarre-bi, Being inactive at the moment, I really have not looked into your issue and this PR, validating whether there is in fact a real problem that needs to be solved, maybe just a documentation issue, or neither. But if you still think that your PR solves a problem, please note that it causes test failures. Please check if either your code or the tests need to be adjusted. |
171bee3
to
e3e1fb8
Compare
Yes, that's why it's still a draft. I didn't fully understand how that worked. Now I do. |
They did. Next, you probably want to take a look at the failing integration tests. |
Regarding 26caa9f, there are still failing ITs. Furthermore, you seem to have committed a few files with only whitespace changes. You should fix up the commit to no longer contain those changes and force-push. BTW, I am still not saying anything about the changes in the code and tests, because I really have not looked into any of it. |
In the first commit, I committed indentation that mixed spaces with the original tab-based indentation, and it wasn't aligned. That's why there are whitespace-only changes in the second commit. If you look into the changes as a whole, there are no whitespace-only changes. |
I finally managed to get all tests to pass in my local environment by changing the JDK to version 21. I also removed all changes in white space. |
4a8e430
to
1f79352
Compare
Pointcuts of the form
withincode(MethodSignature)
don't match method-execution joinpoints, which is in contradiction with the documentation. Moreover, both constructor-execution and initialization joinpoints are matched by pointcuts of the formwithincode(ConstructorSignature)
. This agrees with the documentation, but is inconsistent with the behaviour regarding method execution.This PR allows
withincode
pointcuts to match method-execution joinpoints and modifies the corresponding unit tests.