-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Honor Cache and NoCache annotations on implementations of a JAX-RS interface #39052
Conversation
danielbobbert
commented
Feb 28, 2024
•
edited by geoand
Loading
edited by geoand
- Fixes @Cache annotation not honored on reactive REST resource beans with separate interface #39002
Nice! Can you please rebase the commit on top of the latest |
Done |
Thanks! I'll review tomorrow |
This comment has been minimized.
This comment has been minimized.
...src/main/java/org/jboss/resteasy/reactive/server/processor/scanning/CacheControlScanner.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I just added a small comment.
Let's also squash the two commits into a single one
72bedbe
to
ecc0eff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This comment has been minimized.
This comment has been minimized.
Build was complaining about unordered imports. I have fixed these just now. |
This comment has been minimized.
This comment has been minimized.
Fixed formatting in tests |
This comment has been minimized.
This comment has been minimized.
When reordering imports, I skipped one class, introducing a compile error. Sorry! This is fixed now. |
No problem! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I realized that some tests were failing, because I didn't handle the case where a Jax-RS interface contains a default method that is not implemented/overridden in the bean implementation. In that case, "actualMethod" could be null, leading to a NullPointerException. I have fixed the code, added another explicit test case for this scenario and rebased the squashed commit on main. Hopefully this will now pass all tests. |
Great job! |
This comment has been minimized.
This comment has been minimized.
These sanity checks are driving me crazy. Had to remove an unused import in a test class... |
|
No errors/warnings locally, so we should be fine now. |
Status for workflow
|