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
[#1145] Fix generic parameter type detection for batch listeners … (#1146)
* [#1145] Fix generic parameter type detection for batch listeners with typed 'org.springframework.messaging.Message's
* [#1145] Update integration test
* [#1145] Add myself as author
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapter.java
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2019 the original author or authors.
2
+
* Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -57,6 +57,7 @@
57
57
* @author Stephane Nicoll
58
58
* @author Gary Russell
59
59
* @author Artem Bilan
60
+
* @author Kai Stapel
60
61
*
61
62
* @since 1.4
62
63
*/
@@ -381,7 +382,8 @@ private Type extractGenericParameterTypFromMethodParameter(MethodParameter metho
381
382
if (parameterizedType.getRawType().equals(Message.class)) {
Copy file name to clipboardExpand all lines: spring-rabbit/src/test/java/org/springframework/amqp/rabbit/annotation/EnableRabbitBatchJsonIntegrationTests.java
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2019 the original author or authors.
2
+
* Copyright 2019-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-rabbit/src/test/java/org/springframework/amqp/rabbit/listener/adapter/MessagingMessageListenerAdapterTests.java
+79-1Lines changed: 79 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2019 the original author or authors.
2
+
* Copyright 2014-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -25,8 +25,10 @@
25
25
26
26
importjava.lang.reflect.Method;
27
27
importjava.util.ArrayList;
28
+
importjava.util.Arrays;
28
29
importjava.util.LinkedHashMap;
29
30
importjava.util.List;
31
+
importjava.util.stream.Collectors;
30
32
31
33
importorg.junit.jupiter.api.BeforeEach;
32
34
importorg.junit.jupiter.api.Test;
@@ -51,6 +53,7 @@
51
53
* @author Stephane Nicoll
52
54
* @author Artem Bilan
53
55
* @author Gary Russell
56
+
* @author Kai Stapel
54
57
*/
55
58
publicclassMessagingMessageListenerAdapterTests {
56
59
@@ -212,6 +215,54 @@ public void genericMessageTest3() throws Exception {
0 commit comments