apache/dubbo

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String

Open

#11,157 创建于 2022年12月15日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Java (26,453 fork)batch import
help wantedtype/bug

仓库指标

Star
 (41,524 star)
PR 合并指标
 (平均合并 7天 14小时) (30 天内合并 20 个 PR)

描述

  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.7.3
  • Operating System version: xxx
  • Java version: xxx

Steps to reproduce this issue

  1. 编写request

public class xxxxxxRequest implements Serializable { private static final long serialVersionUID = 1L; private List ids; } 泛化调用 "request": { "ids": [1] } 2. image 4. image

Pls. provide [GitHub address] to reproduce this issue.

Expected Behavior

正确的抛出类型转换错误而不是在调用for循环的时候抛类型转换错误

Actual Behavior

If there is an exception, please attach the exception trace:

Just put your stack trace here!

贡献者指南