Skip to content

Commit

Permalink
Change InvocableHandlerMethod#invokeSuspendingFunction return type
Browse files Browse the repository at this point in the history
This commits changes the return type from Publisher<?> to
Object in order to avoid potential compatibility issues when
the Reactive Streams dependency is not in the classpath.

Closes gh-30716
  • Loading branch information
sdeleuze committed Jun 23, 2023
1 parent 23ecb50 commit 81f1edb
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -20,8 +20,6 @@
import java.lang.reflect.Method;
import java.util.Arrays;

import org.reactivestreams.Publisher;

import org.springframework.context.MessageSource;
import org.springframework.core.CoroutinesUtils;
import org.springframework.core.DefaultParameterNameDiscoverer;
Expand Down Expand Up @@ -240,7 +238,7 @@ else if (targetException instanceof Exception exception) {
* instead.
* @since 6.0
*/
protected Publisher<?> invokeSuspendingFunction(Method method, Object target, Object[] args) {
protected Object invokeSuspendingFunction(Method method, Object target, Object[] args) {
return CoroutinesUtils.invokeSuspendingFunction(method, target, args);
}

Expand Down

0 comments on commit 81f1edb

Please sign in to comment.