Commit e7c0d72
authored
GH-2600: Fix Kotlin Listener List<Message<*>>
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)1 parent 83711f8 commit e7c0d72
File tree
2 files changed
+38
-6
lines changed- spring-kafka/src
- main/java/org/springframework/kafka/listener/adapter
- test/java/org/springframework/kafka/annotation
2 files changed
+38
-6
lines changedLines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
691 | 690 | | |
692 | 691 | | |
693 | 692 | | |
| |||
697 | 696 | | |
698 | 697 | | |
699 | 698 | | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
700 | 717 | | |
701 | 718 | | |
702 | 719 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
654 | 659 | | |
655 | 660 | | |
656 | 661 | | |
| |||
1807 | 1812 | | |
1808 | 1813 | | |
1809 | 1814 | | |
| 1815 | + | |
| 1816 | + | |
1810 | 1817 | | |
1811 | 1818 | | |
1812 | 1819 | | |
| |||
1845 | 1852 | | |
1846 | 1853 | | |
1847 | 1854 | | |
| 1855 | + | |
| 1856 | + | |
1848 | 1857 | | |
1849 | 1858 | | |
1850 | 1859 | | |
| |||
2083 | 2092 | | |
2084 | 2093 | | |
2085 | 2094 | | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
2086 | 2101 | | |
2087 | 2102 | | |
2088 | 2103 | | |
| |||
0 commit comments