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
Resolves#2600
Also reproduced in Java with
@KafkaListener(id = "kgh2600", topics = "kgh2600", batch = "true")
void listen(List<? extends Message<?>> in) {
System.out.println(in);
}
MMLA did not handle a `WildcardType` as the list element type.
Also tested with reporter's Kotlin reproducer.
**cherry-pick to 2.9.x** (pattern matching instanceof will need to be changed)
Copy file name to clipboardExpand all lines: spring-kafka/src/main/java/org/springframework/kafka/listener/adapter/MessagingMessageListenerAdapter.java
+23-6Lines changed: 23 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2016-2022 the original author or authors.
2
+
* Copyright 2016-2023 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.
@@ -683,11 +683,10 @@ else if (parameterizedType.getRawType().equals(List.class)
0 commit comments