Closed BCantos17 closed 2 years ago
Looks like a bug, thanks for reporting,
Hi @berngp @BCantos17, I did a simple test that can confirm it fails in 4.9.16 but pass in 4.9.15 for the kotlin coroutine suspend fun
support.
For someone encountering this impact could fallback to 4.9.15.
4.9.15
4.9.16
I suspect the following changes cause this regression
For more deep dive, I confirmed in JVM debugger that ReflectionUtils.getUniqueDeclaredMethods(javaClass).asSequence()
would get a static function, I suggest to add a filter for this case.
4.9.15
4.9.16
@gaplo917 thanks for the amazing walkthrough! Will look into a fix so we can get it in in the next release.
Expected behavior
Validation passes and app starts as usual
Actual behavior
Looks to have failed because of the dollar sign when the method has the suspend keyword. Exception is thrown with this stacktrace
Steps to reproduce
graphql.schema
fetcher class
redis configuration
session class
build.gradle.kts
noticed there were resources that states coroutines were supported found here https://github.com/hantsy/spring-graphql-sample/tree/master/dgs-kotlin-co https://github.com/Netflix/dgs-framework/issues/413
but I could not find any leads which points to an answer. This works without coroutines if I take out the suspend key words and just use java reactors (Mono and Flux and removing the AndAwait) but using coroutines returns this exception.
Not sure if this is entirely a bug or if I am doing something wrong. If I did something wrong, any guidance would be much appreciated