Skip to content

Commit

Permalink
Fix issue where java datafetcher methods were incorrectly called as K…
Browse files Browse the repository at this point in the history
…otlin functions (#1694)

Co-authored-by: pbakker <[email protected]>
  • Loading branch information
paulbakker and paulbakker authored Nov 5, 2023
1 parent c022e61 commit b84bb1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class DataFetcherInvoker internal constructor(
return ReflectionUtils.invokeMethod(bridgedMethod, dgsComponent)
}

if (kotlinFunction != null) {
if (dgsComponent.javaClass.getDeclaredAnnotation(Metadata::class.java) != null && kotlinFunction != null) {
return invokeKotlinMethod(kotlinFunction, environment)
}

Expand Down

0 comments on commit b84bb1a

Please sign in to comment.