You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling MethodParameter.isOptional() for a kotlin.coroutines.Continuation parameter of a suspend fun fails when introspecting a Coroutines method.
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at org.springframework.core.MethodParameter$KotlinDelegate.isOptional(MethodParameter.java:899)
at org.springframework.core.MethodParameter.isOptional(MethodParameter.java:408)
The backing collection of KParameters does not contain the parameter and therefore optionality checks fail.
The text was updated successfully, but these errors were encountered:
Could you share a little bit more about the context where this code path is reached? I am asking that because in current Coroutines support this kind of code path is not reached because we use upfront Kotlin reflection to identify the parameters that the user see, not the parameters at bytecode level that does not really make sense from a programming model perspective.
This commit adds support for Continuation parameter that is now
considered as an optional parameter since it is never provided by
the user.
It also simplifies and optimizes the implementation.
Closesspring-projectsgh-23991
sdeleuze
added a commit
to sdeleuze/spring-framework
that referenced
this issue
Nov 14, 2019
This commit adds support for Continuation parameter that is now
considered as an optional parameter since it is never provided by
the user.
It also simplifies and optimizes the implementation.
Closesspring-projectsgh-23991
sdeleuze
added a commit
to sdeleuze/spring-framework
that referenced
this issue
Nov 14, 2019
This commit adds support for Continuation parameter that is now
considered as an optional parameter since it is never provided by
the user.
It also simplifies and optimizes the implementation.
Closesspring-projectsgh-23991
Affects: 5.2.1.RELEASE
Calling
MethodParameter.isOptional()
for akotlin.coroutines.Continuation
parameter of asuspend fun
fails when introspecting a Coroutines method.The backing collection of
KParameter
s does not contain the parameter and therefore optionality checks fail.The text was updated successfully, but these errors were encountered: