-
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
@Path lookup must also consider interfaces #30982
Conversation
e9e969c
to
307f25d
Compare
Please update the title with a small description of what the change actually does. Thanks |
methodInfo.parameterTypes().toArray(new Type[] {}))) | ||
.filter(Objects::nonNull) | ||
.findFirst() | ||
.map(resolvedMethodInfo -> resolvedMethodInfo.annotation(REST_PATH)); |
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.
This might still yield a null value. Will update later.
This comment has been minimized.
This comment has been minimized.
The failing Quickstart compilation seems unrelated to this PR. |
a223898
to
91c6a9d
Compare
@geoand I've rebased on the latest 2.16 which had a fix for the quickstart compilation issue. |
@lostiniceland please use |
91c6a9d
to
a80be2f
Compare
Isn't main already going for 3.x? We need a fix for 2.16 because before go-live we wont have time to upgrade to 3. |
Yes, |
Then I close this PR and recreate it for main. Rebasing yields some results which I am no confident with (probably due to the backports) |
No problem |
Fixed @path annotation-lookup
Include interfaces in lookup to resolve @path annotation in order to produce correct path-template used for metrics.
Fixes #30843