zhoulinshun opened a new issue #55: Can the starter provide support for deserializing generic parameters? URL: https://github.com/apache/rocketmq-spring/issues/55 When I created the following code, there was an exception: `@Slf4j @Service @RocketMQMessageListener(consumerGroup = "abc" ,topic = TopicConstant.test_topic) public class TestConsumer implements RocketMQListener<TestEvent<String>> { @Override public void onMessage(TestEvent<String> s) { log.info("consumer message:{}", s); } }` ` Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class at org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer.getMessageType(DefaultRocketMQListenerContainer.java:381) at org.apache.rocketmq.spring.support.DefaultRocketMQListenerContainer.afterPropertiesSet(DefaultRocketMQListenerContainer.java:277) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1741) ... 19 common frames omitted `
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
