Skip to content

Commit

Permalink
[regresion] Allow Spock Stubs to be used as Data Fetchers
Browse files Browse the repository at this point in the history
Commit 6fbce09 introduced a regression that will prevent Spock Stubs to
be used as Data Fetchers.
  • Loading branch information
berngp committed Oct 19, 2022
1 parent 4ce1c46 commit 30a0d12
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -267,7 +267,7 @@ class DgsSchemaProvider(
val filteredMergedAnnotations =
mergedAnnotations
.stream(DgsData::class.java)
.filter { (it.source as Method).declaringClass == method.declaringClass }
.filter { AopUtils.getTargetClass((it.source as Method).declaringClass) == AopUtils.getTargetClass(method.declaringClass) }
.collect(Collectors.toList())
filteredMergedAnnotations.forEach { dgsDataAnnotation ->
registerDataFetcher(
Expand Down

0 comments on commit 30a0d12

Please sign in to comment.