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
  • Loading branch information
paulbakker committed Nov 4, 2023
1 parent e726e3b commit 71b04d7
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 71b04d7

Please sign in to comment.