Skip to content

Commit

Permalink
Merge pull request #15390 from stuartwdouglas/15357
Browse files Browse the repository at this point in the history
Fix sub resource locators with no method annotations
  • Loading branch information
geoand authored Mar 2, 2021
2 parents 19e6436 + 01284d3 commit 345be10
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,15 @@ private boolean hasAnnotation(MethodInfo method, short paramPosition, DotName an
toScan.add(classInfo);
}
}
//sub resources can also have just a path annotation
//if they are 'intermediate' sub resources
for (AnnotationInstance instance : index.getAnnotations(ResteasyReactiveDotNames.PATH)) {
if (instance.target().kind() == AnnotationTarget.Kind.METHOD) {
MethodInfo method = instance.target().asMethod();
ClassInfo classInfo = method.declaringClass();
toScan.add(classInfo);
}
}
while (!toScan.isEmpty()) {
ClassInfo classInfo = toScan.poll();
if (scannedResources.containsKey(classInfo.name()) ||
Expand Down

0 comments on commit 345be10

Please sign in to comment.