Describe the bug
This condition in ExecutionStrategy:invokeDataFetcher():
if (dataFetcher instanceof LightDataFetcher) {
is evaluating to False even if the dataFetcher is actually created by implementing LightDataFetcher interface.
I have tried to debug why it is so, and I found this object being passed as datafetcher to the invokeDataFetcher function which is being evaluated as not a LightDataFetcher:

Context
I am creating a LightOperationExecutor as a lightweight alternative to OperationExecutor in GraphQL-SPQR by implementing LightDataFetcher. Open PR #502
To Reproduce
To reproduce, checkout commit 05642488bc and run test in Maven. You should see the tests SchemaTest.testSchema and RelayTest.testRelayMutations produce errors.
Note that even though the commit uses GraphQL-Java 21.3, this is also reproducible on 22.1 (latest), however in this situation we have this datafetcher object,

Describe the bug
This condition in
ExecutionStrategy:invokeDataFetcher():is evaluating to
Falseeven if thedataFetcheris actually created by implementingLightDataFetcherinterface.I have tried to debug why it is so, and I found this object being passed as datafetcher to the

invokeDataFetcherfunction which is being evaluated as not aLightDataFetcher:Context
I am creating a
LightOperationExecutoras a lightweight alternative toOperationExecutorin GraphQL-SPQR by implementingLightDataFetcher. Open PR #502To Reproduce
To reproduce, checkout commit 05642488bc and run
testin Maven. You should see the testsSchemaTest.testSchemaandRelayTest.testRelayMutationsproduce errors.Note that even though the commit uses GraphQL-Java

21.3, this is also reproducible on22.1(latest), however in this situation we have this datafetcher object,